From 67bc5e8a9632028f9d5f44da9eafa38f0b59dfef Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Fri, 2 Oct 2020 14:46:33 +0300 Subject: Small Property improvements Signed-off-by: Tomi Valkeinen --- py/pykms/pykmsbase.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'py/pykms') diff --git a/py/pykms/pykmsbase.cpp b/py/pykms/pykmsbase.cpp index 0448e02..bee277c 100644 --- a/py/pykms/pykmsbase.cpp +++ b/py/pykms/pykmsbase.cpp @@ -65,6 +65,7 @@ void init_pykmsbase(py::module &m) .def("set_prop_value",(int (DrmPropObject::*)(const string&, uint64_t)) &DrmPropObject::set_prop_value) .def("get_prop_value_as_blob", &DrmPropObject::get_prop_value_as_blob) .def("get_prop", &DrmPropObject::get_prop) + .def("has_prop", &DrmPropObject::has_prop) ; py::class_>(m, "Connector") @@ -274,6 +275,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*, Property*, uint64_t)) &AtomicReq::add) .def("add", (void (AtomicReq::*)(DrmPropObject*, const map&)) &AtomicReq::add) .def("test", &AtomicReq::test, py::arg("allow_modeset") = false) .def("commit", -- cgit v1.2.3