pykms: add swig vectors for basic libkms types
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 23 Oct 2015 20:12:27 +0000 (23:12 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 23 Oct 2015 20:12:27 +0000 (23:12 +0300)
py/pykms.i

index 6d8de675e00f62ed346ec40f3219c54d8ab3a504..11d51040cb01beccb1435f689b8479f342b9ce13 100644 (file)
@@ -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*>;