summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2015-10-23 23:12:27 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2015-10-23 23:12:27 +0300
commit6171cedfddfc864898c3f32a70b370c39e36faa1 (patch)
tree22c257b4e5a3816bac436f38d4abf68ba4542798
parent894d6154bf75f1cf1333d27c7406f4e5e82372a1 (diff)
pykms: add swig vectors for basic libkms types
-rw-r--r--py/pykms.i6
1 files changed, 6 insertions, 0 deletions
diff --git a/py/pykms.i b/py/pykms.i
index 6d8de67..11d5104 100644
--- a/py/pykms.i
+++ b/py/pykms.i
@@ -9,6 +9,7 @@ using namespace kms;
%include "std_string.i"
%include "stdint.i"
+%include "std_vector.i"
%feature("director") PageFlipHandlerBase;
@@ -26,3 +27,8 @@ using namespace kms;
%include "pagefliphandler.h"
%include "kmstest.h"
+
+%template(ConnectorVector) std::vector<kms::Connector*>;
+%template(CrtcVector) std::vector<kms::Crtc*>;
+%template(EncoderVector) std::vector<kms::Encoder*>;
+%template(PlaneVector) std::vector<kms::Plane*>;