[engine/*.h] add extern "C" {} wrappers

This commit is contained in:
Christopher Lam 2024-03-17 16:31:21 +08:00
parent b33b864c2f
commit 9a85eb4a2a
6 changed files with 48 additions and 0 deletions

View File

@ -30,6 +30,14 @@
#include "gncAddress.h"
#ifdef __cplusplus
extern "C" {
#endif
gboolean gncAddressRegister (void);
#ifdef __cplusplus
}
#endif
#endif /* GNC_ADDRESSP_H_ */

View File

@ -31,6 +31,10 @@
#include "gncCustomer.h"
#ifdef __cplusplus
extern "C" {
#endif
gboolean gncCustomerRegister (void);
gchar *gncCustomerNextID (QofBook *book);
const gnc_numeric *gncCustomerGetCachedBalance (GncCustomer *cust);
@ -38,4 +42,8 @@ void gncCustomerSetCachedBalance (GncCustomer *cust, const gnc_numeric *new_bal)
#define gncCustomerSetGUID(E,G) qof_instance_set_guid(QOF_INSTANCE(E),(G))
#ifdef __cplusplus
}
#endif
#endif /* GNC_CUSTOMERP_H_ */

View File

@ -31,6 +31,10 @@
#include "gncEmployee.h"
#ifdef __cplusplus
extern "C" {
#endif
gboolean gncEmployeeRegister (void);
gchar *gncEmployeeNextID (QofBook *book);
const gnc_numeric *gncEmployeeGetCachedBalance (GncEmployee *vend);
@ -38,4 +42,8 @@ void gncEmployeeSetCachedBalance (GncEmployee *vend, const gnc_numeric *new_bal)
#define gncEmployeeSetGUID(E,G) qof_instance_set_guid(QOF_INSTANCE(E),(G))
#ifdef __cplusplus
}
#endif
#endif /* GNC_EMPLOYEEP_H_ */

View File

@ -31,9 +31,17 @@
#include "gncJob.h"
#ifdef __cplusplus
extern "C" {
#endif
gboolean gncJobRegister (void);
gchar *gncJobNextID (QofBook *book);
#define gncJobSetGUID(E,G) qof_instance_set_guid(QOF_INSTANCE(E),(G))
#ifdef __cplusplus
}
#endif
#endif /* GNC_JOBP_H_ */

View File

@ -31,9 +31,17 @@
#include "gncOrder.h"
#ifdef __cplusplus
extern "C" {
#endif
gboolean gncOrderRegister (void);
gchar *gncOrderNextID (QofBook *book);
#define gncOrderSetGUID(O,G) qof_instance_set_guid(QOF_INSTANCE(O),(G))
#ifdef __cplusplus
}
#endif
#endif /* GNC_ORDERP_H_ */

View File

@ -30,6 +30,10 @@
#include "gncVendor.h"
#ifdef __cplusplus
extern "C" {
#endif
gboolean gncVendorRegister (void);
gchar *gncVendorNextID (QofBook *book);
const gnc_numeric *gncVendorGetCachedBalance (GncVendor *vend);
@ -38,4 +42,8 @@ void gncVendorSetCachedBalance (GncVendor *vend, const gnc_numeric *new_bal);
#define gncVendorSetGUID(V,G) qof_instance_set_guid(QOF_INSTANCE(V),(G))
#ifdef __cplusplus
}
#endif
#endif /* GNC_VENDORP_H_ */