summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/py_journal.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/py_journal.cc b/src/py_journal.cc
index 3b78e556..17c42c21 100644
--- a/src/py_journal.cc
+++ b/src/py_journal.cc
@@ -166,6 +166,11 @@ namespace {
journal.xact_finalize_hooks.run_hooks(xact, post);
}
+ std::size_t py_read(journal_t& journal, const string& pathname)
+ {
+ return journal.read(pathname);
+ }
+
} // unnamed namespace
void export_journal()
@@ -236,6 +241,8 @@ void export_journal()
.def("sources", range<return_internal_reference<> >
(&journal_t::sources_begin, &journal_t::sources_end))
+ .def("read", py_read)
+
.def("clear_xdata", &journal_t::clear_xdata)
.def("valid", &journal_t::valid)