nativeFindNextInPage = (void (*) (JNIEnv *, jobject, jboolean)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_CurrentPageImpl_nativeFindNextInPage");
nativeFindNextInPage = (void (*) (JNIEnv *, jobject, jint, jboolean)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_CurrentPageImpl_nativeFindNextInPage");
void locateBrowserControlStubFunctions(void * dll) {  nativeDoesImplement = (jboolean (*) (JNIEnv *, jobject, jstring)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_WrapperFactoryImpl_nativeDoesImplement");  if (!nativeDoesImplement) {    printf("got dlsym error %s\n", dlerror());  }  nativeAppInitialize = (void (*) (JNIEnv *, jobject, jstring)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_WrapperFactoryImpl_nativeAppInitialize");  if (!nativeAppInitialize) {    printf("got dlsym error %s\n", dlerror());  }  nativeTerminate = (void (*) (JNIEnv *, jobject)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_WrapperFactoryImpl_nativeTerminate");  if (!nativeTerminate) {    printf("got dlsym error %s\n", dlerror());  }  nativeCreateInitContext = (jint (*) (JNIEnv *, jobject, jint, jint, jint, jint, jint, jobject)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_WindowControlImpl_nativeCreateInitContext");  if (!nativeCreateInitContext) {    printf("got dlsym error %s\n", dlerror());  }  nativeMoveWindowTo = (void (*) (JNIEnv *, jobject, jint, jint, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_WindowControlImpl_nativeMoveWindowTo");  if (!nativeMoveWindowTo) {    printf("got dlsym error %s\n", dlerror());  }  nativeRemoveFocus = (void (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_WindowControlImpl_nativeRemoveFocus");  if (!nativeRemoveFocus) {    printf("got dlsym error %s\n", dlerror());  }  nativeRepaint = (void (*) (JNIEnv *, jobject, jint, jboolean)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_WindowControlImpl_nativeRepaint");  if (!nativeRepaint) {    printf("got dlsym error %s\n", dlerror());  }  nativeSetBounds = (void (*) (JNIEnv *, jobject, jint, jint, jint, jint, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_WindowControlImpl_nativeSetBounds");  if (!nativeSetBounds) {    printf("got dlsym error %s\n", dlerror());  }  nativeSetFocus = (void (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_WindowControlImpl_nativeSetFocus");  if (!nativeSetFocus) {    printf("got dlsym error %s\n", dlerror());  }  nativeSetVisible = (void (*) (JNIEnv *, jobject, jint, jboolean)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_WindowControlImpl_nativeSetVisible");  if (!nativeSetVisible) {    printf("got dlsym error %s\n", dlerror());  }  nativeGetChildAt = (jint (*) (JNIEnv *, jobject, jint, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_RDFTreeNode_nativeGetChildAt");  if (!nativeGetChildAt) {    printf("got dlsym error %s\n", dlerror());  }  nativeGetChildCount = (jint (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_RDFTreeNode_nativeGetChildCount");  if (!nativeGetChildCount) {    printf("got dlsym error %s\n", dlerror());  }  nativeGetIndex = (jint (*) (JNIEnv *, jobject, jint, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_RDFTreeNode_nativeGetIndex");  if (!nativeGetIndex) {    printf("got dlsym error %s\n", dlerror());  }  nativeInsertElementAt = (void (*) (JNIEnv *, jobject, jint, jint, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_RDFTreeNode_nativeInsertElementAt");  if (!nativeInsertElementAt) {    printf("got dlsym error %s\n", dlerror());  }  nativeIsContainer = (jboolean (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_RDFTreeNode_nativeIsContainer");  if (!nativeIsContainer) {    printf("got dlsym error %s\n", dlerror());  }  nativeIsLeaf = (jboolean (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_RDFTreeNode_nativeIsLeaf");  if (!nativeIsLeaf) {    printf("got dlsym error %s\n", dlerror());  }  nativeToString = (jstring (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_RDFTreeNode_nativeToString");  if (!nativeToString) {    printf("got dlsym error %s\n", dlerror());  }  nativeFinalize = (void (*) (JNIEnv *, jobject)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_RDFEnumeration_nativeFinalize");  if (!nativeFinalize) {    printf("got dlsym error %s\n", dlerror());  }  nativeHasMoreElements = (jboolean (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_RDFEnumeration_nativeHasMoreElements");  if (!nativeHasMoreElements) {    printf("got dlsym error %s\n", dlerror());  }  nativeNextElement = (jint (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_RDFEnumeration_nativeNextElement");  if (!nativeNextElement) {    printf("got dlsym error %s\n", dlerror());  }  nativeLoadURL = (void (*) (JNIEnv *, jobject, jint, jstring)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_NavigationImpl_nativeLoadURL");  if (!nativeLoadURL) {    printf("got dlsym error %s\n", dlerror());  }  nativeRefresh = (void (*) (JNIEnv *, jobject, jint, jlong)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_NavigationImpl_nativeRefresh");  if (!nativeRefresh) {    printf("got dlsym error %s\n", dlerror());  }  nativeStop = (void (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_NavigationImpl_nativeStop");  if (!nativeStop) {    printf("got dlsym error %s\n", dlerror());  }  nativeAddRef = (void (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_ISupportsPeer_nativeAddRef");  if (!nativeAddRef) {    printf("got dlsym error %s\n", dlerror());  }  nativeRelease = (void (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_ISupportsPeer_nativeRelease");  if (!nativeRelease) {    printf("got dlsym error %s\n", dlerror());  }  nativeBack = (void (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_HistoryImpl_nativeBack");  if (!nativeBack) {    printf("got dlsym error %s\n", dlerror());  }  nativeCanBack = (jboolean (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_HistoryImpl_nativeCanBack");  if (!nativeCanBack) {    printf("got dlsym error %s\n", dlerror());  }  nativeCanForward = (jboolean (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_HistoryImpl_nativeCanForward");  if (!nativeCanForward) {    printf("got dlsym error %s\n", dlerror());  }  nativeClearHistory = (void (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_HistoryImpl_nativeClearHistory");  if (!nativeClearHistory) {    printf("got dlsym error %s\n", dlerror());  }  nativeForward = (void (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_HistoryImpl_nativeForward");  if (!nativeForward) {    printf("got dlsym error %s\n", dlerror());  }  nativeGetBackList = (jobjectArray (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_HistoryImpl_nativeGetBackList");  if (!nativeGetBackList) {    printf("got dlsym error %s\n", dlerror());  }  nativeGetCurrentHistoryIndex = (jint (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_HistoryImpl_nativeGetCurrentHistoryIndex");  if (!nativeGetCurrentHistoryIndex) {    printf("got dlsym error %s\n", dlerror());  }  nativeGetForwardList = (jobjectArray (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_HistoryImpl_nativeGetForwardList");  if (!nativeGetForwardList) {    printf("got dlsym error %s\n", dlerror());  }  nativeGetHistory = (jobjectArray (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_HistoryImpl_nativeGetHistory");  if (!nativeGetHistory) {    printf("got dlsym error %s\n", dlerror());  }  nativeGetHistoryEntry = (jobject (*) (JNIEnv *, jobject, jint, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_HistoryImpl_nativeGetHistoryEntry");  if (!nativeGetHistoryEntry) {    printf("got dlsym error %s\n", dlerror());  }  nativeGetHistoryLength = (jint (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_HistoryImpl_nativeGetHistoryLength");  if (!nativeGetHistoryLength) {    printf("got dlsym error %s\n", dlerror());  }  nativeGetURLForIndex = (jstring (*) (JNIEnv *, jobject, jint, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_HistoryImpl_nativeGetURLForIndex");  if (!nativeGetURLForIndex) {    printf("got dlsym error %s\n", dlerror());  }  nativeSetCurrentHistoryIndex = (void (*) (JNIEnv *, jobject, jint, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_HistoryImpl_nativeSetCurrentHistoryIndex");  if (!nativeSetCurrentHistoryIndex) {    printf("got dlsym error %s\n", dlerror());  }  nativeCopyCurrentSelectionToSystemClipboard = (void (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_CurrentPageImpl_nativeCopyCurrentSelectionToSystemClipboard");  if (!nativeCopyCurrentSelectionToSystemClipboard) {    printf("got dlsym error %s\n", dlerror());  }  nativeFindInPage = (void (*) (JNIEnv *, jobject, jstring, jboolean, jboolean)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_CurrentPageImpl_nativeFindInPage");  if (!nativeFindInPage) {    printf("got dlsym error %s\n", dlerror());  }  nativeFindNextInPage = (void (*) (JNIEnv *, jobject, jboolean)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_CurrentPageImpl_nativeFindNextInPage");  if (!nativeFindNextInPage) {    printf("got dlsym error %s\n", dlerror());  }  nativeGetCurrentURL = (jstring (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_CurrentPageImpl_nativeGetCurrentURL");  if (!nativeGetCurrentURL) {    printf("got dlsym error %s\n", dlerror());  }  nativeGetSource = (jstring (*) (JNIEnv *, jobject)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_CurrentPageImpl_nativeGetSource");  if (!nativeGetSource) {    printf("got dlsym error %s\n", dlerror());  }  nativeGetSourceBytes = (jbyteArray (*) (JNIEnv *, jobject)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_CurrentPageImpl_nativeGetSourceBytes");  if (!nativeGetSourceBytes) {    printf("got dlsym error %s\n", dlerror());  }  nativeResetFind = (void (*) (JNIEnv *, jobject)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_CurrentPageImpl_nativeResetFind");  if (!nativeResetFind) {    printf("got dlsym error %s\n", dlerror());  }  nativeSelectAll = (void (*) (JNIEnv *, jobject)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_CurrentPageImpl_nativeSelectAll");  if (!nativeSelectAll) {    printf("got dlsym error %s\n", dlerror());  }  nativeGetBookmarks = (jint (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_BookmarksImpl_nativeGetBookmarks");  if (!nativeGetBookmarks) {    printf("got dlsym error %s\n", dlerror());  }  nativeNewRDFNode = (jint (*) (JNIEnv *, jobject, jstring, jboolean)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_BookmarksImpl_nativeNewRDFNode");  if (!nativeNewRDFNode) {    printf("got dlsym error %s\n", dlerror());  }  nativeAddListener = (void (*) (JNIEnv *, jobject, jint, jobject)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_NativeEventThread_nativeAddListener");  if (!nativeAddListener) {    printf("got dlsym error %s\n", dlerror());  }  nativeInitialize = (void (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_NativeEventThread_nativeInitialize");  if (!nativeInitialize) {    printf("got dlsym error %s\n", dlerror());  }  nativeProcessEvents = (void (*) (JNIEnv *, jobject, jint)) dlsym(dll, "Java_org_mozilla_webclient_wrapper_1native_NativeEventThread_nativeProcessEvents");  if (!nativeProcessEvents) {    printf("got dlsym error %s\n", dlerror());  }}