diff options
author | Jyri Sarha <jsarha@ti.com> | 2017-05-31 17:48:52 +0300 |
---|---|---|
committer | Jyri Sarha <jsarha@ti.com> | 2017-05-31 18:49:29 +0300 |
commit | 5f7d6c85666af7429e45d206e518d50099016d41 (patch) | |
tree | 8e0918c66530d4f5ab9bfadf8786de96831e431c /py/pykms | |
parent | 7adbef59143af49fb153812d1d0368522e70dcaf (diff) |
Add DrmPropObject.get_prop() and Property.enums to pykmsbase.cpp.
Diffstat (limited to 'py/pykms')
-rw-r--r-- | py/pykms/pykmsbase.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/pykms/pykmsbase.cpp b/py/pykms/pykmsbase.cpp index 49b0a19..604e07c 100644 --- a/py/pykms/pykmsbase.cpp +++ b/py/pykms/pykmsbase.cpp @@ -33,6 +33,7 @@ void init_pykmsbase(py::module &m) .def("get_prop_value", (uint64_t (DrmPropObject::*)(const string&) const)&DrmPropObject::get_prop_value) .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) ; py::class_<Connector, Connector*>(m, "Connector", py::base<DrmPropObject>()) @@ -87,6 +88,7 @@ void init_pykmsbase(py::module &m) py::class_<Property, Property*>(m, "Property", py::base<DrmObject>()) .def_property_readonly("name", &Property::name) + .def_property_readonly("enums", &Property::get_enums) ; py::class_<Blob>(m, "Blob", py::base<DrmObject>()) |