JNIEXPORT jstring JNICALL Java_com_phidgets_Phidget_getServerID(JNIEnv *env, jobject obj) { CPhidgetHandle h = (CPhidgetHandle)(uintptr_t)(*env)->GetLongField(env, obj, handle_fid); int error; const char *id; if ((error = CPhidget_getServerID(h, &id))) PH_THROW(error); return (*env)->NewStringUTF(env, id); }
int CCONV CPhidgetManager_getServerID(CPhidgetManagerHandle phidm, const char **serverID) { return CPhidget_getServerID((CPhidgetHandle)phidm, serverID); }
int CCONV CPhidgetDictionary_getServerID(CPhidgetDictionaryHandle dict, const char **serverID) { return CPhidget_getServerID((CPhidgetHandle)dict, serverID); }