[engine.i] expose xaccAccountGetSplits in bindings

because xaccAccountGetSplitList will create GList, scan and build SCM
reverse order, and scm_reverse.

xaccAccountGetSplits scans the vector, builds the SCM list in reverse.
This commit is contained in:
Christopher Lam 2024-10-27 14:19:49 +08:00
parent e2f5c74bb4
commit 6d7f4ec4c8

View File

@ -322,6 +322,8 @@ Account * gnc_book_get_template_root(QofBook *book);
%typemap(in) GSList *key_path " $1 = gnc_scm_to_gslist_string($input);" %typemap(in) GSList *key_path " $1 = gnc_scm_to_gslist_string($input);"
%typemap(freearg) GSList *key_path "g_slist_free_full ($1, g_free);" %typemap(freearg) GSList *key_path "g_slist_free_full ($1, g_free);"
const SplitsVec& xaccAccountGetSplits (const Account*);
QofBook* qof_book_new (void); QofBook* qof_book_new (void);
void qof_book_options_delete (QofBook *book, GSList *key_path); void qof_book_options_delete (QofBook *book, GSList *key_path);
void qof_book_set_option (QofBook *book, KvpValue *new_value, GSList *key_path); void qof_book_set_option (QofBook *book, KvpValue *new_value, GSList *key_path);