| 1 | // libtwidget.so: the widget engine on its own. The isolated engine process (WidgetEngineService) loads nothing else; |
| 2 | // the client never loads it, but for the private builds' in-process engine of the debug runners (its filters and |
| 3 | // gesture arbiter are in the client library, twidget-client.cpp). |
| 4 | #include "twidget-bridge.h" |
| 6 | extern "C" JNIEXPORT jint JNI_OnLoad(JavaVM *vm, void *) { |
| 7 | JNIEnv *env = nullptr; |
| 8 | if (vm->GetEnv(reinterpret_cast<void **>(&env), JNI_VERSION_1_6) != JNI_OK) |
| 9 | return -1; |
| 10 | return registerTwidgetNatives(env) ? JNI_VERSION_1_6 : -1; |
| 11 | } |
| 12 |