]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/external-libkmsxx.git/commitdiff
py: fix AtomicReq bindings
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 2 Jun 2016 14:45:09 +0000 (17:45 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 2 Jun 2016 14:45:33 +0000 (17:45 +0300)
py/pykmsbase.cpp

index 83be9d2bcb351803e561219f684b18377830c401..f31986a7af6e4e5b40593f675bff18aae3d9d3fe 100644 (file)
@@ -120,8 +120,8 @@ void init_pykmsbase(py::module &m)
                        .def(py::init<Card&>(),
                             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)
                        ;
 }