Fix bug 573645: SWIG binding for GncTaxTableGetEntries is wrong.

Patch by Chris Dennis



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18056 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff 2009-04-24 00:49:17 +00:00
parent f07425f1b0
commit 8221aada49
3 changed files with 6 additions and 4 deletions

View File

@ -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);"

View File

@ -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;

View File

@ -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);