summaryrefslogtreecommitdiff
path: root/ledger.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-11-09 07:11:22 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:21 -0400
commitf691735c6ce89a19356769084449d3f5691ab030 (patch)
treedf7a5de60353d3558b00d21ee83cf01e8da56331 /ledger.h
parent3a689c568a715e7c6604825eab537d66333ce291 (diff)
downloadfork-ledger-f691735c6ce89a19356769084449d3f5691ab030.tar.gz
fork-ledger-f691735c6ce89a19356769084449d3f5691ab030.tar.bz2
fork-ledger-f691735c6ce89a19356769084449d3f5691ab030.zip
Restructed the code that it can build and be used as a shared library.
The command-line version is still statically bound in the build process by default (for the sake of speed).
Diffstat (limited to 'ledger.h')
-rw-r--r--ledger.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/ledger.h b/ledger.h
index 0046600a..dca501ee 100644
--- a/ledger.h
+++ b/ledger.h
@@ -26,7 +26,6 @@
#include <reconcile.h>
#include <error.h>
#include <option.h>
-#include <config.h>
#include <parser.h>
#include <textual.h>
@@ -36,4 +35,15 @@
#include <qif.h>
#include <ofx.h>
+namespace ledger {
+ extern parser_t * binary_parser_ptr;
+ extern parser_t * xml_parser_ptr;
+ extern parser_t * gnucash_parser_ptr;
+ extern parser_t * ofx_parser_ptr;
+ extern parser_t * qif_parser_ptr;
+ extern parser_t * textual_parser_ptr;
+}
+
+#include <config.h>
+
#endif // _LEDGER_H