Add DrmPropObject.get_prop() and Property.enums to pykmsbase.cpp.
authorJyri Sarha <jsarha@ti.com>
Wed, 31 May 2017 14:48:52 +0000 (17:48 +0300)
committerJyri Sarha <jsarha@ti.com>
Wed, 31 May 2017 15:49:29 +0000 (18:49 +0300)
py/pykms/pykmsbase.cpp

index 49b0a1980e3e6a21b54a936c8841b8a575070ae2..604e07c84da603946d0c30eca13bc36898a977e9 100644 (file)
@@ -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>())