I have a C++ api I can't change which:
- exposes object (easy)
- exposes interfaces that have to be derived by caller (classical trigger-listener design pattern).
I managed to wrap this API to python using SWIG and the director feature, which allows cross-language derivation. However, when I tried to compile it using ndk, to expose it in Dalvik's VM in Android, I discovered that directors in SWIG are supported through RTTI, and that Android does not support RTTI.
Any idea on how I could workaround this limitation? Basically, I have an easy way of exposing my native objects in Java using JNI and SWIG, but I need to be able to trigger my Java code from native code.