summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorJyri Sarha <jsarha@ti.com>2017-03-06 15:16:31 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-03-16 11:45:45 +0200
commite37d31c82f809a83b372f239ae12b9b4e79bfa37 (patch)
tree09ae33656a211bd848b0f538844d551bb014df3b /py
parentdacaa0b4630695e93c1c53d65d423f5d69179a16 (diff)
Add Videomode::to_blob method to pykmsbase.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
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 d626019..ecb6edb 100644
--- a/py/pykms/pykmsbase.cpp
+++ b/py/pykms/pykmsbase.cpp
@@ -165,6 +165,8 @@ void init_pykmsbase(py::module &m)
.def_readwrite("type", &Videomode::type)
.def("__repr__", [](const Videomode& vm) { return "<pykms.Videomode " + to_string(vm.hdisplay) + "x" + to_string(vm.vdisplay) + ">"; })
+
+ .def("to_blob", &Videomode::to_blob)
;
py::class_<AtomicReq>(m, "AtomicReq")