diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2019-01-11 12:29:40 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2019-01-14 09:27:28 +0200 |
commit | 27f1c296c4f5996227b28215400c787ea018862b (patch) | |
tree | 0d773ceb1e4a28237797584158ba08476edf8f47 /py/pykms | |
parent | 82b200e00c2c7dbeae108b21b2bba39305300d4a (diff) |
py: add open_modesetting_card
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'py/pykms')
-rw-r--r-- | py/pykms/pykmsbase.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/pykms/pykmsbase.cpp b/py/pykms/pykmsbase.cpp index 668e6e3..4b46d55 100644 --- a/py/pykms/pykmsbase.cpp +++ b/py/pykms/pykmsbase.cpp @@ -20,6 +20,8 @@ static vector<unique_ptr<T, py::nodelete>> convert_vector(const vector<T*>& sour void init_pykmsbase(py::module &m) { py::class_<Card>(m, "Card") + .def_static("open_modesetting_card", []() { return Card::open_modesetting_card(); }) + .def(py::init<>()) .def(py::init<const string&>()) .def(py::init<const string&, uint32_t>()) |