/* * Implements * org.gnome.glib.Plumbing.initializeNative(Object lock) * called from * org.gnome.glib.Plumbing.static() */ JNIEXPORT void JNICALL Java_org_gnome_glib_Plumbing_initializeNative ( JNIEnv *env, jclass cls, jobject _lock ) { /* * The call to g_threads_init() needs to be be the very first thing * that happens in our use of GLib. We do that in the following call */ bindings_java_threads_init(env, _lock); bindings_java_logging_init(); }
/* * Implements * org.gnome.glib.Plumbing.initializeNative(Object lock) * called from * org.gnome.glib.Plumbing.static() */ JNIEXPORT void JNICALL Java_oscats_glib_Plumbing_initializeNative ( JNIEnv *env, jclass cls, jobject _lock ) { /* * The call to g_threads_init() needs to be be the very first thing * that happens in our use of GLib. We do that in the following call. * Moreover, g_type_init() must be called before using any gobjects. */ bindings_java_threads_init(env, _lock); bindings_java_logging_init(); g_type_init(); }