summaryrefslogtreecommitdiff
path: root/parser.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 /parser.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 'parser.h')
-rw-r--r--parser.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/parser.h b/parser.h
index 515bf09b..d163e5e9 100644
--- a/parser.h
+++ b/parser.h
@@ -35,6 +35,24 @@ unsigned int parse_journal_file(const std::string& path,
account_t * master = NULL,
const std::string * original_file = NULL);
+unsigned int parse_ledger_data(journal_t * journal,
+ const std::string& data_file,
+ const std::string& init_file = "",
+ const std::string& price_db = "",
+ bool use_cache = false,
+ const std::string& cache_file = "",
+ bool * cache_dirty = NULL,
+ parser_t * cache_parser = NULL,
+ parser_t * xml_parser = NULL,
+ parser_t * stdin_parser = NULL,
+ const std::string& default_account = "");
+
+class config_t;
+unsigned int parse_ledger_data(journal_t * journal, config_t& config);
+
+void initialize_parser_support();
+void shutdown_parser_support();
+
} // namespace ledger
#endif // _PARSER_H