summaryrefslogtreecommitdiffstats
path: root/src/bindings/ingen.i
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings/ingen.i')
-rw-r--r--src/bindings/ingen.i39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/bindings/ingen.i b/src/bindings/ingen.i
new file mode 100644
index 00000000..e9a13dc3
--- /dev/null
+++ b/src/bindings/ingen.i
@@ -0,0 +1,39 @@
+%include "stl.i"
+%module ingen
+%{
+#include "../common/interface/ClientInterface.hpp"
+#include "../common/interface/EngineInterface.hpp"
+#include "../libs/module/World.hpp"
+#include "../libs/module/module.h"
+
+namespace Ingen { namespace Shared {
+ class World;
+} }
+typedef Ingen::Shared::World World;
+/*struct World {
+ World() { me = Ingen::Shared::get_world(); }
+ Ingen::Shared::World* me;
+};*/
+%}
+
+/*%ignore Ingen::Shared::EngineInterface;*/
+
+%include "../common/interface/ClientInterface.hpp"
+%include "../common/interface/EngineInterface.hpp"
+/*%include "../libs/module/World.hpp"
+%include "../libs/module/module.h"*/
+%include "../libs/module/module.h"
+
+using namespace Ingen::Shared;
+namespace Ingen { namespace Shared {
+ class World;
+} }
+%typedef Ingen::Shared::World World;
+/*struct World {};*/
+%extend World {
+ World() { return Ingen::Shared::get_world(); }
+ /*SLV2World slv2() { return $self->me->slv2_world; }*/
+
+/*SharedPtr<Ingen::Shared::EngineInterface> engine() { return $self->me->engine; }*/
+};
+