gnucash maint: Fix swig wrapper for gncTaxTableGetTaxTables

Geert Janssens gjanssens at code.gnucash.org
Sun Sep 10 13:16:03 EDT 2017


Updated	 via  https://github.com/Gnucash/gnucash/commit/600f0104 (commit)
	from  https://github.com/Gnucash/gnucash/commit/4250f53f (commit)



commit 600f010472564c2460742f8449b85b120f541be7
Author: christopherlam <christopher.lck at gmail.com>
Date:   Sat Sep 9 15:03:52 2017 +0800

    Fix swig wrapper for gncTaxTableGetTaxTables
    
    - Add new typedef GncTaxTableList
    - Add SWIG wrapper for gncTaxTableGetTables
    - gncTaxTableGetTables to return gncTaxTableList

diff --git a/src/engine/business-core.i b/src/engine/business-core.i
index f1582bc..9b66867 100644
--- a/src/engine/business-core.i
+++ b/src/engine/business-core.i
@@ -74,6 +74,7 @@ static GncEmployee * gncEmployeeLookupFlip(GncGUID g, QofBook *b)
 
 GLIST_HELPER_INOUT(GncInvoiceList, SWIGTYPE_p__gncInvoice);
 GLIST_HELPER_INOUT(EntryList, SWIGTYPE_p__gncEntry);
+GLIST_HELPER_INOUT(GncTaxTableGetTables, SWIGTYPE_p__gncTaxTable);
 GLIST_HELPER_INOUT(GncTaxTableEntryList, SWIGTYPE_p__gncTaxTableEntry);
 GLIST_HELPER_INOUT(OwnerList, SWIGTYPE_p__gncOwner);
 
diff --git a/src/engine/gncTaxTable.c b/src/engine/gncTaxTable.c
index 8650217..830c32c 100644
--- a/src/engine/gncTaxTable.c
+++ b/src/engine/gncTaxTable.c
@@ -676,7 +676,7 @@ GncTaxTable *gncTaxTableLookupByName (QofBook *book, const char *name)
     return NULL;
 }
 
-GList * gncTaxTableGetTables (QofBook *book)
+GncTaxTableList * gncTaxTableGetTables (QofBook *book)
 {
     struct _book_info *bi;
     if (!book) return NULL;
diff --git a/src/engine/gncTaxTable.h b/src/engine/gncTaxTable.h
index 5e0e1da..7d9579a 100644
--- a/src/engine/gncTaxTable.h
+++ b/src/engine/gncTaxTable.h
@@ -152,7 +152,8 @@ static inline GncTaxTable *gncTaxTableLookup (const QofBook* book, const GncGUID
 
 GncTaxTable *gncTaxTableLookupByName (QofBook *book, const char *name);
 
-GList * gncTaxTableGetTables (QofBook *book);
+typedef GList GncTaxTableList;
+GncTaxTableList  * gncTaxTableGetTables (QofBook *book);
 
 const char *gncTaxTableGetName (const GncTaxTable *table);
 GncTaxTable *gncTaxTableGetParent (const GncTaxTable *table);



Summary of changes:
 src/engine/business-core.i | 1 +
 src/engine/gncTaxTable.c   | 2 +-
 src/engine/gncTaxTable.h   | 3 ++-
 3 files changed, 4 insertions(+), 2 deletions(-)



More information about the gnucash-changes mailing list