r14630 - gnucash/branches/swigify/src/business - Add some swig interface definition files.

Chris Shoemaker chris at cvs.gnucash.org
Fri Aug 11 01:12:15 EDT 2006


Author: chris
Date: 2006-08-11 01:12:14 -0400 (Fri, 11 Aug 2006)
New Revision: 14630
Trac: http://svn.gnucash.org/trac/changeset/14630

Added:
   gnucash/branches/swigify/src/business/business-core/business-core.i
   gnucash/branches/swigify/src/business/business-gnome/business-gnome.i
   gnucash/branches/swigify/src/business/dialog-tax-table/dialog-tax-table.i
Log:
   Add some swig interface definition files.


Added: gnucash/branches/swigify/src/business/business-core/business-core.i
===================================================================
--- gnucash/branches/swigify/src/business/business-core/business-core.i	2006-08-11 05:08:19 UTC (rev 14629)
+++ gnucash/branches/swigify/src/business/business-core/business-core.i	2006-08-11 05:12:14 UTC (rev 14630)
@@ -0,0 +1,54 @@
+%module sw_business_core
+%{
+/* Includes the header in the wrapper code */
+#include <config.h>
+#include <gncAddress.h> 
+//#include <gncBillTerm.h>
+#include <gncCustomer.h>
+#include <gncEmployee.h>
+#include <gncEntry.h>
+#include <gncInvoice.h>
+#include <gncJob.h>
+#include <gncOrder.h>
+#include <gncOwner.h> 
+#include <gncTaxTable.h>
+#include <gncVendor.h>
+#include <gncBusGuile.h>
+#include "engine-helpers.h"
+%}
+
+// useless. :(
+//%rename(gnc_invoice_get_guid) gncInvoiceRetGUID;
+
+/* Convert from Guile --> C */
+%typemap(in) GUID {
+    $1 = gnc_scm2guid($input);
+}
+
+/* Convert from C --> Guile */
+%typemap(out) GUID {
+    $result = gnc_guid2scm($1);
+}
+
+/*
+%typemap(in) SWIGTYPE *, SWIGTYPE &, SWIGTYPE [] {
+  if (SCM_FALSE_P($input)) {
+      $1 = ($1_ltype)(SWIG_MustGetP
+  $1 = ($1_ltype)SWIG_MustGetPtr($input, $descriptor, $argnum, 0);
+}
+*/
+
+/* Parse the header file to generate wrappers */
+%include <gncAddress.h> 
+//%include <gncBillTerm.h>
+%include <gncCustomer.h>
+%include <gncEmployee.h>
+%include <gncEntry.h>
+%include <gncInvoice.h>
+%include <gncJob.h>
+%include <gncOrder.h>
+%include <gncOwner.h> 
+%include <gncTaxTable.h>
+%include <gncVendor.h>
+%include <gncBusGuile.h>
+

Added: gnucash/branches/swigify/src/business/business-gnome/business-gnome.i
===================================================================
--- gnucash/branches/swigify/src/business/business-gnome/business-gnome.i	2006-08-11 05:08:19 UTC (rev 14629)
+++ gnucash/branches/swigify/src/business/business-gnome/business-gnome.i	2006-08-11 05:12:14 UTC (rev 14630)
@@ -0,0 +1,27 @@
+%module sw_business_gnome
+%{
+/* Includes the header in the wrapper code */
+#include <config.h>
+#include <gtk/gtk.h>
+#include <business-urls.h>
+#include <dialog-billterms.h>
+#include <dialog-customer.h>
+#include <dialog-employee.h>
+#include <dialog-invoice.h>
+#include <dialog-job.h>
+#include <dialog-order.h>
+#include <dialog-payment.h>
+#include <dialog-vendor.h>
+
+%}
+
+/* Parse the header file to generate wrappers */
+%include <business-urls.h>
+%include <dialog-billterms.h>
+%include <dialog-customer.h>
+%include <dialog-employee.h>
+%include <dialog-invoice.h>
+%include <dialog-job.h>
+%include <dialog-order.h>
+%include <dialog-payment.h>
+%include <dialog-vendor.h>

Added: gnucash/branches/swigify/src/business/dialog-tax-table/dialog-tax-table.i
===================================================================
--- gnucash/branches/swigify/src/business/dialog-tax-table/dialog-tax-table.i	2006-08-11 05:08:19 UTC (rev 14629)
+++ gnucash/branches/swigify/src/business/dialog-tax-table/dialog-tax-table.i	2006-08-11 05:12:14 UTC (rev 14630)
@@ -0,0 +1,9 @@
+%module sw_dialog_tax_table
+%{
+/* Includes the header in the wrapper code */
+#include <config.h>
+#include <dialog-tax-table.h>
+%}
+
+/* Parse the header file to generate wrappers */
+%include <dialog-tax-table.h>



More information about the gnucash-changes mailing list