From 526c26ceec669e4b317f9dc7dc1270ca8a3b4478 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Wed, 25 Jan 2017 13:19:44 +0200 Subject: Add refresh() to connector, crtc and encoder Signed-off-by: Tomi Valkeinen --- py/pykms/pykmsbase.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'py') 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 ""; }) + .def("refresh", &Connector::refresh) ; py::class_(m, "Crtc", py::base()) @@ -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 ""; }) + .def("refresh", &Crtc::refresh) ; py::class_(m, "Encoder", py::base()) + .def("refresh", &Encoder::refresh) ; py::class_(m, "Plane", py::base()) -- cgit v1.2.3