libs/nodejs/ext/shared/jxcoretau.cpp in rho-tau-extensions-5.5.18 vs libs/nodejs/ext/shared/jxcoretau.cpp in rho-tau-extensions-6.0.0

- old
+ new

@@ -72,10 +72,24 @@ static void callServerStarted(JXValue *results, int argc) { our_is_http_server_started = true; } +#ifdef OS_ANDROID +extern "C" void *rho_nativethread_start(); +#endif + + +static void callRhoInitThread(JXValue *results, int argc) { + +#ifdef OS_ANDROID + LOG(INFO) + "callRhoInitThread()"; + rho_nativethread_start(); +#endif + +} + static void callJXcoreNative(JXValue *results, int argc) { // registered callJXcoreNative extension - JS code call to Native char *data = JX_GetString(results+0); @@ -314,11 +328,12 @@ JX_InitializeNewEngine(); JX_DefineExtension("callJXcoreNative", callJXcoreNative); //JX_DefineExtension("defineEventCB", defineEventCB); JX_DefineExtension("js_entry_point", call_js_entry_point); JX_DefineExtension("httpServerStarted", callServerStarted); - - + JX_DefineExtension("rhoInitThread", callRhoInitThread); + + //do_test_extension(); JX_DefineMainFile(itializationScript); JX_StartEngine();