blob: d54bfc3c0ad2d10ca55e8e4e5906f0c1534aab4f (
plain)
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
|
%module (directors="1") pjsua
%{
#include "pjsua_app_callback.h"
#include "../../pjsua_app.h"
#include <android/native_window_jni.h>
#ifdef __cplusplus
extern "C" {
#endif
int pjsuaStart();
void pjsuaDestroy();
int pjsuaRestart();
void setCallbackObject(PjsuaAppCallback* callback);
#ifdef __cplusplus
}
#endif
%}
/* Turn on director wrapping PjsuaAppCallback */
%feature("director") PjsuaAppCallback;
/* Convert Surface object to ANativeWindow for setIncomingVideoRenderer() */
%typemap(in) jobject surface {
$1 = (jobject)ANativeWindow_fromSurface(jenv, $input);
}
%include "pjsua_app_callback.h"
|