summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorNoralf Trønnes <noralf@tronnes.org>2021-07-19 18:18:46 +0200
committerNoralf Trønnes <noralf@tronnes.org>2021-07-19 18:28:27 +0200
commita85e41d3ca9b4db2271198a757059a3df6a3b32e (patch)
treefa57eb967a56939739c50dc036f9688f0d7aa6ed /py
parent60586e12ad31a7241fd531eee0e41ef20625f7e3 (diff)
py: Card: Add .properties
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Diffstat (limited to 'py')
-rw-r--r--py/pykms/pykmsbase.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/pykms/pykmsbase.cpp b/py/pykms/pykmsbase.cpp
index b3ada1b..53ea8c7 100644
--- a/py/pykms/pykmsbase.cpp
+++ b/py/pykms/pykmsbase.cpp
@@ -46,6 +46,10 @@ void init_pykmsbase(py::module& m)
return convert_vector(self->get_planes());
})
+ .def_property_readonly("properties", [](Card* self) {
+ return convert_vector(self->get_properties());
+ })
+
.def_property_readonly("has_atomic", &Card::has_atomic)
.def("get_prop", (Property * (Card::*)(uint32_t) const) & Card::get_prop)