aboutsummaryrefslogtreecommitdiffstats
path: root/py
diff options
context:
space:
mode:
authorJyri Sarha2017-03-06 07:16:31 -0600
committerTomi Valkeinen2017-03-16 04:45:45 -0500
commite37d31c82f809a83b372f239ae12b9b4e79bfa37 (patch)
tree09ae33656a211bd848b0f538844d551bb014df3b /py
parentdacaa0b4630695e93c1c53d65d423f5d69179a16 (diff)
downloadexternal-libkmsxx-e37d31c82f809a83b372f239ae12b9b4e79bfa37.tar.gz
external-libkmsxx-e37d31c82f809a83b372f239ae12b9b4e79bfa37.tar.xz
external-libkmsxx-e37d31c82f809a83b372f239ae12b9b4e79bfa37.zip
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)
165 .def_readwrite("type", &Videomode::type) 165 .def_readwrite("type", &Videomode::type)
166 166
167 .def("__repr__", [](const Videomode& vm) { return "<pykms.Videomode " + to_string(vm.hdisplay) + "x" + to_string(vm.vdisplay) + ">"; }) 167 .def("__repr__", [](const Videomode& vm) { return "<pykms.Videomode " + to_string(vm.hdisplay) + "x" + to_string(vm.vdisplay) + ">"; })
168
169 .def("to_blob", &Videomode::to_blob)
168 ; 170 ;
169 171
170 py::class_<AtomicReq>(m, "AtomicReq") 172 py::class_<AtomicReq>(m, "AtomicReq")