diff options
| author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2017-02-12 01:12:08 +0200 | 
|---|---|---|
| committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2017-02-12 16:43:53 +0200 | 
| commit | f7198ea11d043768c27b9b0376c8810365aabe10 (patch) | |
| tree | 8e3a13d9e804d46bd1a91faf94d5046e112764bd | |
| parent | b884fb7c3e836dd92921d3146ee88782e01b52f9 (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>
| -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) | 
