+extern "C" void Java_org_linphone_core_LinphoneCoreImpl_removeFriend(JNIEnv* env
+ ,jobject thiz
+ ,jlong ptr
+ ,jlong lf) {
+ linphone_core_remove_friend((LinphoneCore*)ptr, (LinphoneFriend*)lf);
+}
+extern "C" jlong Java_org_linphone_core_LinphoneCoreImpl_getFriendByAddress(JNIEnv* env
+ ,jobject thiz
+ ,jlong ptr
+ ,jstring jaddress) {
+ const char* address = env->GetStringUTFChars(jaddress, NULL);
+ LinphoneFriend *lf = linphone_core_get_friend_by_address((LinphoneCore*)ptr, address);
+ env->ReleaseStringUTFChars(jaddress, address);
+ return (jlong) lf;
+}