#include #include #include #include namespace py = pybind11; using namespace kms; using namespace std; void init_pykmsomap(py::module &m) { py::class_(m, "OmapCard") .def(py::init<>()) ; py::class_(m, "OmapFramebuffer") .def(py::init(), py::keep_alive<1, 2>()) // Keep Card alive until this is destructed .def(py::init(), py::keep_alive<1, 2>()) // Keep OmapCard alive until this is destructed ; }