py: add DrmObject.idx
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 17 Mar 2017 07:29:49 +0000 (09:29 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 17 Mar 2017 07:29:49 +0000 (09:29 +0200)
py/pykms/pykmsbase.cpp

index 30536086d6bb4bffd6697cb5ee2237dafed8a1f7..4d4559d693a8126b436d324c305237a0222d1955 100644 (file)
@@ -23,6 +23,7 @@ void init_pykmsbase(py::module &m)
 
        py::class_<DrmObject, DrmObject*>(m, "DrmObject")
                        .def_property_readonly("id", &DrmObject::id)
+                       .def_property_readonly("idx", &DrmObject::idx)
                        .def_property_readonly("card", &DrmObject::card)
                        ;