aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJyri Sarha2017-05-31 09:48:52 -0500
committerJyri Sarha2017-05-31 10:49:29 -0500
commit5f7d6c85666af7429e45d206e518d50099016d41 (patch)
tree8e0918c66530d4f5ab9bfadf8786de96831e431c
parent7adbef59143af49fb153812d1d0368522e70dcaf (diff)
downloadexternal-libkmsxx-5f7d6c85666af7429e45d206e518d50099016d41.tar.gz
external-libkmsxx-5f7d6c85666af7429e45d206e518d50099016d41.tar.xz
external-libkmsxx-5f7d6c85666af7429e45d206e518d50099016d41.zip
Add DrmPropObject.get_prop() and Property.enums to pykmsbase.cpp.
-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)
33 .def("get_prop_value", (uint64_t (DrmPropObject::*)(const string&) const)&DrmPropObject::get_prop_value) 33 .def("get_prop_value", (uint64_t (DrmPropObject::*)(const string&) const)&DrmPropObject::get_prop_value)
34 .def("set_prop_value",(int (DrmPropObject::*)(const string&, uint64_t)) &DrmPropObject::set_prop_value) 34 .def("set_prop_value",(int (DrmPropObject::*)(const string&, uint64_t)) &DrmPropObject::set_prop_value)
35 .def("get_prop_value_as_blob", &DrmPropObject::get_prop_value_as_blob) 35 .def("get_prop_value_as_blob", &DrmPropObject::get_prop_value_as_blob)
36 .def("get_prop", &DrmPropObject::get_prop)
36 ; 37 ;
37 38
38 py::class_<Connector, Connector*>(m, "Connector", py::base<DrmPropObject>()) 39 py::class_<Connector, Connector*>(m, "Connector", py::base<DrmPropObject>())
@@ -87,6 +88,7 @@ void init_pykmsbase(py::module &m)
87 88
88 py::class_<Property, Property*>(m, "Property", py::base<DrmObject>()) 89 py::class_<Property, Property*>(m, "Property", py::base<DrmObject>())
89 .def_property_readonly("name", &Property::name) 90 .def_property_readonly("name", &Property::name)
91 .def_property_readonly("enums", &Property::get_enums)
90 ; 92 ;
91 93
92 py::class_<Blob>(m, "Blob", py::base<DrmObject>()) 94 py::class_<Blob>(m, "Blob", py::base<DrmObject>())