summaryrefslogtreecommitdiff
path: root/src/pyledger.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-30 06:26:38 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:33 -0400
commitc8899addfd2deed3d84be2de234681db64987722 (patch)
tree07f9a5eb603ff4ec83fe18c83083575d2b7a439a /src/pyledger.cc
parentaa9cc125796711afcaa459898e95527fdae8e912 (diff)
downloadfork-ledger-c8899addfd2deed3d84be2de234681db64987722.tar.gz
fork-ledger-c8899addfd2deed3d84be2de234681db64987722.tar.bz2
fork-ledger-c8899addfd2deed3d84be2de234681db64987722.zip
Rearranged the sources a bit.
Diffstat (limited to 'src/pyledger.cc')
-rw-r--r--src/pyledger.cc53
1 files changed, 53 insertions, 0 deletions
diff --git a/src/pyledger.cc b/src/pyledger.cc
new file mode 100644
index 00000000..b7654e5d
--- /dev/null
+++ b/src/pyledger.cc
@@ -0,0 +1,53 @@
+#include <pyledger.h>
+
+using namespace boost::python;
+
+namespace ledger {
+
+void export_amount();
+#if 0
+void export_balance();
+void export_value();
+
+void export_journal();
+void export_parser();
+void export_option();
+void export_walk();
+void export_report();
+void export_format();
+void export_valexpr();
+
+void shutdown_option();
+#endif
+
+void initialize_for_python()
+{
+ export_amount();
+#if 0
+ export_balance();
+ export_value();
+
+ export_journal();
+ export_parser();
+ export_option();
+ export_walk();
+ export_format();
+ export_report();
+ export_valexpr();
+#endif
+}
+
+void shutdown_for_python()
+{
+#if 0
+ shutdown_option();
+#endif
+}
+
+}
+
+BOOST_PYTHON_MODULE(ledger)
+{
+ ledger::initialize();
+ ledger::initialize_for_python();
+}