summaryrefslogtreecommitdiff
path: root/option.h
diff options
context:
space:
mode:
Diffstat (limited to 'option.h')
-rw-r--r--option.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/option.h b/option.h
index 75990d1b..da1a6395 100644
--- a/option.h
+++ b/option.h
@@ -30,4 +30,24 @@ void process_arguments(option_t * options, int argc, char ** argv,
void process_environment(option_t * options, char ** envp,
const std::string& tag);
+namespace ledger {
+
+class config_t;
+class report_t;
+
+extern config_t * config;
+extern report_t * report;
+
+#define CONFIG_OPTIONS_SIZE 94
+extern option_t config_options[CONFIG_OPTIONS_SIZE];
+
+void option_help(std::ostream& out);
+
+#define OPT_BEGIN(tag, chars) \
+ void opt_ ## tag(const char * optarg)
+
+#define OPT_END(tag)
+
+} // namespace ledger
+
#endif // _OPTION_H