summaryrefslogtreecommitdiff
path: root/py
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-02-12 17:01:38 +0200
commit3037dba80d888a0322d8ebf4e9728800fc314275 (patch)
treeba2995cd531f81214a44ba900f2f14bcd568d4be /py
parente96a0e9b7aecc5c3b3cc3fbf705a0942bf105c9e (diff)
[HACK] py: Expose Videomode::to_blob method
Returning the blob through an std::unique_ptr<> causes issues with pybind11. Return the blob pointer directly as a workaround while the root cause is investigated and fixed. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'py')
-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 090c212..1492e53 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)