Skip to content

Commit

Permalink
Fix swig wrapper for gncTaxTableGetTaxTables
Browse files Browse the repository at this point in the history
- Add new typedef GncTaxTableList
- Add SWIG wrapper for gncTaxTableGetTables
- gncTaxTableGetTables to return gncTaxTableList
  • Loading branch information
christopherlam authored and gjanssens committed Sep 10, 2017
1 parent 4250f53 commit 600f010
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/engine/business-core.i
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/engine/gncTaxTable.c
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion src/engine/gncTaxTable.h
Expand Up @@ -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);
Expand Down

0 comments on commit 600f010

Please sign in to comment.