kmscube: fix resource leaks & freeing
[android/external-libkmsxx.git] / py / pykms.i
1 %module(directors="1") pykms
2 %{
3 #include "kms++.h"
5 #include "kmstest.h"
7 using namespace kms;
8 %}
10 %include "std_string.i"
11 %include "stdint.i"
12 %include "std_vector.i"
13 %include "std_map.i"
15 %feature("director") PageFlipHandlerBase;
17 %include "decls.h"
18 %include "drmobject.h"
19 %include "atomicreq.h"
20 %include "crtc.h"
21 %include "card.h"
22 %include "property.h"
23 %include "framebuffer.h"
24 %include "dumbframebuffer.h"
25 %include "plane.h"
26 %include "connector.h"
27 %include "encoder.h"
28 %include "pagefliphandler.h"
29 %include "videomode.h"
31 %include "color.h"
32 %include "kmstest.h"
34 %template(ConnectorVector) std::vector<kms::Connector*>;
35 %template(CrtcVector) std::vector<kms::Crtc*>;
36 %template(EncoderVector) std::vector<kms::Encoder*>;
37 %template(PlaneVector) std::vector<kms::Plane*>;
38 /* for some reason uint64_t doesn't compile on 64 bit pc */
39 /* %template(map_u32_u64) std::map<uint32_t, uint64_t>; */
40 %template(map_u32_u64) std::map<uint32_t, unsigned long long>;