49 #define GNC_MOD_ROOT "gnc" 50 #define GNC_MOD_ENGINE "gnc.engine" 51 #define GNC_MOD_ACCOUNT "gnc.account" 52 #define GNC_MOD_SX "gnc.engine.sx" 53 #define GNC_MOD_QUERY "gnc.query" 54 #define GNC_MOD_SCRUB "gnc.scrub" 55 #define GNC_MOD_LOT "gnc.lots" 56 #define GNC_MOD_COMMODITY "gnc.commodity" 57 #define GNC_MOD_BACKEND "gnc.backend" 58 #define GNC_MOD_PRICE "gnc.pricedb" 59 #define GNC_MOD_BUSINESS "gnc.business" 60 #define GNC_MOD_IO "gnc.io" 61 #define GNC_MOD_BOOK "gnc.book-period" 62 #define GNC_MOD_GUI "gnc.gui" 63 #define GNC_MOD_GUI_SX "gnc.gui.sx" 64 #define GNC_MOD_GUILE "gnc.guile" 65 #define GNC_MOD_LEDGER "gnc.ledger" 66 #define GNC_MOD_REGISTER "gnc.register" 67 #define GNC_MOD_HTML "gnc.html" 68 #define GNC_MOD_PREFS "gnc.pref" 69 #define GNC_MOD_IMPORT "gnc.import" 70 #define GNC_MOD_ASSISTANT "gnc.assistant" 71 #define GNC_MOD_BUDGET "gnc.budget" 91 #define GNC_ID_NONE QOF_ID_NONE 92 #define GNC_ID_BOOK QOF_ID_BOOK 93 #define GNC_ID_SESSION QOF_ID_SESSION 94 #define GNC_ID_NULL QOF_ID_NULL 96 #define GNC_ID_ACCOUNT "Account" 97 #define GNC_ID_COMMODITY "Commodity" 98 #define GNC_ID_COMMODITY_NAMESPACE "CommodityNamespace" 99 #define GNC_ID_COMMODITY_TABLE "CommodityTable" 100 #define GNC_ID_LOT "Lot" 101 #define GNC_ID_PERIOD "Period" 102 #define GNC_ID_PRICE "Price" 103 #define GNC_ID_PRICEDB "PriceDB" 104 #define GNC_ID_SPLIT "Split" 105 #define GNC_ID_BUDGET "Budget" 106 #define GNC_ID_SCHEDXACTION "SchedXaction" 107 #define GNC_ID_SXES "SchedXactions" 108 #define GNC_ID_SXTG "SXTGroup" 109 #define GNC_ID_SXTT "SXTTrans" 110 #define GNC_ID_TRANS "Trans" 215 typedef void (*EngineCommitErrorCallback)( gpointer data,
QofBackendError errcode );
217 typedef gint (*SplitCallback)(Split *s, gpointer data);
218 typedef gint (*TransactionCallback)(Transaction *t,
void *data);
257 #define GNC_INVOICE_ID "gncInvoice" 258 #define GNC_INVOICE_GUID "invoice-guid" 259 #define GNC_OWNER_ID "gncOwner" 260 #define GNC_OWNER_TYPE "owner-type" 261 #define GNC_OWNER_GUID "owner-guid" 262 #define GNC_SX_ID "sched-xaction" GList BookGUIDList
GList of GUIDs of a QofBook.
GList TransList
GList of Transaction.
A gnc_commodity_table is a database of commodity info.
GList LotList
GList of GNCLots.
QofBackendError
The errors that can be reported to the GUI & other front-end users.
void gnc_engine_shutdown(void)
Called to shutdown the engine.
Identifies that something sold at one time was bought at another.
gboolean gnc_engine_is_initialized(void)
check the engine is fully initialized
void gnc_engine_add_commit_error_callback(EngineCommitErrorCallback cb, gpointer data)
Set a callback function to be called in case an engine commit fails.
A gnc_commodity_namespace is an collection of commodities.
void(* gnc_engine_init_hook_t)(int, char **)
Function type for init hooks in the engine.
void gnc_engine_init_static(int argc, char **argv)
This is the statically linked-in version of gnc_engine_init.
GList SplitList
GList of Split.
void gnc_log_default(void)
enable default log modules
Price of commodity on a given date.
void gnc_engine_init(int argc, char **argv)
PROTOTYPES.
void gnc_engine_add_init_hook(gnc_engine_init_hook_t hook)
Pass a function pointer to gnc_engine_add_init_hook and it will be called during the evaluation of gn...
GList AccountList
GList of Account.
GList AccountGUIDList
GList of GUIDs of a Account.
An article that is bought and sold.