summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2017-02-12 01:11:41 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2017-04-15 23:13:49 +0300
commit4eb65d9c999670bdff819340050568dd5327e49a (patch)
tree17e0ff19086e532a924f511f814e897d6e1ca4ea
parentcdbee74e8da7555f77d19d3c5064dab83db607ff (diff)
py: Expose Videomode::to_blob method
The Videomode::to_blob method is needed for atomic modesetting. Expose it through the Python bindings. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--py/pykms/pykmsbase.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/pykms/pykmsbase.cpp b/py/pykms/pykmsbase.cpp
index 970e533..454c0de 100644
--- a/py/pykms/pykmsbase.cpp
+++ b/py/pykms/pykmsbase.cpp
@@ -148,6 +148,7 @@ void init_pykmsbase(py::module &m)
py::class_<Videomode>(m, "Videomode")
.def(py::init<>())
+ .def("blob", &Videomode::to_blob)
.def_readwrite("name", &Videomode::name)