From 6d7f4ec4c868738ec43048e3fb3cd9212013ce90 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Sun, 27 Oct 2024 14:19:49 +0800 Subject: [PATCH] [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. --- bindings/engine.i | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bindings/engine.i b/bindings/engine.i index 0885066f4e..4b7adbafe7 100644 --- a/bindings/engine.i +++ b/bindings/engine.i @@ -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(freearg) GSList *key_path "g_slist_free_full ($1, g_free);" +const SplitsVec& xaccAccountGetSplits (const Account*); + QofBook* qof_book_new (void); void qof_book_options_delete (QofBook *book, GSList *key_path); void qof_book_set_option (QofBook *book, KvpValue *new_value, GSList *key_path);