void prop_jni_init(JNIEnv *env) { jni_courier = prop_courier_create_notify(jni_prop_wakeup, NULL); notify_mid= (*env)->GetStaticMethodID(env, STCore, "wakeupMainDispatcher", "()V"); assert(notify_mid != 0); }
prop_courier_t * glib_courier_create(GMainContext *ctx) { prop_courier_t *pc = prop_courier_create_notify(glib_courier_wakeup, ctx); GSource *s = g_source_new(&source_funcs, sizeof(glib_courier_t)); glib_courier_t *gc = (glib_courier_t *)s; gc->pc = pc; g_source_attach(s, ctx); return pc; }