[Gnucash-changes] CashUtil Sync: business backend

Neil Williams codehelp at cvs.gnucash.org
Wed Aug 17 02:54:56 EDT 2005


Log Message:
-----------
CashUtil Sync: business backend

Tags:
----
gnucash-gnome2-dev

Modified Files:
--------------
    gnucash/src/business/business-core/file:
        .cvsignore
        gnc-address-xml-v2.c
        gnc-bill-term-xml-v2.c
        gnc-customer-xml-v2.c
        gnc-employee-xml-v2.c
        gnc-entry-xml-v2.c
        gnc-invoice-xml-v2.c
        gnc-job-xml-v2.c
        gnc-order-xml-v2.c
        gnc-owner-xml-v2.c
        gnc-tax-table-xml-v2.c
        gnc-vendor-xml-v2.c

Revision Data
-------------
Index: gnc-job-xml-v2.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/file/gnc-job-xml-v2.c,v
retrieving revision 1.4.4.4
retrieving revision 1.4.4.5
diff -Lsrc/business/business-core/file/gnc-job-xml-v2.c -Lsrc/business/business-core/file/gnc-job-xml-v2.c -u -r1.4.4.4 -r1.4.4.5
--- src/business/business-core/file/gnc-job-xml-v2.c
+++ src/business/business-core/file/gnc-job-xml-v2.c
@@ -85,7 +85,7 @@
     maybe_add_string (ret, job_reference_string, gncJobGetReference (job));
 
     xmlAddChild(ret, gnc_owner_to_dom_tree (job_owner_string,
-					    gncJobGetOwner (job)));
+					    (GncOwner*)gncJobGetOwner (job)));
 
     xmlAddChild(ret, int_to_dom_tree(job_active_string,
 				     gncJobGetActive (job)));
@@ -98,7 +98,7 @@
 struct job_pdata
 {
   GncJob *job;
-  GNCBook *book;
+  QofBook *book;
 };
 
 static gboolean
@@ -208,7 +208,7 @@
 };
 
 static GncJob*
-dom_tree_to_job (xmlNodePtr node, GNCBook *book)
+dom_tree_to_job (xmlNodePtr node, QofBook *book)
 {
     struct job_pdata job_pdata;
     gboolean successful;
@@ -242,7 +242,7 @@
     GncJob *job;
     xmlNodePtr tree = (xmlNodePtr)data_for_children;
     gxpf_data *gdata = (gxpf_data*)global_data;
-    GNCBook *book = gdata->bookdata;
+    QofBook *book = gdata->bookdata;
 
     successful = TRUE;
 
@@ -299,7 +299,7 @@
 }
 
 static int
-job_get_count (GNCBook *book)
+job_get_count (QofBook *book)
 {
   int count = 0;
   qof_object_foreach (_GNC_MOD_NAME, book, do_count, (gpointer) &count);
@@ -323,7 +323,7 @@
 }
 
 static void
-job_write (FILE *out, GNCBook *book)
+job_write (FILE *out, QofBook *book)
 {
   qof_object_foreach (_GNC_MOD_NAME, book, xml_add_job, (gpointer) out);
 }
Index: gnc-customer-xml-v2.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/file/gnc-customer-xml-v2.c,v
retrieving revision 1.10.4.4
retrieving revision 1.10.4.5
diff -Lsrc/business/business-core/file/gnc-customer-xml-v2.c -Lsrc/business/business-core/file/gnc-customer-xml-v2.c -u -r1.10.4.4 -r1.10.4.5
--- src/business/business-core/file/gnc-customer-xml-v2.c
+++ src/business/business-core/file/gnc-customer-xml-v2.c
@@ -126,11 +126,11 @@
     xmlAddChild
       (ret,
        commodity_ref_to_dom_tree(cust_currency_string,
-				 gncCustomerGetCurrency (cust)));
+				 (gnc_commodity*)gncCustomerGetCurrency (cust)));
 
     xmlAddChild (ret, int_to_dom_tree (cust_taxtableoverride_string,
 				       gncCustomerGetTaxTableOverride (cust)));
-    taxtable = gncCustomerGetTaxTable (cust);
+    taxtable = (GncTaxTable*)gncCustomerGetTaxTable (cust);
     if (taxtable)
       xmlAddChild (ret, guid_to_dom_tree (cust_taxtable_string,
 					  qof_instance_get_guid(QOF_INSTANCE(taxtable))));
@@ -147,7 +147,7 @@
 struct customer_pdata
 {
   GncCustomer *customer;
-  GNCBook *book;
+  QofBook *book;
 };
 
 static gboolean
@@ -397,7 +397,7 @@
 };
 
 static GncCustomer*
-dom_tree_to_customer (xmlNodePtr node, GNCBook *book)
+dom_tree_to_customer (xmlNodePtr node, QofBook *book)
 {
     struct customer_pdata cust_pdata;
     gboolean successful;
@@ -431,7 +431,7 @@
     GncCustomer *cust;
     xmlNodePtr tree = (xmlNodePtr)data_for_children;
     gxpf_data *gdata = (gxpf_data*)global_data;
-    GNCBook *book = gdata->bookdata;
+    QofBook *book = gdata->bookdata;
 
     successful = TRUE;
 
@@ -488,7 +488,7 @@
 }
 
 static int
-customer_get_count (GNCBook *book)
+customer_get_count (QofBook *book)
 {
   int count = 0;
   qof_object_foreach (_GNC_MOD_NAME, book, do_count, (gpointer) &count);
@@ -512,7 +512,7 @@
 }
 
 static void
-customer_write (FILE *out, GNCBook *book)
+customer_write (FILE *out, QofBook *book)
 {
   qof_object_foreach (_GNC_MOD_NAME, book, xml_add_customer, (gpointer) out);
 }
Index: gnc-address-xml-v2.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/file/gnc-address-xml-v2.c,v
retrieving revision 1.1.4.2
retrieving revision 1.1.4.3
diff -Lsrc/business/business-core/file/gnc-address-xml-v2.c -Lsrc/business/business-core/file/gnc-address-xml-v2.c -u -r1.1.4.2 -r1.1.4.3
--- src/business/business-core/file/gnc-address-xml-v2.c
+++ src/business/business-core/file/gnc-address-xml-v2.c
@@ -72,7 +72,7 @@
 {
     xmlNodePtr ret;
 
-    ret = xmlNewNode(NULL, tag);
+    ret = xmlNewNode(NULL, BAD_CAST tag);
     xmlSetProp(ret, BAD_CAST "version", BAD_CAST address_version_string);
 
     maybe_add_string (ret, addr_name_string, gncAddressGetName (addr));
Index: gnc-owner-xml-v2.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/file/gnc-owner-xml-v2.c,v
retrieving revision 1.1.4.3
retrieving revision 1.1.4.4
diff -Lsrc/business/business-core/file/gnc-owner-xml-v2.c -Lsrc/business/business-core/file/gnc-owner-xml-v2.c -u -r1.1.4.3 -r1.1.4.4
--- src/business/business-core/file/gnc-owner-xml-v2.c
+++ src/business/business-core/file/gnc-owner-xml-v2.c
@@ -98,7 +98,7 @@
 struct owner_pdata
 {
   GncOwner *owner;
-  GNCBook *book;
+  QofBook *book;
 };
 
 static gboolean
@@ -193,7 +193,7 @@
 };
 
 gboolean
-gnc_dom_tree_to_owner (xmlNodePtr node, GncOwner *owner, GNCBook *book)
+gnc_dom_tree_to_owner (xmlNodePtr node, GncOwner *owner, QofBook *book)
 {
     struct owner_pdata owner_pdata;
     gboolean successful;
Index: gnc-invoice-xml-v2.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/file/gnc-invoice-xml-v2.c,v
retrieving revision 1.12.4.4
retrieving revision 1.12.4.5
diff -Lsrc/business/business-core/file/gnc-invoice-xml-v2.c -Lsrc/business/business-core/file/gnc-invoice-xml-v2.c -u -r1.12.4.4 -r1.12.4.5
--- src/business/business-core/file/gnc-invoice-xml-v2.c
+++ src/business/business-core/file/gnc-invoice-xml-v2.c
@@ -167,7 +167,7 @@
 struct invoice_pdata
 {
   GncInvoice *invoice;
-  GNCBook *book;
+  QofBook *book;
 };
 
 static inline gboolean
@@ -428,7 +428,7 @@
 };
 
 static GncInvoice*
-dom_tree_to_invoice (xmlNodePtr node, GNCBook *book)
+dom_tree_to_invoice (xmlNodePtr node, QofBook *book)
 {
     struct invoice_pdata invoice_pdata;
     gboolean successful;
@@ -462,7 +462,7 @@
     GncInvoice *invoice;
     xmlNodePtr tree = (xmlNodePtr)data_for_children;
     gxpf_data *gdata = (gxpf_data*)global_data;
-    GNCBook *book = gdata->bookdata;
+    QofBook *book = gdata->bookdata;
 
     successful = TRUE;
 
@@ -519,7 +519,7 @@
 }
 
 static int
-invoice_get_count (GNCBook *book)
+invoice_get_count (QofBook *book)
 {
   int count = 0;
   qof_object_foreach (_GNC_MOD_NAME, book, do_count, (gpointer) &count);
@@ -543,7 +543,7 @@
 }
 
 static void
-invoice_write (FILE *out, GNCBook *book)
+invoice_write (FILE *out, QofBook *book)
 {
   qof_object_foreach (_GNC_MOD_NAME, book, xml_add_invoice, (gpointer) out);
 }
Index: gnc-vendor-xml-v2.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/file/gnc-vendor-xml-v2.c,v
retrieving revision 1.11.4.4
retrieving revision 1.11.4.5
diff -Lsrc/business/business-core/file/gnc-vendor-xml-v2.c -Lsrc/business/business-core/file/gnc-vendor-xml-v2.c -u -r1.11.4.4 -r1.11.4.5
--- src/business/business-core/file/gnc-vendor-xml-v2.c
+++ src/business/business-core/file/gnc-vendor-xml-v2.c
@@ -130,7 +130,7 @@
 struct vendor_pdata
 {
   GncVendor *vendor;
-  GNCBook *book;
+  QofBook *book;
 };
 
 static gboolean
@@ -335,7 +335,7 @@
 };
 
 static GncVendor*
-dom_tree_to_vendor (xmlNodePtr node, GNCBook *book)
+dom_tree_to_vendor (xmlNodePtr node, QofBook *book)
 {
     struct vendor_pdata vendor_pdata;
     gboolean successful;
@@ -369,7 +369,7 @@
     GncVendor *vendor;
     xmlNodePtr tree = (xmlNodePtr)data_for_children;
     gxpf_data *gdata = (gxpf_data*)global_data;
-    GNCBook *book = gdata->bookdata;
+    QofBook *book = gdata->bookdata;
 
     successful = TRUE;
 
@@ -426,7 +426,7 @@
 }
 
 static int
-vendor_get_count (GNCBook *book)
+vendor_get_count (QofBook *book)
 {
   int count = 0;
   qof_object_foreach (_GNC_MOD_NAME, book, do_count, (gpointer) &count);
@@ -450,7 +450,7 @@
 }
 
 static void
-vendor_write (FILE *out, GNCBook *book)
+vendor_write (FILE *out, QofBook *book)
 {
   qof_object_foreach (_GNC_MOD_NAME, book, xml_add_vendor, (gpointer) out);
 }
Index: gnc-tax-table-xml-v2.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/file/gnc-tax-table-xml-v2.c,v
retrieving revision 1.3.4.5
retrieving revision 1.3.4.6
diff -Lsrc/business/business-core/file/gnc-tax-table-xml-v2.c -Lsrc/business/business-core/file/gnc-tax-table-xml-v2.c -u -r1.3.4.5 -r1.3.4.6
--- src/business/business-core/file/gnc-tax-table-xml-v2.c
+++ src/business/business-core/file/gnc-tax-table-xml-v2.c
@@ -141,7 +141,7 @@
 struct ttentry_pdata
 {
   GncTaxTableEntry *ttentry;
-  GNCBook *book;
+  QofBook *book;
 };
 
 static gboolean
@@ -201,7 +201,7 @@
 };
 
 static GncTaxTableEntry*
-dom_tree_to_ttentry (xmlNodePtr node, GNCBook *book)
+dom_tree_to_ttentry (xmlNodePtr node, QofBook *book)
 {
   struct ttentry_pdata ttentry_pdata;
   gboolean successful;
@@ -226,7 +226,7 @@
 struct taxtable_pdata
 {
   GncTaxTable *table;
-  GNCBook *book;
+  QofBook *book;
 };
 
 static gboolean
@@ -343,10 +343,10 @@
   for (mark = node->xmlChildrenNode; mark; mark = mark->next) {
     GncTaxTableEntry *entry;
         
-    if (safe_strcmp ("text", mark->name) == 0)
+    if (safe_strcmp ("text", (char*)mark->name) == 0)
       continue;
 
-    if (safe_strcmp (gnc_taxtableentry_string, mark->name))
+    if (safe_strcmp (gnc_taxtableentry_string, (char*)mark->name))
       return FALSE;
 
     entry = dom_tree_to_ttentry (mark, pdata->book);
@@ -379,7 +379,7 @@
 };
 
 static GncTaxTable*
-dom_tree_to_taxtable (xmlNodePtr node, GNCBook *book)
+dom_tree_to_taxtable (xmlNodePtr node, QofBook *book)
 {
   struct taxtable_pdata taxtable_pdata;
   gboolean successful;
@@ -413,7 +413,7 @@
     GncTaxTable *table;
     xmlNodePtr tree = (xmlNodePtr)data_for_children;
     gxpf_data *gdata = (gxpf_data*)global_data;
-    GNCBook *book = gdata->bookdata;
+    QofBook *book = gdata->bookdata;
 
     successful = TRUE;
 
@@ -456,7 +456,7 @@
 }
 
 static int
-taxtable_get_count (GNCBook *book)
+taxtable_get_count (QofBook *book)
 {
   int count = 0;
   qof_object_foreach (_GNC_MOD_NAME, book, do_count, (gpointer) &count);
@@ -477,7 +477,7 @@
 }
 
 static void
-taxtable_write (FILE *out, GNCBook *book)
+taxtable_write (FILE *out, QofBook *book)
 {
   qof_object_foreach (_GNC_MOD_NAME, book, xml_add_taxtable, (gpointer) out);
 }
@@ -589,7 +589,7 @@
   GncTaxTable *table;
   gint32 count;
   
-  table = gncCustomerGetTaxTable(cust);
+  table = (GncTaxTable*)gncCustomerGetTaxTable(cust);
   if (table) {
     count = GPOINTER_TO_INT(g_hash_table_lookup(ht, table));
     count++;
@@ -605,7 +605,7 @@
   GncTaxTable *table;
   gint32 count;
 
-  table = gncVendorGetTaxTable(vendor);
+  table = (GncTaxTable*)gncVendorGetTaxTable(vendor);
   if (table) {
     count = GPOINTER_TO_INT(g_hash_table_lookup(ht, table));
     count++;
@@ -628,7 +628,7 @@
 }
 
 static void
-taxtable_scrub (GNCBook *book)
+taxtable_scrub (QofBook *book)
 {
   GList *list = NULL;
   GList *node;
Index: .cvsignore
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/file/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.1.4.1
diff -Lsrc/business/business-core/file/.cvsignore -Lsrc/business/business-core/file/.cvsignore -u -r1.1 -r1.1.4.1
--- src/business/business-core/file/.cvsignore
+++ src/business/business-core/file/.cvsignore
@@ -4,3 +4,5 @@
 .libs
 Makefile
 Makefile.in
+.DS_Store
+
Index: gnc-bill-term-xml-v2.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/file/gnc-bill-term-xml-v2.c,v
retrieving revision 1.3.4.5
retrieving revision 1.3.4.6
diff -Lsrc/business/business-core/file/gnc-bill-term-xml-v2.c -Lsrc/business/business-core/file/gnc-bill-term-xml-v2.c -u -r1.3.4.5 -r1.3.4.6
--- src/business/business-core/file/gnc-bill-term-xml-v2.c
+++ src/business/business-core/file/gnc-bill-term-xml-v2.c
@@ -140,7 +140,7 @@
 struct billterm_pdata
 {
   GncBillTerm *term;
-  GNCBook *book;
+  QofBook *book;
 };
 
 static gboolean
@@ -416,7 +416,7 @@
 };
 
 static GncBillTerm*
-dom_tree_to_billterm (xmlNodePtr node, GNCBook *book)
+dom_tree_to_billterm (xmlNodePtr node, QofBook *book)
 {
   struct billterm_pdata billterm_pdata;
   gboolean successful;
@@ -449,7 +449,7 @@
     GncBillTerm *term;
     xmlNodePtr tree = (xmlNodePtr)data_for_children;
     gxpf_data *gdata = (gxpf_data*)global_data;
-    GNCBook *book = gdata->bookdata;
+    QofBook *book = gdata->bookdata;
 
     successful = TRUE;
 
@@ -492,7 +492,7 @@
 }
 
 static int
-billterm_get_count (GNCBook *book)
+billterm_get_count (QofBook *book)
 {
   int count = 0;
   qof_object_foreach (_GNC_MOD_NAME, book, do_count, (gpointer) &count);
@@ -513,7 +513,7 @@
 }
 
 static void
-billterm_write (FILE *out, GNCBook *book)
+billterm_write (FILE *out, QofBook *book)
 {
   qof_object_foreach (_GNC_MOD_NAME, book, xml_add_billterm, (gpointer) out);
 }
@@ -666,7 +666,7 @@
 }
 
 static void
-billterm_scrub (GNCBook *book)
+billterm_scrub (QofBook *book)
 {
   GList *list = NULL;
   GList *node;
Index: gnc-entry-xml-v2.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/file/gnc-entry-xml-v2.c,v
retrieving revision 1.11.4.4
retrieving revision 1.11.4.5
diff -Lsrc/business/business-core/file/gnc-entry-xml-v2.c -Lsrc/business/business-core/file/gnc-entry-xml-v2.c -u -r1.11.4.4 -r1.11.4.5
--- src/business/business-core/file/gnc-entry-xml-v2.c
+++ src/business/business-core/file/gnc-entry-xml-v2.c
@@ -221,7 +221,7 @@
 struct entry_pdata
 {
   GncEntry *entry;
-  GNCBook *book;
+  QofBook *book;
   Account *acc;
 };
 
@@ -708,7 +708,7 @@
 };
 
 static GncEntry*
-dom_tree_to_entry (xmlNodePtr node, GNCBook *book)
+dom_tree_to_entry (xmlNodePtr node, QofBook *book)
 {
     struct entry_pdata entry_pdata;
     gboolean successful;
@@ -749,7 +749,7 @@
     GncEntry *entry;
     xmlNodePtr tree = (xmlNodePtr)data_for_children;
     gxpf_data *gdata = (gxpf_data*)global_data;
-    GNCBook *book = gdata->bookdata;
+    QofBook *book = gdata->bookdata;
 
     successful = TRUE;
 
@@ -792,7 +792,7 @@
 }
 
 static int
-entry_get_count (GNCBook *book)
+entry_get_count (QofBook *book)
 {
   int count = 0;
   qof_object_foreach (_GNC_MOD_NAME, book, do_count, (gpointer) &count);
@@ -818,7 +818,7 @@
 }
 
 static void
-entry_write (FILE *out, GNCBook *book)
+entry_write (FILE *out, QofBook *book)
 {
   qof_object_foreach (_GNC_MOD_NAME, book, xml_add_entry, (gpointer) out);
 }
Index: gnc-employee-xml-v2.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/file/gnc-employee-xml-v2.c,v
retrieving revision 1.6.4.4
retrieving revision 1.6.4.5
diff -Lsrc/business/business-core/file/gnc-employee-xml-v2.c -Lsrc/business/business-core/file/gnc-employee-xml-v2.c -u -r1.6.4.4 -r1.6.4.5
--- src/business/business-core/file/gnc-employee-xml-v2.c
+++ src/business/business-core/file/gnc-employee-xml-v2.c
@@ -115,7 +115,7 @@
     xmlAddChild
       (ret,
        commodity_ref_to_dom_tree(employee_currency_string,
-				 gncEmployeeGetCurrency (employee)));
+				 (gnc_commodity*)gncEmployeeGetCurrency (employee)));
 
     ccard_acc = gncEmployeeGetCCard (employee);
     if (ccard_acc)
@@ -130,7 +130,7 @@
 struct employee_pdata
 {
   GncEmployee *employee;
-  GNCBook *book;
+  QofBook *book;
 };
 
 static gboolean
@@ -311,7 +311,7 @@
 };
 
 static GncEmployee*
-dom_tree_to_employee (xmlNodePtr node, GNCBook *book)
+dom_tree_to_employee (xmlNodePtr node, QofBook *book)
 {
     struct employee_pdata employee_pdata;
     gboolean successful;
@@ -344,7 +344,7 @@
     GncEmployee *employee;
     xmlNodePtr tree = (xmlNodePtr)data_for_children;
     gxpf_data *gdata = (gxpf_data*)global_data;
-    GNCBook *book = gdata->bookdata;
+    QofBook *book = gdata->bookdata;
 
     successful = TRUE;
 
@@ -401,7 +401,7 @@
 }
 
 static int
-employee_get_count (GNCBook *book)
+employee_get_count (QofBook *book)
 {
   int count = 0;
   qof_object_foreach (_GNC_MOD_NAME, book, do_count, (gpointer) &count);
@@ -425,7 +425,7 @@
 }
 
 static void
-employee_write (FILE *out, GNCBook *book)
+employee_write (FILE *out, QofBook *book)
 {
   qof_object_foreach (_GNC_MOD_NAME, book, xml_add_employee, (gpointer) out);
 }
Index: gnc-order-xml-v2.c
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/business/business-core/file/gnc-order-xml-v2.c,v
retrieving revision 1.4.4.4
retrieving revision 1.4.4.5
diff -Lsrc/business/business-core/file/gnc-order-xml-v2.c -Lsrc/business/business-core/file/gnc-order-xml-v2.c -u -r1.4.4.4 -r1.4.4.5
--- src/business/business-core/file/gnc-order-xml-v2.c
+++ src/business/business-core/file/gnc-order-xml-v2.c
@@ -46,8 +46,6 @@
 #include "gnc-owner-xml-v2.h"
 #include "gnc-engine-util.h"
 
-#include "gncObject.h"
-
 #define _GNC_MOD_NAME	GNC_ID_ORDER
 
 static short module = MOD_IO;
@@ -89,7 +87,7 @@
                                       gncOrderGetID (order)));
 
     xmlAddChild(ret, gnc_owner_to_dom_tree (order_owner_string,
-					    gncOrderGetOwner (order)));
+					    (GncOwner*)gncOrderGetOwner (order)));
 
     ts = gncOrderGetDateOpened (order);
     xmlAddChild(ret, timespec_to_dom_tree (order_opened_string, &ts));
@@ -112,7 +110,7 @@
 struct order_pdata
 {
   GncOrder *order;
-  GNCBook *book;
+  QofBook *book;
 };
 
 static inline gboolean
@@ -250,7 +248,7 @@
 };
 
 static GncOrder*
-dom_tree_to_order (xmlNodePtr node, GNCBook *book)
+dom_tree_to_order (xmlNodePtr node, QofBook *book)
 {
     struct order_pdata order_pdata;
     gboolean successful;
@@ -284,7 +282,7 @@
     GncOrder *order;
     xmlNodePtr tree = (xmlNodePtr)data_for_children;
     gxpf_data *gdata = (gxpf_data*)global_data;
-    GNCBook *book = gdata->bookdata;
+    QofBook *book = gdata->bookdata;
 
     successful = TRUE;
 
@@ -341,10 +339,10 @@
 }
 
 static int
-order_get_count (GNCBook *book)
+order_get_count (QofBook *book)
 {
   int count = 0;
-  gncObjectForeach (_GNC_MOD_NAME, book, do_count, (gpointer) &count);
+  qof_object_foreach (_GNC_MOD_NAME, book, do_count, (gpointer) &count);
   return count;
 }
 
@@ -365,9 +363,9 @@
 }
 
 static void
-order_write (FILE *out, GNCBook *book)
+order_write (FILE *out, QofBook *book)
 {
-  gncObjectForeach (_GNC_MOD_NAME, book, xml_add_order, (gpointer) out);
+  qof_object_foreach (_GNC_MOD_NAME, book, xml_add_order, (gpointer) out);
 }
 
 void
@@ -383,7 +381,7 @@
     NULL,			/* scrub */
   };
 
-  gncObjectRegisterBackend (_GNC_MOD_NAME,
+  qof_object_register_backend (_GNC_MOD_NAME,
 			    GNC_FILE_BACKEND,
 			    &be_data);
 }


More information about the gnucash-changes mailing list