blob: 688374a6cf626da11c5fb45fcd22c9537d7fcb72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
#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
}
}
ledger::session_t python_session;
BOOST_PYTHON_MODULE(ledger)
{
ledger::set_session_context(&python_session);
}
|