Skip to content

Commit a23c980

Browse files
committed
[python] Register new module name
1 parent fd96b6f commit a23c980

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/PythonInterface.cxx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,17 @@ class BarChannel
9292

9393
// Note that the name given here to BOOST_PYTHON_MODULE must be the actual name of the shared object file this file is
9494
// compiled into
95+
BOOST_PYTHON_MODULE(libO2ReadoutCard)
96+
{
97+
using namespace boost::python;
98+
99+
class_<BarChannel>("BarChannel", init<std::string, int>(sInitDocString))
100+
.def("register_read", &BarChannel::read, sRegisterReadDocString)
101+
.def("register_write", &BarChannel::write, sRegisterWriteDocString)
102+
.def("register_modify", &BarChannel::modify, sRegisterModifyDocString);
103+
}
104+
105+
// Keep libReadoutCard for backward compatility for now
95106
BOOST_PYTHON_MODULE(libReadoutCard)
96107
{
97108
using namespace boost::python;

0 commit comments

Comments
 (0)