From 6d28a0dd5d6747116f631d24bcc59d944a1b8b95 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 12 Feb 2017 16:45:46 +0200 Subject: py: Expose AtomicReq::add(std::map<>) method Only the AtomiqReq::add version that takes a single property is currently exposed through the Python bindings. Expose the add method that takes a list of properties as well. Signed-off-by: Laurent Pinchart Signed-off-by: Tomi Valkeinen --- py/pykms/pykmsbase.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'py/pykms/pykmsbase.cpp') diff --git a/py/pykms/pykmsbase.cpp b/py/pykms/pykmsbase.cpp index e45b996..0d5bb86 100644 --- a/py/pykms/pykmsbase.cpp +++ b/py/pykms/pykmsbase.cpp @@ -165,6 +165,7 @@ 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::*)(DrmPropObject*, const string&, uint64_t)) &AtomicReq::add) + .def("add", (void (AtomicReq::*)(DrmPropObject*, const map&)) &AtomicReq::add) .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