diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2019-01-09 17:23:32 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2019-01-09 17:23:54 +0200 |
commit | 9e00ebdce5866b8f5b8562a9281fafe7b1f5d23f (patch) | |
tree | 55db990ace080ce38e37f65c33133a29908a69a0 /py/pykms | |
parent | 464d6e39b04ed4077ea71b14c52f3793181566c1 (diff) |
pykms: expose Card(device) constructor
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'py/pykms')
-rw-r--r-- | py/pykms/pykmsbase.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/pykms/pykmsbase.cpp b/py/pykms/pykmsbase.cpp index 2c97bd7..c86e76c 100644 --- a/py/pykms/pykmsbase.cpp +++ b/py/pykms/pykmsbase.cpp @@ -21,6 +21,7 @@ void init_pykmsbase(py::module &m) { py::class_<Card>(m, "Card") .def(py::init<>()) + .def(py::init<const string&>()) .def_property_readonly("fd", &Card::fd) .def_property_readonly("get_first_connected_connector", &Card::get_first_connected_connector) |