From 16d68158012fdcb83d2007680fa0abc7cfd34801 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Thu, 2 Jun 2016 17:45:09 +0300 Subject: py: fix AtomicReq bindings --- py/pykmsbase.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'py') diff --git a/py/pykmsbase.cpp b/py/pykmsbase.cpp index 83be9d2..f31986a 100644 --- a/py/pykmsbase.cpp +++ b/py/pykmsbase.cpp @@ -120,8 +120,8 @@ void init_pykmsbase(py::module &m) .def(py::init(), py::keep_alive<1, 2>()) // Keep Card alive until this is destructed .def("add", (void (AtomicReq::*)(DrmObject*, const string&, uint64_t)) &AtomicReq::add) - .def("test", &AtomicReq::test) - .def("commit", &AtomicReq::commit) - .def("commit_sync", &AtomicReq::commit_sync) + .def("test", &AtomicReq::test, py::arg("allow_modeset") = false) + .def("commit", &AtomicReq::commit, py::arg("data"), py::arg("allow_modeset") = false) + .def("commit_sync", &AtomicReq::commit_sync, py::arg("allow_modeset") = false) ; } -- cgit v1.2.3