diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2017-02-12 16:45:46 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-02-13 09:55:05 +0200 |
commit | 6d28a0dd5d6747116f631d24bcc59d944a1b8b95 (patch) | |
tree | 8e3a13d9e804d46bd1a91faf94d5046e112764bd /py/pykms | |
parent | 0b63670dc68561e1d3ffd83d9d024a6320ad91d5 (diff) |
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 <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'py/pykms')
-rw-r--r-- | py/pykms/pykmsbase.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<Card&>(), 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<string, uint64_t>&)) &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) |