%module (directors="1") pjsua %{ #include "pjsua_app_callback.h" #include "../../pjsua_app.h" #include %} /* Turn on director wrapping PjsuaAppCallback */ %feature("director") PjsuaAppCallback; /* Convert Surface object to ANativeWindow for setIncomingVideoRenderer() */ %typemap(in) jobject surface { $1 = $input? (jobject)ANativeWindow_fromSurface(jenv, $input) : NULL; } %include "pjsua_app_callback.h"