diff --git a/src/business/business-core/business-core.i b/src/business/business-core/business-core.i index 8370a7eefb..2665f7ef2d 100644 --- a/src/business/business-core/business-core.i +++ b/src/business/business-core/business-core.i @@ -73,6 +73,7 @@ static GncEmployee * gncEmployeeLookupFlip(GUID g, QofBook *b) %} GLIST_HELPER_INOUT(EntryList, SWIGTYPE_p__gncEntry); +GLIST_HELPER_INOUT(GncTaxTableEntryList, SWIGTYPE_p__gncTaxTableEntry); %typemap(in) GncAccountValue * "$1 = gnc_scm_to_account_value_ptr($input);" %typemap(out) GncAccountValue * "$result = gnc_account_value_ptr_to_scm($1);" diff --git a/src/business/business-core/gncTaxTable.c b/src/business/business-core/gncTaxTable.c index e2ac13a7ac..ee7a4a6436 100644 --- a/src/business/business-core/gncTaxTable.c +++ b/src/business/business-core/gncTaxTable.c @@ -36,7 +36,7 @@ struct _gncTaxTable { QofInstance inst; char * name; - GList * entries; + GncTaxTableEntryList* entries; Timespec modtime; /* internal date of last modtime */ /* See src/doc/business.txt for an explanation of the following */ @@ -633,7 +633,7 @@ GncTaxTable *gncTaxTableGetParent (const GncTaxTable *table) return table->parent; } -GList *gncTaxTableGetEntries (const GncTaxTable *table) +GncTaxTableEntryList* gncTaxTableGetEntries (const GncTaxTable *table) { if (!table) return NULL; return table->entries; diff --git a/src/business/business-core/gncTaxTable.h b/src/business/business-core/gncTaxTable.h index 94a63a99dc..34cf31d5f8 100644 --- a/src/business/business-core/gncTaxTable.h +++ b/src/business/business-core/gncTaxTable.h @@ -40,7 +40,7 @@ is *identical* to that in ::GncBillTerm @param QofInstance inst; @param char * name; -@param GList * entries; +@param GncTaxTableEntryList* entries; @param Timespec modtime; @param gint64 refcount; @param GncTaxTable * parent; if non-null, we are an immutable child @@ -153,7 +153,8 @@ const char *gncTaxTableGetName (const GncTaxTable *table); GncTaxTable *gncTaxTableGetParent (const GncTaxTable *table); GncTaxTable *gncTaxTableReturnChild (GncTaxTable *table, gboolean make_new); #define gncTaxTableGetChild(t) gncTaxTableReturnChild((t),FALSE) -GList *gncTaxTableGetEntries (const GncTaxTable *table); +typedef GList GncTaxTableEntryList; +GncTaxTableEntryList* gncTaxTableGetEntries (const GncTaxTable *table); gint64 gncTaxTableGetRefcount (const GncTaxTable *table); Timespec gncTaxTableLastModified (const GncTaxTable *table);