forked from ppdewolf/tauhitas
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhitasctrl.swg
31 lines (26 loc) · 999 Bytes
/
hitasctrl.swg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// %module tauhitas
// directors="1" needed for being able to use the director feature
%module(directors="1") tauhitas
%include <windows.i>
%include <typemaps.i>
%include <arrays_java.i>
%include <various.i>
%include <std_string.i>
// Defines not covered by the above ".i" files of SWIG
#define FAR __far
#define STDMETHOD(method) HRESULT STDMETHODCALLTYPE method
#define STDMETHODIMP HRESULT STDMETHODCALLTYPE
#define STDMETHODCALLTYPE __stdcall
// Include this block in the generated C++ wrapper code (hitasctrl_wrap.cpp)
%{
#include "IProgressListener.h"
#include "ICallback.h"
#include "hitasctrl.h"
%}
%feature("director") IProgressListener;
%feature("director") ICallback;
// Turn on director wrapping IProgressListener. This makes it possible to extend this class in Java
// Generate wrapper code for the classes in these header files, so they can be called from Java
%include "IProgressListener.h"
%include "ICallback.h"
%include "hitasctrl.h"