src/solaris/native/sun/awt/awt_UNIXToolkit.c

Print this page




 243  * Class:     sun_awt_SunToolkit
 244  * Method:    closeSplashScreen
 245  * Signature: ()V
 246  */
 247 JNIEXPORT void JNICALL
 248 Java_sun_awt_SunToolkit_closeSplashScreen(JNIEnv *env, jclass cls)
 249 {
 250     typedef void (*SplashClose_t)();
 251     SplashClose_t splashClose;
 252     void* hSplashLib = dlopen(0, RTLD_LAZY);
 253     if (!hSplashLib) {
 254         return;
 255     }
 256     splashClose = (SplashClose_t)dlsym(hSplashLib,
 257         "SplashClose");
 258     if (splashClose) {
 259         splashClose();
 260     }
 261     dlclose(hSplashLib);
 262 }























 243  * Class:     sun_awt_SunToolkit
 244  * Method:    closeSplashScreen
 245  * Signature: ()V
 246  */
 247 JNIEXPORT void JNICALL
 248 Java_sun_awt_SunToolkit_closeSplashScreen(JNIEnv *env, jclass cls)
 249 {
 250     typedef void (*SplashClose_t)();
 251     SplashClose_t splashClose;
 252     void* hSplashLib = dlopen(0, RTLD_LAZY);
 253     if (!hSplashLib) {
 254         return;
 255     }
 256     splashClose = (SplashClose_t)dlsym(hSplashLib,
 257         "SplashClose");
 258     if (splashClose) {
 259         splashClose();
 260     }
 261     dlclose(hSplashLib);
 262 }
 263 
 264 /*
 265  * Class:     sun_awt_UNIXToolkit
 266  * Method:    gtkCheckVersionImpl
 267  * Signature: (III)Ljava/lang/String;
 268  */
 269 JNIEXPORT jboolean JNICALL
 270 Java_sun_awt_UNIXToolkit_gtkCheckVersionImpl
 271   (JNIEnv *env, jobject this, jint major, jint minor, jint micro)
 272 {
 273         char *ret;
 274 
 275         ret = fp_gtk_check_version(major, minor, micro);
 276         if (ret == NULL)
 277         {
 278                 return TRUE;
 279         }
 280 
 281         free(ret);
 282         return FALSE;
 283 }