summaryrefslogtreecommitdiff
path: root/src/py_journal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/py_journal.cc')
-rw-r--r--src/py_journal.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/py_journal.cc b/src/py_journal.cc
index bc79101b..a9789840 100644
--- a/src/py_journal.cc
+++ b/src/py_journal.cc
@@ -171,6 +171,8 @@ namespace {
void export_journal()
{
class_< journal_t::fileinfo_t > ("FileInfo")
+ .def(init<path>())
+
.add_property("filename",
make_getter(&journal_t::fileinfo_t::filename),
make_setter(&journal_t::fileinfo_t::filename))
@@ -186,6 +188,9 @@ void export_journal()
;
class_< journal_t, boost::noncopyable > ("Journal")
+ .def(init<path>())
+ .def(init<string>())
+
.add_property("master", make_getter(&journal_t::master,
return_internal_reference<1>()))
.add_property("basket",