diff options
Diffstat (limited to 'py/pykms')
-rw-r--r-- | py/pykms/pykmsutil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/pykms/pykmsutil.cpp b/py/pykms/pykmsutil.cpp index b3b7594..8421cc5 100644 --- a/py/pykms/pykmsutil.cpp +++ b/py/pykms/pykmsutil.cpp @@ -23,7 +23,7 @@ void init_pykmstest(py::module &m) py::class_<ResourceManager>(m, "ResourceManager") .def(py::init<Card&>()) .def("reset", &ResourceManager::reset) - .def("reserve_connector", &ResourceManager::reserve_connector, + .def("reserve_connector", (Connector* (ResourceManager::*)(const string& name))&ResourceManager::reserve_connector, py::arg("name") = string()) .def("reserve_crtc", &ResourceManager::reserve_crtc) .def("reserve_plane", &ResourceManager::reserve_plane, |