diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-01-25 13:19:44 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-01-25 13:20:20 +0200 |
commit | 526c26ceec669e4b317f9dc7dc1270ca8a3b4478 (patch) | |
tree | e2ab0497eaf649792f1e1bc2f7d482e6719f251d /py/pykms | |
parent | 8e93fa0bb51744cb3c33ce7308c204caa68e40f8 (diff) |
Add refresh() to connector, crtc and encoder
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'py/pykms')
-rw-r--r-- | py/pykms/pykmsbase.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/py/pykms/pykmsbase.cpp b/py/pykms/pykmsbase.cpp index 13c4dd1..2f56825 100644 --- a/py/pykms/pykmsbase.cpp +++ b/py/pykms/pykmsbase.cpp @@ -44,6 +44,7 @@ void init_pykmsbase(py::module &m) .def("get_mode", (Videomode (Connector::*)(const string& mode) const)&Connector::get_mode) .def("get_mode", (Videomode (Connector::*)(unsigned xres, unsigned yres, float refresh, bool ilace) const)&Connector::get_mode) .def("__repr__", [](const Connector& o) { return "<pykms.Connector " + to_string(o.id()) + ">"; }) + .def("refresh", &Connector::refresh) ; py::class_<Crtc, Crtc*>(m, "Crtc", py::base<DrmPropObject>()) @@ -55,9 +56,11 @@ void init_pykmsbase(py::module &m) .def_property_readonly("mode", &Crtc::mode) .def_property_readonly("mode_valid", &Crtc::mode_valid) .def("__repr__", [](const Crtc& o) { return "<pykms.Crtc " + to_string(o.id()) + ">"; }) + .def("refresh", &Crtc::refresh) ; py::class_<Encoder, Encoder*>(m, "Encoder", py::base<DrmPropObject>()) + .def("refresh", &Encoder::refresh) ; py::class_<Plane, Plane*>(m, "Plane", py::base<DrmPropObject>()) |