summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
Diffstat (limited to 'py')
-rw-r--r--py/pykms/pykmsbase.cpp2
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>())