r16710 - gnucash/branches/gda-dev2/src/business/business-core - Mark some pointers 'const'

Phil Longstaff plongstaff at cvs.gnucash.org
Sun Dec 23 21:48:31 EST 2007


Author: plongstaff
Date: 2007-12-23 21:48:30 -0500 (Sun, 23 Dec 2007)
New Revision: 16710
Trac: http://svn.gnucash.org/trac/changeset/16710

Modified:
   gnucash/branches/gda-dev2/src/business/business-core/gncAddress.c
   gnucash/branches/gda-dev2/src/business/business-core/gncAddressP.h
   gnucash/branches/gda-dev2/src/business/business-core/gncBillTerm.c
   gnucash/branches/gda-dev2/src/business/business-core/gncBillTerm.h
   gnucash/branches/gda-dev2/src/business/business-core/gncBillTermP.h
   gnucash/branches/gda-dev2/src/business/business-core/gncCustomer.c
   gnucash/branches/gda-dev2/src/business/business-core/gncCustomer.h
   gnucash/branches/gda-dev2/src/business/business-core/gncEmployee.c
   gnucash/branches/gda-dev2/src/business/business-core/gncEmployee.h
   gnucash/branches/gda-dev2/src/business/business-core/gncEntry.c
   gnucash/branches/gda-dev2/src/business/business-core/gncEntry.h
   gnucash/branches/gda-dev2/src/business/business-core/gncInvoice.c
   gnucash/branches/gda-dev2/src/business/business-core/gncInvoice.h
   gnucash/branches/gda-dev2/src/business/business-core/gncJob.c
   gnucash/branches/gda-dev2/src/business/business-core/gncJob.h
   gnucash/branches/gda-dev2/src/business/business-core/gncOrder.c
   gnucash/branches/gda-dev2/src/business/business-core/gncOrder.h
   gnucash/branches/gda-dev2/src/business/business-core/gncOwner.c
   gnucash/branches/gda-dev2/src/business/business-core/gncOwner.h
   gnucash/branches/gda-dev2/src/business/business-core/gncTaxTable.c
   gnucash/branches/gda-dev2/src/business/business-core/gncTaxTable.h
   gnucash/branches/gda-dev2/src/business/business-core/gncTaxTableP.h
   gnucash/branches/gda-dev2/src/business/business-core/gncVendor.c
   gnucash/branches/gda-dev2/src/business/business-core/gncVendor.h
Log:
Mark some pointers 'const'


Modified: gnucash/branches/gda-dev2/src/business/business-core/gncAddress.c
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncAddress.c	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncAddress.c	2007-12-24 02:48:30 UTC (rev 16710)
@@ -127,7 +127,7 @@
 }
 
 static QofInstance*
-qofAddressGetOwner(GncAddress *addr)
+qofAddressGetOwner(const GncAddress *addr)
 {
 
 	if(!addr) { return NULL; }
@@ -135,7 +135,7 @@
 }
 
 GncAddress * 
-gncCloneAddress (GncAddress *from, QofInstance *new_parent, QofBook *book)
+gncCloneAddress (const GncAddress *from, QofInstance *new_parent, QofBook *book)
 {
   GncAddress *addr;
 

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncAddressP.h
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncAddressP.h	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncAddressP.h	2007-12-24 02:48:30 UTC (rev 16710)
@@ -33,7 +33,7 @@
 gboolean gncAddressRegister (void);
 
 /** Make a copy of the address, setting the parent to 'new_parent' */
-GncAddress * gncCloneAddress (GncAddress *from, QofInstance *new_parent, QofBook *book);
+GncAddress * gncCloneAddress (const GncAddress *from, QofInstance *new_parent, QofBook *book);
 
 
 #endif /* GNC_ADDRESSP_H_ */

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncBillTerm.c
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncBillTerm.c	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncBillTerm.c	2007-12-24 02:48:30 UTC (rev 16710)
@@ -467,19 +467,19 @@
   return bi->terms;
 }
 
-const char *gncBillTermGetName (GncBillTerm *term)
+const char *gncBillTermGetName (const GncBillTerm *term)
 {
   if (!term) return NULL;
   return term->name;
 }
 
-const char *gncBillTermGetDescription (GncBillTerm *term)
+const char *gncBillTermGetDescription (const GncBillTerm *term)
 {
   if (!term) return NULL;
   return term->desc;
 }
 
-GncBillTermType gncBillTermGetType (GncBillTerm *term)
+GncBillTermType gncBillTermGetType (const GncBillTerm *term)
 {
   if (!term) return 0;
   return term->type;
@@ -489,37 +489,37 @@
 AS_STRING_FUNC(GncBillTermType, ENUM_TERMS_TYPE)
 
 static
-const char* qofBillTermGetType (GncBillTerm *term)
+const char* qofBillTermGetType (const GncBillTerm *term)
 {
 	if (!term) { return NULL; }
 	return GncBillTermTypeasString(term->type);
 }
 
-gint gncBillTermGetDueDays (GncBillTerm *term)
+gint gncBillTermGetDueDays (const GncBillTerm *term)
 {
   if (!term) return 0;
   return term->due_days;
 }
 
-gint gncBillTermGetDiscountDays (GncBillTerm *term)
+gint gncBillTermGetDiscountDays (const GncBillTerm *term)
 {
   if (!term) return 0;
   return term->disc_days;
 }
 
-gnc_numeric gncBillTermGetDiscount (GncBillTerm *term)
+gnc_numeric gncBillTermGetDiscount (const GncBillTerm *term)
 {
   if (!term) return gnc_numeric_zero ();
   return term->discount;
 }
 
-gint gncBillTermGetCutoff (GncBillTerm *term)
+gint gncBillTermGetCutoff (const GncBillTerm *term)
 {
   if (!term) return 0;
   return term->cutoff;
 }
 
-static GncBillTerm *gncBillTermCopy (GncBillTerm *term)
+static GncBillTerm *gncBillTermCopy (const GncBillTerm *term)
 {
   GncBillTerm *t;
 
@@ -557,25 +557,25 @@
   return child;
 }
 
-GncBillTerm *gncBillTermGetParent (GncBillTerm *term)
+GncBillTerm *gncBillTermGetParent (const GncBillTerm *term)
 {
   if (!term) return NULL;
   return term->parent;
 }
 
-gint64 gncBillTermGetRefcount (GncBillTerm *term)
+gint64 gncBillTermGetRefcount (const GncBillTerm *term)
 {
   if (!term) return 0;
   return term->refcount;
 }
 
-gboolean gncBillTermGetInvisible (GncBillTerm *term)
+gboolean gncBillTermGetInvisible (const GncBillTerm *term)
 {
   if (!term) return FALSE;
   return term->invisible;
 }
 
-int gncBillTermCompare (GncBillTerm *a, GncBillTerm *b)
+int gncBillTermCompare (const GncBillTerm *a, const GncBillTerm *b)
 {
   int ret;
 
@@ -589,7 +589,7 @@
   return safe_strcmp (a->desc, b->desc);
 }
 
-gboolean gncBillTermIsDirty (GncBillTerm *term)
+gboolean gncBillTermIsDirty (const GncBillTerm *term)
 {
   if (!term) return FALSE;
   return qof_instance_get_dirty_flag(term);
@@ -605,7 +605,7 @@
  * XXX explain this, the logic is totally opaque to me.
  */
 static void
-compute_monthyear (GncBillTerm *term, Timespec post_date,
+compute_monthyear (const GncBillTerm *term, Timespec post_date,
                    int *month, int *year)
 {
   int iday, imonth, iyear;
@@ -638,7 +638,7 @@
 /* XXX explain this, the logic is totally opaque to me. */
 
 static Timespec
-compute_time (GncBillTerm *term, Timespec post_date, int days)
+compute_time (const GncBillTerm *term, Timespec post_date, int days)
 {
   Timespec res = post_date;
   int day, month, year;
@@ -659,7 +659,7 @@
 }
 
 Timespec
-gncBillTermComputeDueDate (GncBillTerm *term, Timespec post_date)
+gncBillTermComputeDueDate (const GncBillTerm *term, Timespec post_date)
 {
   Timespec res = post_date;
   if (!term) return res;
@@ -668,7 +668,7 @@
 }
 
 Timespec
-gncBillTermComputeDiscountDate (GncBillTerm *term, Timespec post_date)
+gncBillTermComputeDiscountDate (const GncBillTerm *term, Timespec post_date)
 {
   Timespec res = post_date;
   if (!term) return res;

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncBillTerm.h
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncBillTerm.h	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncBillTerm.h	2007-12-24 02:48:30 UTC (rev 16710)
@@ -124,30 +124,30 @@
 GncBillTerm *gncBillTermLookupByName (QofBook *book, const char *name);
 GList * gncBillTermGetTerms (QofBook *book);
 
-const char *gncBillTermGetName (GncBillTerm *term);
-const char *gncBillTermGetDescription (GncBillTerm *term);
-GncBillTermType gncBillTermGetType (GncBillTerm *term);
-gint gncBillTermGetDueDays (GncBillTerm *term);
-gint gncBillTermGetDiscountDays (GncBillTerm *term);
-gnc_numeric gncBillTermGetDiscount (GncBillTerm *term);
-gint gncBillTermGetCutoff (GncBillTerm *term);
+const char *gncBillTermGetName (const GncBillTerm *term);
+const char *gncBillTermGetDescription (const GncBillTerm *term);
+GncBillTermType gncBillTermGetType (const GncBillTerm *term);
+gint gncBillTermGetDueDays (const GncBillTerm *term);
+gint gncBillTermGetDiscountDays (const GncBillTerm *term);
+gnc_numeric gncBillTermGetDiscount (const GncBillTerm *term);
+gint gncBillTermGetCutoff (const GncBillTerm *term);
 
-gboolean gncBillTermIsDirty (GncBillTerm *term);
+gboolean gncBillTermIsDirty (const GncBillTerm *term);
 
-GncBillTerm *gncBillTermGetParent (GncBillTerm *term);
+GncBillTerm *gncBillTermGetParent (const GncBillTerm *term);
 GncBillTerm *gncBillTermReturnChild (GncBillTerm *term, gboolean make_new);
 #define gncBillTermGetChild(t) gncBillTermReturnChild((t),FALSE)
-gint64 gncBillTermGetRefcount (GncBillTerm *term);
+gint64 gncBillTermGetRefcount (const GncBillTerm *term);
 /** @} */
 
-int gncBillTermCompare (GncBillTerm *a, GncBillTerm *b);
+int gncBillTermCompare (const GncBillTerm *a, const GncBillTerm *b);
 
 /********************************************************/
 /* functions to compute dates from Bill Terms           */
 
 /* Compute the due date and discount dates from the post date */
-Timespec gncBillTermComputeDueDate (GncBillTerm *term, Timespec post_date);
-Timespec gncBillTermComputeDiscountDate (GncBillTerm *term, Timespec post_date);
+Timespec gncBillTermComputeDueDate (const GncBillTerm *term, Timespec post_date);
+Timespec gncBillTermComputeDiscountDate (const GncBillTerm *term, Timespec post_date);
 
 /* deprecated */
 #define gncBillTermGetGUID(x) qof_instance_get_guid (QOF_INSTANCE(x))

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncBillTermP.h
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncBillTermP.h	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncBillTermP.h	2007-12-24 02:48:30 UTC (rev 16710)
@@ -38,7 +38,7 @@
 void gncBillTermSetRefcount (GncBillTerm *term, gint64 refcount);
 void gncBillTermMakeInvisible (GncBillTerm *term);
 
-gboolean gncBillTermGetInvisible (GncBillTerm *term);
+gboolean gncBillTermGetInvisible (const GncBillTerm *term);
 
 /** The gncCloneBillTerm() routine makes a copy of the indicated
  *  bill term, placing it in the indicated book.  It copies

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncCustomer.c
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncCustomer.c	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncCustomer.c	2007-12-24 02:48:30 UTC (rev 16710)
@@ -418,19 +418,19 @@
 /* ============================================================== */
 /* Get Functions */
 
-const char * gncCustomerGetID (GncCustomer *cust)
+const char * gncCustomerGetID (const GncCustomer *cust)
 {
   if (!cust) return NULL;
   return cust->id;
 }
 
-const char * gncCustomerGetName (GncCustomer *cust)
+const char * gncCustomerGetName (const GncCustomer *cust)
 {
   if (!cust) return NULL;
   return cust->name;
 }
 
-GncAddress * gncCustomerGetAddr (GncCustomer *cust)
+GncAddress * gncCustomerGetAddr (const GncCustomer *cust)
 {
   if (!cust) return NULL;
   return cust->addr;
@@ -470,67 +470,67 @@
 	gncCustomerCommitEdit(cust);
 }
 
-GncAddress * gncCustomerGetShipAddr (GncCustomer *cust)
+GncAddress * gncCustomerGetShipAddr (const GncCustomer *cust)
 {
   if (!cust) return NULL;
   return cust->shipaddr;
 }
 
-const char * gncCustomerGetNotes (GncCustomer *cust)
+const char * gncCustomerGetNotes (const GncCustomer *cust)
 {
   if (!cust) return NULL;
   return cust->notes;
 }
 
-GncBillTerm * gncCustomerGetTerms (GncCustomer *cust)
+GncBillTerm * gncCustomerGetTerms (const GncCustomer *cust)
 {
   if (!cust) return NULL;
   return cust->terms;
 }
 
-GncTaxIncluded gncCustomerGetTaxIncluded (GncCustomer *cust)
+GncTaxIncluded gncCustomerGetTaxIncluded (const GncCustomer *cust)
 {
   if (!cust) return GNC_TAXINCLUDED_USEGLOBAL;
   return cust->taxincluded;
 }
 
-gnc_commodity * gncCustomerGetCurrency (GncCustomer *cust)
+gnc_commodity * gncCustomerGetCurrency (const GncCustomer *cust)
 {
   if (!cust) return NULL;
   return cust->currency;
 }
 
-gboolean gncCustomerGetActive (GncCustomer *cust)
+gboolean gncCustomerGetActive (const GncCustomer *cust)
 {
   if (!cust) return FALSE;
   return cust->active;
 }
 
-gnc_numeric gncCustomerGetDiscount (GncCustomer *cust)
+gnc_numeric gncCustomerGetDiscount (const GncCustomer *cust)
 {
   if (!cust) return gnc_numeric_zero();
   return cust->discount;
 }
 
-gnc_numeric gncCustomerGetCredit (GncCustomer *cust)
+gnc_numeric gncCustomerGetCredit (const GncCustomer *cust)
 {
   if (!cust) return gnc_numeric_zero();
   return cust->credit;
 }
 
-gboolean gncCustomerGetTaxTableOverride (GncCustomer *customer)
+gboolean gncCustomerGetTaxTableOverride (const GncCustomer *customer)
 {
   if (!customer) return FALSE;
   return customer->taxtable_override;
 }
 
-GncTaxTable* gncCustomerGetTaxTable (GncCustomer *customer)
+GncTaxTable* gncCustomerGetTaxTable (const GncCustomer *customer)
 {
   if (!customer) return NULL;
   return customer->taxtable;
 }
 
-GList * gncCustomerGetJoblist (GncCustomer *cust, gboolean show_all)
+GList * gncCustomerGetJoblist (const GncCustomer *cust, gboolean show_all)
 {
   if (!cust) return NULL;
 
@@ -557,7 +557,7 @@
 
 /* Other functions */
 
-int gncCustomerCompare (GncCustomer *a, GncCustomer *b)
+int gncCustomerCompare (const GncCustomer *a, const GncCustomer *b)
 {
   if (!a && !b) return 0;
   if (!a && b) return 1;

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncCustomer.h
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncCustomer.h	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncCustomer.h	2007-12-24 02:48:30 UTC (rev 16710)
@@ -118,26 +118,26 @@
 #define gncCustomerLookup(book,guid)    \
        QOF_BOOK_LOOKUP_ENTITY((book),(guid),GNC_ID_CUSTOMER, GncCustomer)
 
-const char * gncCustomerGetID (GncCustomer *customer);
-const char * gncCustomerGetName (GncCustomer *customer);
-GncAddress * gncCustomerGetAddr (GncCustomer *customer);
-GncAddress * gncCustomerGetShipAddr (GncCustomer *customer);
-const char * gncCustomerGetNotes (GncCustomer *customer);
-GncBillTerm * gncCustomerGetTerms (GncCustomer *customer);
-GncTaxIncluded gncCustomerGetTaxIncluded (GncCustomer *customer);
-gboolean gncCustomerGetActive (GncCustomer *customer);
-gnc_numeric gncCustomerGetDiscount (GncCustomer *customer);
-gnc_numeric gncCustomerGetCredit (GncCustomer *customer);
-gnc_commodity * gncCustomerGetCurrency (GncCustomer *customer);
+const char * gncCustomerGetID (const GncCustomer *customer);
+const char * gncCustomerGetName (const GncCustomer *customer);
+GncAddress * gncCustomerGetAddr (const GncCustomer *customer);
+GncAddress * gncCustomerGetShipAddr (const GncCustomer *customer);
+const char * gncCustomerGetNotes (const GncCustomer *customer);
+GncBillTerm * gncCustomerGetTerms (const GncCustomer *customer);
+GncTaxIncluded gncCustomerGetTaxIncluded (const GncCustomer *customer);
+gboolean gncCustomerGetActive (const GncCustomer *customer);
+gnc_numeric gncCustomerGetDiscount (const GncCustomer *customer);
+gnc_numeric gncCustomerGetCredit (const GncCustomer *customer);
+gnc_commodity * gncCustomerGetCurrency (const GncCustomer *customer);
 
-gboolean gncCustomerGetTaxTableOverride (GncCustomer *customer);
-GncTaxTable* gncCustomerGetTaxTable (GncCustomer *customer);
+gboolean gncCustomerGetTaxTableOverride (const GncCustomer *customer);
+GncTaxTable* gncCustomerGetTaxTable (const GncCustomer *customer);
 
-GList * gncCustomerGetJoblist (GncCustomer *customer, gboolean show_all);
+GList * gncCustomerGetJoblist (const GncCustomer *customer, gboolean show_all);
 /** @} */
 
 gboolean gncCustomerIsDirty (GncCustomer *customer);
-int gncCustomerCompare (GncCustomer *a, GncCustomer *b);
+int gncCustomerCompare (const GncCustomer *a, const GncCustomer *b);
 
 #define CUSTOMER_ID			"id"
 #define CUSTOMER_NAME		"name"

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncEmployee.c
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncEmployee.c	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncEmployee.c	2007-12-24 02:48:30 UTC (rev 16710)
@@ -299,67 +299,67 @@
 
 /* ============================================================== */
 /* Get Functions */
-const char * gncEmployeeGetID (GncEmployee *employee)
+const char * gncEmployeeGetID (const GncEmployee *employee)
 {
   if (!employee) return NULL;
   return employee->id;
 }
 
-const char * gncEmployeeGetUsername (GncEmployee *employee)
+const char * gncEmployeeGetUsername (const GncEmployee *employee)
 {
   if (!employee) return NULL;
   return employee->username;
 }
 
-GncAddress * gncEmployeeGetAddr (GncEmployee *employee)
+GncAddress * gncEmployeeGetAddr (const GncEmployee *employee)
 {
   if (!employee) return NULL;
   return employee->addr;
 }
 
-const char * gncEmployeeGetLanguage (GncEmployee *employee)
+const char * gncEmployeeGetLanguage (const GncEmployee *employee)
 {
   if (!employee) return NULL;
   return employee->language;
 }
 
-const char * gncEmployeeGetAcl (GncEmployee *employee)
+const char * gncEmployeeGetAcl (const GncEmployee *employee)
 {
   if (!employee) return NULL;
   return employee->acl;
 }
 
-gnc_numeric gncEmployeeGetWorkday (GncEmployee *employee)
+gnc_numeric gncEmployeeGetWorkday (const GncEmployee *employee)
 {
   if (!employee) return gnc_numeric_zero();
   return employee->workday;
 }
 
-gnc_numeric gncEmployeeGetRate (GncEmployee *employee)
+gnc_numeric gncEmployeeGetRate (const GncEmployee *employee)
 {
   if (!employee) return gnc_numeric_zero();
   return employee->rate;
 }
 
-gnc_commodity * gncEmployeeGetCurrency (GncEmployee *employee)
+gnc_commodity * gncEmployeeGetCurrency (const GncEmployee *employee)
 {
   if (!employee) return NULL;
   return employee->currency;
 }
 
-gboolean gncEmployeeGetActive (GncEmployee *employee)
+gboolean gncEmployeeGetActive (const GncEmployee *employee)
 {
   if (!employee) return FALSE;
   return employee->active;
 }
 
-Account * gncEmployeeGetCCard (GncEmployee *employee)
+Account * gncEmployeeGetCCard (const GncEmployee *employee)
 {
   if (!employee) return NULL;
   return employee->ccard_acc;
 }
 
-gboolean gncEmployeeIsDirty (GncEmployee *employee)
+gboolean gncEmployeeIsDirty (const GncEmployee *employee)
 {
   if (!employee) return FALSE;
   return (qof_instance_get_dirty_flag(employee)
@@ -399,7 +399,7 @@
 /* ============================================================== */
 /* Other functions */
 
-int gncEmployeeCompare (GncEmployee *a, GncEmployee *b)
+int gncEmployeeCompare (const GncEmployee *a, const GncEmployee *b)
 {
   if (!a && !b) return 0;
   if (!a && b) return 1;

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncEmployee.h
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncEmployee.h	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncEmployee.h	2007-12-24 02:48:30 UTC (rev 16710)
@@ -59,7 +59,7 @@
 void gncEmployeeDestroy (GncEmployee *employee);
 void gncEmployeeBeginEdit (GncEmployee *employee);
 void gncEmployeeCommitEdit (GncEmployee *employee);
-int gncEmployeeCompare (GncEmployee *a, GncEmployee *b);
+int gncEmployeeCompare (const GncEmployee *a, const GncEmployee *b);
 /** @} */
 
 /** @name Set Functions 
@@ -80,16 +80,16 @@
 /** @name Get Functions 
  @{ */
 QofBook * gncEmployeeGetBook (GncEmployee *employee);
-const char * gncEmployeeGetID (GncEmployee *employee);
-const char * gncEmployeeGetUsername (GncEmployee *employee);
-GncAddress * gncEmployeeGetAddr (GncEmployee *employee);
-const char * gncEmployeeGetLanguage (GncEmployee *employee);
-const char * gncEmployeeGetAcl (GncEmployee *employee);
-gnc_numeric gncEmployeeGetWorkday (GncEmployee *employee);
-gnc_numeric gncEmployeeGetRate (GncEmployee *employee);
-gnc_commodity * gncEmployeeGetCurrency (GncEmployee *employee);
-gboolean gncEmployeeGetActive (GncEmployee *employee);
-Account * gncEmployeeGetCCard (GncEmployee *employee);
+const char * gncEmployeeGetID (const GncEmployee *employee);
+const char * gncEmployeeGetUsername (const GncEmployee *employee);
+GncAddress * gncEmployeeGetAddr (const GncEmployee *employee);
+const char * gncEmployeeGetLanguage (const GncEmployee *employee);
+const char * gncEmployeeGetAcl (const GncEmployee *employee);
+gnc_numeric gncEmployeeGetWorkday (const GncEmployee *employee);
+gnc_numeric gncEmployeeGetRate (const GncEmployee *employee);
+gnc_commodity * gncEmployeeGetCurrency (const GncEmployee *employee);
+gboolean gncEmployeeGetActive (const GncEmployee *employee);
+Account * gncEmployeeGetCCard (const GncEmployee *employee);
 /** @} */
 
 
@@ -102,7 +102,7 @@
 #define gncEmployeeLookup(book,guid)    \
        QOF_BOOK_LOOKUP_ENTITY((book),(guid),GNC_ID_EMPLOYEE, GncEmployee)
 
-gboolean gncEmployeeIsDirty (GncEmployee *employee);
+gboolean gncEmployeeIsDirty (const GncEmployee *employee);
 
 #define EMPLOYEE_ID			"id"
 #define EMPLOYEE_USERNAME	"username"

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncEntry.c
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncEntry.c	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncEntry.c	2007-12-24 02:48:30 UTC (rev 16710)
@@ -672,25 +672,25 @@
   return entry->date_entered;
 }
 
-const char * gncEntryGetDescription (GncEntry *entry)
+const char * gncEntryGetDescription (const GncEntry *entry)
 {
   if (!entry) return NULL;
   return entry->desc;
 }
 
-const char * gncEntryGetAction (GncEntry *entry)
+const char * gncEntryGetAction (const GncEntry *entry)
 {
   if (!entry) return NULL;
   return entry->action;
 }
 
-const char * gncEntryGetNotes (GncEntry *entry)
+const char * gncEntryGetNotes (const GncEntry *entry)
 {
   if (!entry) return NULL;
   return entry->notes;
 }
 
-gnc_numeric gncEntryGetQuantity (GncEntry *entry)
+gnc_numeric gncEntryGetQuantity (const GncEntry *entry)
 {
   if (!entry) return gnc_numeric_zero();
   return entry->quantity;
@@ -698,37 +698,37 @@
 
 /* Customer Invoice */
 
-Account * gncEntryGetInvAccount (GncEntry *entry)
+Account * gncEntryGetInvAccount (const GncEntry *entry)
 {
   if (!entry) return NULL;
   return entry->i_account;
 }
 
-gnc_numeric gncEntryGetInvPrice (GncEntry *entry)
+gnc_numeric gncEntryGetInvPrice (const GncEntry *entry)
 {
   if (!entry) return gnc_numeric_zero();
   return entry->i_price;
 }
 
-gnc_numeric gncEntryGetInvDiscount (GncEntry *entry)
+gnc_numeric gncEntryGetInvDiscount (const GncEntry *entry)
 {
   if (!entry) return gnc_numeric_zero();
   return entry->i_discount;
 }
 
-GncAmountType gncEntryGetInvDiscountType (GncEntry *entry)
+GncAmountType gncEntryGetInvDiscountType (const GncEntry *entry)
 {
   if (!entry) return 0;
   return entry->i_disc_type;
 }
 
-GncDiscountHow gncEntryGetInvDiscountHow (GncEntry *entry)
+GncDiscountHow gncEntryGetInvDiscountHow (const GncEntry *entry)
 {
   if (!entry) return 0;
   return entry->i_disc_how;
 }
 
-char* qofEntryGetInvDiscType (GncEntry *entry)
+char* qofEntryGetInvDiscType (const GncEntry *entry)
 {
 	char *type_string;
 
@@ -737,7 +737,7 @@
 	return type_string;
 }
 
-char* qofEntryGetInvDiscHow (GncEntry *entry)
+char* qofEntryGetInvDiscHow (const GncEntry *entry)
 {
 	char *type_string;
 
@@ -746,19 +746,19 @@
 	return type_string;
 }
 
-gboolean gncEntryGetInvTaxable (GncEntry *entry)
+gboolean gncEntryGetInvTaxable (const GncEntry *entry)
 {
   if (!entry) return FALSE;
   return entry->i_taxable;
 }
 
-gboolean gncEntryGetInvTaxIncluded (GncEntry *entry)
+gboolean gncEntryGetInvTaxIncluded (const GncEntry *entry)
 {
   if (!entry) return FALSE;
   return entry->i_taxincluded;
 }
 
-GncTaxTable * gncEntryGetInvTaxTable (GncEntry *entry)
+GncTaxTable * gncEntryGetInvTaxTable (const GncEntry *entry)
 {
   if (!entry) return NULL;
   return entry->i_tax_table;
@@ -766,37 +766,37 @@
 
 /* vendor bills */
 
-Account * gncEntryGetBillAccount (GncEntry *entry)
+Account * gncEntryGetBillAccount (const GncEntry *entry)
 {
   if (!entry) return NULL;
   return entry->b_account;
 }
 
-gnc_numeric gncEntryGetBillPrice (GncEntry *entry)
+gnc_numeric gncEntryGetBillPrice (const GncEntry *entry)
 {
   if (!entry) return gnc_numeric_zero();
   return entry->b_price;
 }
 
-gboolean gncEntryGetBillTaxable (GncEntry *entry)
+gboolean gncEntryGetBillTaxable (const GncEntry *entry)
 {
   if (!entry) return FALSE;
   return entry->b_taxable;
 }
 
-gboolean gncEntryGetBillTaxIncluded (GncEntry *entry)
+gboolean gncEntryGetBillTaxIncluded (const GncEntry *entry)
 {
   if (!entry) return FALSE;
   return entry->b_taxincluded;
 }
 
-GncTaxTable * gncEntryGetBillTaxTable (GncEntry *entry)
+GncTaxTable * gncEntryGetBillTaxTable (const GncEntry *entry)
 {
   if (!entry) return NULL;
   return entry->b_tax_table;
 }
 
-gboolean gncEntryGetBillable (GncEntry *entry)
+gboolean gncEntryGetBillable (const GncEntry *entry)
 {
   if (!entry) return FALSE;
   return entry->billable;
@@ -808,25 +808,25 @@
   return &entry->billto;
 }
 
-GncEntryPaymentType gncEntryGetBillPayment (GncEntry* entry)
+GncEntryPaymentType gncEntryGetBillPayment (const GncEntry* entry)
 {
   if (!entry) return 0;
   return entry->b_payment;
 }
 
-GncInvoice * gncEntryGetInvoice (GncEntry *entry)
+GncInvoice * gncEntryGetInvoice (const GncEntry *entry)
 {
   if (!entry) return NULL;
   return entry->invoice;
 }
 
-GncInvoice * gncEntryGetBill (GncEntry *entry)
+GncInvoice * gncEntryGetBill (const GncEntry *entry)
 {
   if (!entry) return NULL;
   return entry->bill;
 }
 
-GncOrder * gncEntryGetOrder (GncEntry *entry)
+GncOrder * gncEntryGetOrder (const GncEntry *entry)
 {
   if (!entry) return NULL;
   return entry->order;
@@ -867,7 +867,7 @@
  * to let a consumer know how much they saved.
  */
 void gncEntryComputeValue (gnc_numeric qty, gnc_numeric price,
-			   GncTaxTable *tax_table, gboolean tax_included,
+			   const GncTaxTable *tax_table, gboolean tax_included,
 			   gnc_numeric discount, GncAmountType discount_type,
 			   GncDiscountHow discount_how, int SCU,
 			   gnc_numeric *value, gnc_numeric *discount_value,
@@ -1044,7 +1044,7 @@
 }
 
 static int
-get_entry_commodity_denom (GncEntry *entry)
+get_entry_commodity_denom (const GncEntry *entry)
 {
   gnc_commodity *c;
   if (!entry)
@@ -1178,7 +1178,7 @@
 }
 
 /* XXXX this exsitnace of this routine is just wrong */
-gboolean gncEntryIsOpen (GncEntry *entry)
+gboolean gncEntryIsOpen (const GncEntry *entry)
 {
   if (!entry) return FALSE;
   return (qof_instance_get_editlevel(entry) > 0);
@@ -1211,7 +1211,7 @@
 			 gncEntryOnDone, entry_free);
 }
 
-int gncEntryCompare (GncEntry *a, GncEntry *b)
+int gncEntryCompare (const GncEntry *a, const GncEntry *b)
 {
   int compare;
 

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncEntry.h
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncEntry.h	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncEntry.h	2007-12-24 02:48:30 UTC (rev 16710)
@@ -137,37 +137,37 @@
  @{ */
 Timespec gncEntryGetDate (const GncEntry *entry);
 Timespec gncEntryGetDateEntered (const GncEntry *entry);
-const char * gncEntryGetDescription (GncEntry *entry);
-const char * gncEntryGetAction (GncEntry *entry);
-const char * gncEntryGetNotes (GncEntry *notes);
-gnc_numeric gncEntryGetQuantity (GncEntry *entry);
+const char * gncEntryGetDescription (const GncEntry *entry);
+const char * gncEntryGetAction (const GncEntry *entry);
+const char * gncEntryGetNotes (const GncEntry *notes);
+gnc_numeric gncEntryGetQuantity (const GncEntry *entry);
 /** @} */
 
 /** @name Customer Invoices 
  @{ */
-Account * gncEntryGetInvAccount (GncEntry *entry);
-gnc_numeric gncEntryGetInvPrice (GncEntry *entry);
-gnc_numeric gncEntryGetInvDiscount (GncEntry *entry);
-GncAmountType gncEntryGetInvDiscountType (GncEntry *entry);
-GncDiscountHow gncEntryGetInvDiscountHow (GncEntry *entry);
-char* qofEntryGetInvDiscType (GncEntry *entry);
-char* qofEntryGetInvDiscHow (GncEntry *entry);
-gboolean gncEntryGetInvTaxable (GncEntry *entry);
-gboolean gncEntryGetInvTaxIncluded (GncEntry *entry);
-GncTaxTable * gncEntryGetInvTaxTable (GncEntry *entry);
+Account * gncEntryGetInvAccount (const GncEntry *entry);
+gnc_numeric gncEntryGetInvPrice (const GncEntry *entry);
+gnc_numeric gncEntryGetInvDiscount (const GncEntry *entry);
+GncAmountType gncEntryGetInvDiscountType (const GncEntry *entry);
+GncDiscountHow gncEntryGetInvDiscountHow (const GncEntry *entry);
+char* qofEntryGetInvDiscType (const GncEntry *entry);
+char* qofEntryGetInvDiscHow (const GncEntry *entry);
+gboolean gncEntryGetInvTaxable (const GncEntry *entry);
+gboolean gncEntryGetInvTaxIncluded (const GncEntry *entry);
+GncTaxTable * gncEntryGetInvTaxTable (const GncEntry *entry);
 /** @} */
 
 /** @name Vendor Bills (and Employee Expenses) 
  @{ */
-Account * gncEntryGetBillAccount (GncEntry *entry);
-gnc_numeric gncEntryGetBillPrice (GncEntry *entry);
-gboolean gncEntryGetBillTaxable (GncEntry *entry);
-gboolean gncEntryGetBillTaxIncluded (GncEntry *entry);
-GncTaxTable * gncEntryGetBillTaxTable (GncEntry *entry);
-gboolean gncEntryGetBillable (GncEntry *entry);
+Account * gncEntryGetBillAccount (const GncEntry *entry);
+gnc_numeric gncEntryGetBillPrice (const GncEntry *entry);
+gboolean gncEntryGetBillTaxable (const GncEntry *entry);
+gboolean gncEntryGetBillTaxIncluded (const GncEntry *entry);
+GncTaxTable * gncEntryGetBillTaxTable (const GncEntry *entry);
+gboolean gncEntryGetBillable (const GncEntry *entry);
 GncOwner *gncEntryGetBillTo (GncEntry *entry);
 
-GncEntryPaymentType gncEntryGetBillPayment (GncEntry* entry);
+GncEntryPaymentType gncEntryGetBillPayment (const GncEntry* entry);
 /** @} */
 
 void gncEntryCopy (const GncEntry *src, GncEntry *dest);
@@ -201,7 +201,7 @@
 		       GList **tax_values);
 
 void gncEntryComputeValue (gnc_numeric qty, gnc_numeric price,
-			   GncTaxTable *tax_table, gboolean tax_included,
+			   const GncTaxTable *tax_table, gboolean tax_included,
 			   gnc_numeric discount, GncAmountType discount_type,
 			   GncDiscountHow discount_how, int SCU,
 			   /* return values */
@@ -210,9 +210,9 @@
 
 /** @} */
 
-GncOrder * gncEntryGetOrder (GncEntry *entry);
-GncInvoice * gncEntryGetInvoice (GncEntry *entry);
-GncInvoice * gncEntryGetBill (GncEntry *entry);
+GncOrder * gncEntryGetOrder (const GncEntry *entry);
+GncInvoice * gncEntryGetInvoice (const GncEntry *entry);
+GncInvoice * gncEntryGetBill (const GncEntry *entry);
 
 /** Return a pointer to the instance gncEntry that is identified
  *  by the guid, and is residing in the book. Returns NULL if the 
@@ -223,10 +223,10 @@
 #define gncEntryLookup(book,guid)    \
        QOF_BOOK_LOOKUP_ENTITY((book),(guid),GNC_ID_ENTRY, GncEntry)
 
-gboolean gncEntryIsOpen (GncEntry *entry);
+gboolean gncEntryIsOpen (const GncEntry *entry);
 void gncEntryBeginEdit (GncEntry *entry);
 void gncEntryCommitEdit (GncEntry *entry);
-int gncEntryCompare (GncEntry *a, GncEntry *b);
+int gncEntryCompare (const GncEntry *a, const GncEntry *b);
 
 #define ENTRY_DATE			"date"
 #define ENTRY_DATE_ENTERED 	"date-entered"

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncInvoice.c
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncInvoice.c	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncInvoice.c	2007-12-24 02:48:30 UTC (rev 16710)
@@ -469,7 +469,7 @@
 /* ================================================================== */
 /* Get Functions */
 
-const char * gncInvoiceGetID (GncInvoice *invoice)
+const char * gncInvoiceGetID (const GncInvoice *invoice)
 {
   if (!invoice) return NULL;
   return invoice->id;
@@ -501,21 +501,21 @@
 	return QOF_INSTANCE(billto);
 }
 
-Timespec gncInvoiceGetDateOpened (GncInvoice *invoice)
+Timespec gncInvoiceGetDateOpened (const GncInvoice *invoice)
 {
   Timespec ts; ts.tv_sec = 0; ts.tv_nsec = 0;
   if (!invoice) return ts;
   return invoice->date_opened;
 }
 
-Timespec gncInvoiceGetDatePosted (GncInvoice *invoice)
+Timespec gncInvoiceGetDatePosted (const GncInvoice *invoice)
 {
   Timespec ts; ts.tv_sec = 0; ts.tv_nsec = 0;
   if (!invoice) return ts;
   return invoice->date_posted;
 }
 
-Timespec gncInvoiceGetDateDue (GncInvoice *invoice)
+Timespec gncInvoiceGetDateDue (const GncInvoice *invoice)
 {
   Transaction *txn;
   Timespec ts; ts.tv_sec = 0; ts.tv_nsec = 0;
@@ -525,19 +525,19 @@
   return xaccTransRetDateDueTS (txn);
 }
 
-GncBillTerm * gncInvoiceGetTerms (GncInvoice *invoice)
+GncBillTerm * gncInvoiceGetTerms (const GncInvoice *invoice)
 {
-  if (!invoice) return 0;
+  if (!invoice) return NULL;
   return invoice->terms;
 }
 
-const char * gncInvoiceGetBillingID (GncInvoice *invoice)
+const char * gncInvoiceGetBillingID (const GncInvoice *invoice)
 {
-  if (!invoice) return 0;
+  if (!invoice) return NULL;
   return invoice->billing_id;
 }
 
-const char * gncInvoiceGetNotes (GncInvoice *invoice)
+const char * gncInvoiceGetNotes (const GncInvoice *invoice)
 {
   if (!invoice) return NULL;
   return invoice->notes;
@@ -629,7 +629,7 @@
   }
 }
 
-gnc_commodity * gncInvoiceGetCurrency (GncInvoice *invoice)
+gnc_commodity * gncInvoiceGetCurrency (const GncInvoice *invoice)
 {
   if (!invoice) return NULL;
   return invoice->currency;
@@ -641,32 +641,32 @@
   return &invoice->billto;
 }
 
-GNCLot * gncInvoiceGetPostedLot (GncInvoice *invoice)
+GNCLot * gncInvoiceGetPostedLot (const GncInvoice *invoice)
 {
   if (!invoice) return NULL;
   return invoice->posted_lot;
 }
 
-Transaction * gncInvoiceGetPostedTxn (GncInvoice *invoice)
+Transaction * gncInvoiceGetPostedTxn (const GncInvoice *invoice)
 {
   if (!invoice) return NULL;
   return invoice->posted_txn;
 }
 
-Account * gncInvoiceGetPostedAcc (GncInvoice *invoice)
+Account * gncInvoiceGetPostedAcc (const GncInvoice *invoice)
 {
   if (!invoice) return NULL;
   return invoice->posted_acc;
 }
 
-gboolean gncInvoiceGetActive (GncInvoice *invoice)
+gboolean gncInvoiceGetActive (const GncInvoice *invoice)
 {
   if (!invoice) return FALSE;
   return invoice->active;
 }
 
 
-gnc_numeric gncInvoiceGetToChargeAmount (GncInvoice *invoice)
+gnc_numeric gncInvoiceGetToChargeAmount (const GncInvoice *invoice)
 {
   if (!invoice) return gnc_numeric_zero();
   return invoice->to_charge_amount;
@@ -724,7 +724,7 @@
 }
 
 static GncJob*
-qofInvoiceGetJob (GncInvoice *invoice)
+qofInvoiceGetJob (const GncInvoice *invoice)
 {
 	if(!invoice) { return NULL; }
 	return invoice->job;
@@ -806,7 +806,7 @@
 }
 
 GncInvoice * 
-gncInvoiceGetInvoiceFromTxn (Transaction *txn)
+gncInvoiceGetInvoiceFromTxn (const Transaction *txn)
 {
   KvpFrame *kvp;
   KvpValue *value;
@@ -1454,20 +1454,20 @@
   return txn;    
 }
 
-static gboolean gncInvoiceDateExists (Timespec *date)
+static gboolean gncInvoiceDateExists (const Timespec *date)
 {
   g_return_val_if_fail (date, FALSE);
   if (date->tv_sec || date->tv_nsec) return TRUE;
   return FALSE;
 }
 
-gboolean gncInvoiceIsPosted (GncInvoice *invoice)
+gboolean gncInvoiceIsPosted (const GncInvoice *invoice)
 {
   if (!invoice) return FALSE;
   return gncInvoiceDateExists (&(invoice->date_posted));
 }
 
-gboolean gncInvoiceIsPaid (GncInvoice *invoice)
+gboolean gncInvoiceIsPaid (const GncInvoice *invoice)
 {
   if (!invoice) return FALSE;
   if (!invoice->posted_lot) return FALSE;
@@ -1501,7 +1501,7 @@
 			 gncInvoiceOnDone, invoice_free);
 }
 
-int gncInvoiceCompare (GncInvoice *a, GncInvoice *b)
+int gncInvoiceCompare (const GncInvoice *a, const GncInvoice *b)
 {
   int compare;
 

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncInvoice.h
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncInvoice.h	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncInvoice.h	2007-12-24 02:48:30 UTC (rev 16710)
@@ -97,23 +97,23 @@
 
 /** @name Get Functions 
  @{ */
-const char * gncInvoiceGetID (GncInvoice *invoice);
+const char * gncInvoiceGetID (const GncInvoice *invoice);
 GncOwner * gncInvoiceGetOwner (GncInvoice *invoice);
-Timespec gncInvoiceGetDateOpened (GncInvoice *invoice);
-Timespec gncInvoiceGetDatePosted (GncInvoice *invoice);
-Timespec gncInvoiceGetDateDue (GncInvoice *invoice);
-GncBillTerm * gncInvoiceGetTerms (GncInvoice *invoice);
-const char * gncInvoiceGetBillingID (GncInvoice *invoice);
-const char * gncInvoiceGetNotes (GncInvoice *invoice);
+Timespec gncInvoiceGetDateOpened (const GncInvoice *invoice);
+Timespec gncInvoiceGetDatePosted (const GncInvoice *invoice);
+Timespec gncInvoiceGetDateDue (const GncInvoice *invoice);
+GncBillTerm * gncInvoiceGetTerms (const GncInvoice *invoice);
+const char * gncInvoiceGetBillingID (const GncInvoice *invoice);
+const char * gncInvoiceGetNotes (const GncInvoice *invoice);
 const char * gncInvoiceGetType (GncInvoice *invoice); 
-gnc_commodity * gncInvoiceGetCurrency (GncInvoice *invoice);
+gnc_commodity * gncInvoiceGetCurrency (const GncInvoice *invoice);
 GncOwner * gncInvoiceGetBillTo (GncInvoice *invoice);
-gnc_numeric gncInvoiceGetToChargeAmount (GncInvoice *invoice);
-gboolean gncInvoiceGetActive (GncInvoice *invoice);
+gnc_numeric gncInvoiceGetToChargeAmount (const GncInvoice *invoice);
+gboolean gncInvoiceGetActive (const GncInvoice *invoice);
 
-GNCLot * gncInvoiceGetPostedLot (GncInvoice *invoice);
-Transaction * gncInvoiceGetPostedTxn (GncInvoice *invoice);
-Account * gncInvoiceGetPostedAcc (GncInvoice *invoice);
+GNCLot * gncInvoiceGetPostedLot (const GncInvoice *invoice);
+Transaction * gncInvoiceGetPostedTxn (const GncInvoice *invoice);
+Account * gncInvoiceGetPostedAcc (const GncInvoice *invoice);
 /** @} */
 
 /** return the "total" amount of the invoice */
@@ -165,7 +165,7 @@
 
 
 /** Given a transaction, find and return the Invoice */
-GncInvoice * gncInvoiceGetInvoiceFromTxn (Transaction *txn);
+GncInvoice * gncInvoiceGetInvoiceFromTxn (const Transaction *txn);
 
 /** Given a LOT, find and return the Invoice attached to the lot */
 GncInvoice * gncInvoiceGetInvoiceFromLot (GNCLot *lot);
@@ -181,9 +181,9 @@
 
 void gncInvoiceBeginEdit (GncInvoice *invoice);
 void gncInvoiceCommitEdit (GncInvoice *invoice);
-int gncInvoiceCompare (GncInvoice *a, GncInvoice *b);
-gboolean gncInvoiceIsPosted (GncInvoice *invoice);
-gboolean gncInvoiceIsPaid (GncInvoice *invoice);
+int gncInvoiceCompare (const GncInvoice *a, const GncInvoice *b);
+gboolean gncInvoiceIsPosted (const GncInvoice *invoice);
+gboolean gncInvoiceIsPaid (const GncInvoice *invoice);
 
 #define INVOICE_ID	"id"
 #define INVOICE_OWNER	"owner"

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncJob.c
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncJob.c	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncJob.c	2007-12-24 02:48:30 UTC (rev 16710)
@@ -307,19 +307,19 @@
 /* ================================================================== */
 /* Get Functions */
 
-const char * gncJobGetID (GncJob *job)
+const char * gncJobGetID (const GncJob *job)
 {
   if (!job) return NULL;
   return job->id;
 }
 
-const char * gncJobGetName (GncJob *job)
+const char * gncJobGetName (const GncJob *job)
 {
   if (!job) return NULL;
   return job->name;
 }
 
-const char * gncJobGetReference (GncJob *job)
+const char * gncJobGetReference (const GncJob *job)
 {
   if (!job) return NULL;
   return job->desc;
@@ -331,7 +331,7 @@
   return &(job->owner);
 }
 
-gboolean gncJobGetActive (GncJob *job)
+gboolean gncJobGetActive (const GncJob *job)
 {
   if (!job) return FALSE;
   return job->active;

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncJob.h
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncJob.h	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncJob.h	2007-12-24 02:48:30 UTC (rev 16710)
@@ -76,13 +76,13 @@
 @{
 */
 
-const char * gncJobGetID (GncJob *job);
-const char * gncJobGetName (GncJob *job);
-const char * gncJobGetReference (GncJob *job);
+const char * gncJobGetID (const GncJob *job);
+const char * gncJobGetName (const GncJob *job);
+const char * gncJobGetReference (const GncJob *job);
 GncOwner * gncJobGetOwner (GncJob *job);
 
 /** @} */
-gboolean gncJobGetActive (GncJob *job);
+gboolean gncJobGetActive (const GncJob *job);
 
 /** Return a pointer to the instance gncJob that is identified
  *  by the guid, and is residing in the book. Returns NULL if the

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncOrder.c
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncOrder.c	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncOrder.c	2007-12-24 02:48:30 UTC (rev 16710)
@@ -293,7 +293,7 @@
 
 /* Get Functions */
 
-const char * gncOrderGetID (GncOrder *order)
+const char * gncOrderGetID (const GncOrder *order)
 {
   if (!order) return NULL;
   return order->id;
@@ -305,33 +305,33 @@
   return &order->owner;
 }
 
-Timespec gncOrderGetDateOpened (GncOrder *order)
+Timespec gncOrderGetDateOpened (const GncOrder *order)
 {
   Timespec ts; ts.tv_sec = 0; ts.tv_nsec = 0;
   if (!order) return ts;
   return order->opened;
 }
 
-Timespec gncOrderGetDateClosed (GncOrder *order)
+Timespec gncOrderGetDateClosed (const GncOrder *order)
 {
   Timespec ts; ts.tv_sec = 0; ts.tv_nsec = 0;
   if (!order) return ts;
   return order->closed;
 }
 
-const char * gncOrderGetNotes (GncOrder *order)
+const char * gncOrderGetNotes (const GncOrder *order)
 {
   if (!order) return NULL;
   return order->notes;
 }
 
-const char * gncOrderGetReference (GncOrder *order)
+const char * gncOrderGetReference (const GncOrder *order)
 {
   if (!order) return NULL;
   return order->reference;
 }
 
-gboolean gncOrderGetActive (GncOrder *order)
+gboolean gncOrderGetActive (const GncOrder *order)
 {
   if (!order) return FALSE;
   return order->active;
@@ -344,7 +344,7 @@
   return order->entries;
 }
 
-gboolean gncOrderIsClosed (GncOrder *order)
+gboolean gncOrderIsClosed (const GncOrder *order)
 {
   if (!order) return FALSE;
   if (order->closed.tv_sec || order->closed.tv_nsec) return TRUE;
@@ -378,7 +378,7 @@
 			 gncOrderOnDone, order_free);
 }
 
-int gncOrderCompare (GncOrder *a, GncOrder *b)
+int gncOrderCompare (const GncOrder *a, const GncOrder *b)
 {
   int compare;
 

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncOrder.h
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncOrder.h	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncOrder.h	2007-12-24 02:48:30 UTC (rev 16710)
@@ -78,22 +78,22 @@
 
 /* Get Functions */
 
-const char * gncOrderGetID (GncOrder *order);
+const char * gncOrderGetID (const GncOrder *order);
 GncOwner * gncOrderGetOwner (GncOrder *order);
-Timespec gncOrderGetDateOpened (GncOrder *order);
-Timespec gncOrderGetDateClosed (GncOrder *order);
-const char * gncOrderGetNotes (GncOrder *order);
-const char * gncOrderGetReference (GncOrder *order);
-gboolean gncOrderGetActive (GncOrder *order);
+Timespec gncOrderGetDateOpened (const GncOrder *order);
+Timespec gncOrderGetDateClosed (const GncOrder *order);
+const char * gncOrderGetNotes (const GncOrder *order);
+const char * gncOrderGetReference (const GncOrder *order);
+gboolean gncOrderGetActive (const GncOrder *order);
 
 /* Get the list Entries */
 GList * gncOrderGetEntries (GncOrder *order);
 
 void gncOrderBeginEdit (GncOrder *order);
 void gncOrderCommitEdit (GncOrder *order);
-int gncOrderCompare (GncOrder *a, GncOrder *b);
+int gncOrderCompare (const GncOrder *a, const GncOrder *b);
 
-gboolean gncOrderIsClosed (GncOrder *order);
+gboolean gncOrderIsClosed (const GncOrder *order);
 
 /** Return a pointer to the instance gncOrder that is identified
  *  by the guid, and is residing in the book. Returns NULL if the 

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncOwner.c
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncOwner.c	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncOwner.c	2007-12-24 02:48:30 UTC (rev 16710)
@@ -103,7 +103,7 @@
 }
 
 QofIdType
-qofOwnerGetType(GncOwner *owner)
+qofOwnerGetType(const GncOwner *owner)
 {
 	QofIdType type;
 
@@ -139,7 +139,7 @@
 }
 
 QofInstance*
-qofOwnerGetOwner (GncOwner *owner)
+qofOwnerGetOwner (const GncOwner *owner)
 {
 	QofInstance *ent;
 
@@ -234,7 +234,7 @@
   return owner->owner.employee;
 }
 
-gnc_commodity * gncOwnerGetCurrency (GncOwner *owner)
+gnc_commodity * gncOwnerGetCurrency (const GncOwner *owner)
 {
   if (!owner) return NULL;
   switch (owner->type) {
@@ -297,7 +297,7 @@
   return (a->owner.undefined == b->owner.undefined);
 }
 
-const char * gncOwnerGetName (GncOwner *owner)
+const char * gncOwnerGetName (const GncOwner *owner)
 {
   if (!owner) return NULL;
   switch (owner->type) {
@@ -316,7 +316,7 @@
   }
 }
 
-const GUID * gncOwnerGetGUID (GncOwner *owner)
+const GUID * gncOwnerGetGUID (const GncOwner *owner)
 {
   if (!owner) return NULL;
 
@@ -393,7 +393,7 @@
   return gncOwnerGetGUID (owner);
 }
 
-void gncOwnerAttachToLot (GncOwner *owner, GNCLot *lot)
+void gncOwnerAttachToLot (const GncOwner *owner, GNCLot *lot)
 {
   KvpFrame *kvp;
   KvpValue *value;
@@ -458,7 +458,7 @@
   return (owner->owner.undefined != NULL);
 }
 
-gboolean gncOwnerIsValid (GncOwner *owner)
+gboolean gncOwnerIsValid (const GncOwner *owner)
 {
   if (!owner) return FALSE;
   return (owner->owner.undefined != NULL);

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncOwner.h
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncOwner.h	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncOwner.h	2007-12-24 02:48:30 UTC (rev 16710)
@@ -61,9 +61,9 @@
 @{
 */
 /** return the type for the collection. */
-QofIdType qofOwnerGetType(GncOwner *owner);
+QofIdType qofOwnerGetType(const GncOwner *owner);
 /** return the owner itself as an entity. */
-QofInstance* qofOwnerGetOwner (GncOwner *owner);
+QofInstance* qofOwnerGetOwner (const GncOwner *owner);
 /** set the owner from the entity. */
 void qofOwnerSetEntity (GncOwner *owner, QofInstance *ent);
 
@@ -112,14 +112,14 @@
 gboolean gncOwnerEqual (const GncOwner *a, const GncOwner *b);
 int gncOwnerCompare (const GncOwner *a, const GncOwner *b);
 
-const char * gncOwnerGetName (GncOwner *owner);
-gnc_commodity * gncOwnerGetCurrency (GncOwner *owner);
+const char * gncOwnerGetName (const GncOwner *owner);
+gnc_commodity * gncOwnerGetCurrency (const GncOwner *owner);
 
 /** Get the GUID of the immediate owner */
-const GUID * gncOwnerGetGUID (GncOwner *owner);
+const GUID * gncOwnerGetGUID (const GncOwner *owner);
 GUID gncOwnerRetGUID (GncOwner *owner);
 
-gboolean gncOwnerIsValid (GncOwner *owner);
+gboolean gncOwnerIsValid (const GncOwner *owner);
 
 /**
  * Get the "parent" Owner or GUID thereof.  The "parent" owner
@@ -129,7 +129,7 @@
 const GUID * gncOwnerGetEndGUID (GncOwner *owner);
 
 /** attach an owner to a lot */
-void gncOwnerAttachToLot (GncOwner *owner, GNCLot *lot);
+void gncOwnerAttachToLot (const GncOwner *owner, GNCLot *lot);
 
 /** Get the owner from the lot.  If an owner is found in the lot,
  * fill in "owner" and return TRUE.  Otherwise return FALSE.

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncTaxTable.c
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncTaxTable.c	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncTaxTable.c	2007-12-24 02:48:30 UTC (rev 16710)
@@ -66,7 +66,7 @@
   GList *         tables;          /* visible tables */
 };
 
-static GncTaxTableEntry * CloneTaxEntry (GncTaxTableEntry*, QofBook *);
+static GncTaxTableEntry * CloneTaxEntry (const GncTaxTableEntry*, QofBook *);
 
 static QofLogModule log_module = GNC_MOD_BUSINESS;
 
@@ -194,7 +194,7 @@
 }
 
 static inline void
-gncTaxTableRemoveChild (GncTaxTable *table, GncTaxTable *child)
+gncTaxTableRemoveChild (GncTaxTable *table, const GncTaxTable *child)
 {
   g_return_if_fail(table);
   g_return_if_fail(child);
@@ -291,7 +291,7 @@
 }
 
 GncTaxTable *
-gncTaxTableObtainTwin (GncTaxTable *from, QofBook *book)
+gncTaxTableObtainTwin (const GncTaxTable *from, QofBook *book)
 {
   GncTaxTable *table;
   if (!from) return NULL;
@@ -370,7 +370,7 @@
  *  we set it above, when cloning the table).
  */
 static GncTaxTableEntry * 
-CloneTaxEntry (GncTaxTableEntry*from, QofBook *book)
+CloneTaxEntry (const GncTaxTableEntry*from, QofBook *book)
 {
   QofInstance *acc;
   GncTaxTableEntry *entry;
@@ -575,13 +575,13 @@
   return bi->tables;
 }
 
-const char *gncTaxTableGetName (GncTaxTable *table)
+const char *gncTaxTableGetName (const GncTaxTable *table)
 {
   if (!table) return NULL;
   return table->name;
 }
 
-static GncTaxTableEntry *gncTaxTableEntryCopy (GncTaxTableEntry *entry)
+static GncTaxTableEntry *gncTaxTableEntryCopy (const GncTaxTableEntry *entry)
 {
   GncTaxTableEntry *e;
   if (!entry) return NULL;
@@ -594,7 +594,7 @@
   return e;
 }
 
-static GncTaxTable *gncTaxTableCopy (GncTaxTable *table)
+static GncTaxTable *gncTaxTableCopy (const GncTaxTable *table)
 {
   GncTaxTable *t;
   GList *list;
@@ -626,56 +626,56 @@
   return child;
 }
 
-GncTaxTable *gncTaxTableGetParent (GncTaxTable *table)
+GncTaxTable *gncTaxTableGetParent (const GncTaxTable *table)
 {
   if (!table) return NULL;
   return table->parent;
 }
 
-GList *gncTaxTableGetEntries (GncTaxTable *table)
+GList *gncTaxTableGetEntries (const GncTaxTable *table)
 {
   if (!table) return NULL;
   return table->entries;
 }
 
-gint64 gncTaxTableGetRefcount (GncTaxTable *table)
+gint64 gncTaxTableGetRefcount (const GncTaxTable *table)
 {
   if (!table) return 0;
   return table->refcount;
 }
 
-Timespec gncTaxTableLastModified (GncTaxTable *table)
+Timespec gncTaxTableLastModified (const GncTaxTable *table)
 {
   Timespec ts = { 0 , 0 };
   if (!table) return ts;
   return table->modtime;
 }
 
-gboolean gncTaxTableGetInvisible (GncTaxTable *table)
+gboolean gncTaxTableGetInvisible (const GncTaxTable *table)
 {
   if (!table) return FALSE;
   return table->invisible;
 }
 
-Account * gncTaxTableEntryGetAccount (GncTaxTableEntry *entry)
+Account * gncTaxTableEntryGetAccount (const GncTaxTableEntry *entry)
 {
   if (!entry) return NULL;
   return entry->account;
 }
 
-GncAmountType gncTaxTableEntryGetType (GncTaxTableEntry *entry)
+GncAmountType gncTaxTableEntryGetType (const GncTaxTableEntry *entry)
 {
   if (!entry) return 0;
   return entry->type;
 }
 
-gnc_numeric gncTaxTableEntryGetAmount (GncTaxTableEntry *entry)
+gnc_numeric gncTaxTableEntryGetAmount (const GncTaxTableEntry *entry)
 {
   if (!entry) return gnc_numeric_zero();
   return entry->amount;
 }
 
-int gncTaxTableEntryCompare (GncTaxTableEntry *a, GncTaxTableEntry *b)
+int gncTaxTableEntryCompare (const GncTaxTableEntry *a, const GncTaxTableEntry *b)
 {
   char *name_a, *name_b;
   int retval;
@@ -696,7 +696,7 @@
   return gnc_numeric_compare (a->amount, b->amount);
 }
 
-int gncTaxTableCompare (GncTaxTable *a, GncTaxTable *b)
+int gncTaxTableCompare (const GncTaxTable *a, const GncTaxTable *b)
 {
   if (!a && !b) return 0;
   if (!a) return -1;

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncTaxTable.h
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncTaxTable.h	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncTaxTable.h	2007-12-24 02:48:30 UTC (rev 16710)
@@ -149,21 +149,21 @@
 
 GList * gncTaxTableGetTables (QofBook *book);
 
-const char *gncTaxTableGetName (GncTaxTable *table);
-GncTaxTable *gncTaxTableGetParent (GncTaxTable *table);
+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 (GncTaxTable *table);
-gint64 gncTaxTableGetRefcount (GncTaxTable *table);
-Timespec gncTaxTableLastModified (GncTaxTable *table);
+GList *gncTaxTableGetEntries (const GncTaxTable *table);
+gint64 gncTaxTableGetRefcount (const GncTaxTable *table);
+Timespec gncTaxTableLastModified (const GncTaxTable *table);
 
-Account * gncTaxTableEntryGetAccount (GncTaxTableEntry *entry);
-GncAmountType gncTaxTableEntryGetType (GncTaxTableEntry *entry);
-gnc_numeric gncTaxTableEntryGetAmount (GncTaxTableEntry *entry);
+Account * gncTaxTableEntryGetAccount (const GncTaxTableEntry *entry);
+GncAmountType gncTaxTableEntryGetType (const GncTaxTableEntry *entry);
+gnc_numeric gncTaxTableEntryGetAmount (const GncTaxTableEntry *entry);
 /** @} */
 
-int gncTaxTableCompare (GncTaxTable *a, GncTaxTable *b);
-int gncTaxTableEntryCompare (GncTaxTableEntry *a, GncTaxTableEntry *b);
+int gncTaxTableCompare (const GncTaxTable *a, const GncTaxTable *b);
+int gncTaxTableEntryCompare (const GncTaxTableEntry *a, const GncTaxTableEntry *b);
 
 /************************************************/
 

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncTaxTableP.h
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncTaxTableP.h	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncTaxTableP.h	2007-12-24 02:48:30 UTC (rev 16710)
@@ -38,7 +38,7 @@
 void gncTaxTableSetRefcount (GncTaxTable *table, gint64 refcount);
 void gncTaxTableMakeInvisible (GncTaxTable *table);
 
-gboolean gncTaxTableGetInvisible (GncTaxTable *table);
+gboolean gncTaxTableGetInvisible (const GncTaxTable *table);
 
 /** The gncCloneTaxTable() routine makes a copy of the indicated
  *  tax table, placing it in the indicated book.  It copies
@@ -61,7 +61,7 @@
  * it from the other Get routines, which work in fundamentally
  * different ways.
  */
-GncTaxTable * gncTaxTableObtainTwin (GncTaxTable *from, QofBook *book);
+GncTaxTable * gncTaxTableObtainTwin (const GncTaxTable *from, QofBook *book);
 
 #define gncTaxTableSetGUID(E,G) qof_instance_set_guid(QOF_INSTANCE(E),(G))
 

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncVendor.c
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncVendor.c	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncVendor.c	2007-12-24 02:48:30 UTC (rev 16710)
@@ -346,68 +346,68 @@
 /* ============================================================== */
 /* Get Functions */
 
-const char * gncVendorGetID (GncVendor *vendor)
+const char * gncVendorGetID (const GncVendor *vendor)
 {
   if (!vendor) return NULL;
   return vendor->id;
 }
 
-const char * gncVendorGetName (GncVendor *vendor)
+const char * gncVendorGetName (const GncVendor *vendor)
 {
   if (!vendor) return NULL;
   return vendor->name;
 }
 
-GncAddress * gncVendorGetAddr (GncVendor *vendor)
+GncAddress * gncVendorGetAddr (const GncVendor *vendor)
 {
   if (!vendor) return NULL;
   return vendor->addr;
 }
 
-const char * gncVendorGetNotes (GncVendor *vendor)
+const char * gncVendorGetNotes (const GncVendor *vendor)
 {
   if (!vendor) return NULL;
   return vendor->notes;
 }
 
-GncBillTerm * gncVendorGetTerms (GncVendor *vendor)
+GncBillTerm * gncVendorGetTerms (const GncVendor *vendor)
 {
   if (!vendor) return 0;
   return vendor->terms;
 }
 
-GncTaxIncluded gncVendorGetTaxIncluded (GncVendor *vendor)
+GncTaxIncluded gncVendorGetTaxIncluded (const GncVendor *vendor)
 {
   if (!vendor) return GNC_TAXINCLUDED_USEGLOBAL;
   return vendor->taxincluded;
 }
 
-gnc_commodity * gncVendorGetCurrency (GncVendor *vendor)
+gnc_commodity * gncVendorGetCurrency (const GncVendor *vendor)
 {
   if (!vendor) return NULL;
   return vendor->currency;
 }
 
-gboolean gncVendorGetActive (GncVendor *vendor)
+gboolean gncVendorGetActive (const GncVendor *vendor)
 {
   if (!vendor) return FALSE;
   return vendor->active;
 }
 
-gboolean gncVendorGetTaxTableOverride (GncVendor *vendor)
+gboolean gncVendorGetTaxTableOverride (const GncVendor *vendor)
 {
   if (!vendor) return FALSE;
   return vendor->taxtable_override;
 }
 
-GncTaxTable* gncVendorGetTaxTable (GncVendor *vendor)
+GncTaxTable* gncVendorGetTaxTable (const GncVendor *vendor)
 {
   if (!vendor) return NULL;
   return vendor->taxtable;
 }
 
 static const char*
-qofVendorGetTaxIncluded(GncVendor *vendor)
+qofVendorGetTaxIncluded(const GncVendor *vendor)
 {
 	return gncTaxIncludedTypeToString(vendor->taxincluded);
 }
@@ -475,7 +475,7 @@
 /* ============================================================== */
 /* Other functions */
 
-int gncVendorCompare (GncVendor *a, GncVendor *b)
+int gncVendorCompare (const GncVendor *a, const GncVendor *b)
 {
   if (!a && !b) return 0;
   if (!a && b) return 1;
@@ -484,7 +484,7 @@
   return(strcmp(a->name, b->name));
 }
 
-GList * gncVendorGetJoblist (GncVendor *vendor, gboolean show_all)
+GList * gncVendorGetJoblist (const GncVendor *vendor, gboolean show_all)
 {
   if (!vendor) return NULL;
 
@@ -501,7 +501,7 @@
   }
 }
 
-gboolean gncVendorIsDirty (GncVendor *vendor)
+gboolean gncVendorIsDirty (const GncVendor *vendor)
 {
   if (!vendor) return FALSE;
   return (qof_instance_get_dirty_flag(vendor)

Modified: gnucash/branches/gda-dev2/src/business/business-core/gncVendor.h
===================================================================
--- gnucash/branches/gda-dev2/src/business/business-core/gncVendor.h	2007-12-24 00:44:08 UTC (rev 16709)
+++ gnucash/branches/gda-dev2/src/business/business-core/gncVendor.h	2007-12-24 02:48:30 UTC (rev 16710)
@@ -86,25 +86,25 @@
 @{
 */
 
-const char * gncVendorGetID (GncVendor *vendor);
-const char * gncVendorGetName (GncVendor *vendor);
-GncAddress * gncVendorGetAddr (GncVendor *vendor);
-const char * gncVendorGetNotes (GncVendor *vendor);
-GncBillTerm * gncVendorGetTerms (GncVendor *vendor);
-GncTaxIncluded gncVendorGetTaxIncluded (GncVendor *vendor);
-gnc_commodity * gncVendorGetCurrency (GncVendor *vendor);
-gboolean gncVendorGetActive (GncVendor *vendor);
+const char * gncVendorGetID (const GncVendor *vendor);
+const char * gncVendorGetName (const GncVendor *vendor);
+GncAddress * gncVendorGetAddr (const GncVendor *vendor);
+const char * gncVendorGetNotes (const GncVendor *vendor);
+GncBillTerm * gncVendorGetTerms (const GncVendor *vendor);
+GncTaxIncluded gncVendorGetTaxIncluded (const GncVendor *vendor);
+gnc_commodity * gncVendorGetCurrency (const GncVendor *vendor);
+gboolean gncVendorGetActive (const GncVendor *vendor);
 
-gboolean gncVendorGetTaxTableOverride (GncVendor *vendor);
-GncTaxTable* gncVendorGetTaxTable (GncVendor *vendor);
+gboolean gncVendorGetTaxTableOverride (const GncVendor *vendor);
+GncTaxTable* gncVendorGetTaxTable (const GncVendor *vendor);
 
 /** @} */
 /** XXX should be renamed to RetJobList to be consistent with
  * other usage, since caller must free the copied list 
  */
-GList * gncVendorGetJoblist (GncVendor *vendor, gboolean show_all);
-gboolean gncVendorIsDirty (GncVendor *vendor);
-int gncVendorCompare (GncVendor *a, GncVendor *b);
+GList * gncVendorGetJoblist (const GncVendor *vendor, gboolean show_all);
+gboolean gncVendorIsDirty (const GncVendor *vendor);
+int gncVendorCompare (const GncVendor *a, const GncVendor *b);
 
 /** Return a pointer to the instance gncVendor that is identified
  *  by the guid, and is residing in the book. Returns NULL if the 



More information about the gnucash-changes mailing list