]> sjero.net Git - linphone/commitdiff
Add linphone_core_defer_call_update, linphone_call_params_copy, linphone_core_accept_...
authorYann Diorcet <yann.diorcet@belledonne-communications.com>
Mon, 27 Feb 2012 15:54:37 +0000 (16:54 +0100)
committerYann Diorcet <yann.diorcet@belledonne-communications.com>
Mon, 27 Feb 2012 15:54:37 +0000 (16:54 +0100)
coreapi/linphonecore_jni.cc

index e61f0b8fa40fda776d213a2fe4870cbafa49572d..7548a347f598d1db4c524323374bf378b0b18f19 100644 (file)
@@ -553,6 +553,30 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_acceptCall(        JNIEnv*  env
        linphone_core_accept_call((LinphoneCore*)lc,(LinphoneCall*)call);
 }
 
+extern "C" void Java_org_linphone_core_LinphoneCoreImpl_acceptCallWithParams(JNIEnv *env,
+               jobject thiz,
+               jlong lc,
+               jlong call,
+               jlong params){
+       linphone_core_accept_call_with_params((LinphoneCore*)lc,(LinphoneCall*)call, (LinphoneCallParams*)params);
+}
+
+extern "C" void Java_org_linphone_core_LinphoneCoreImpl_acceptCallUpdate(JNIEnv *env,
+               jobject thiz,
+               jlong lc,
+               jlong call,
+               jlong params){
+       linphone_core_accept_call_update((LinphoneCore*)lc,(LinphoneCall*)call, (LinphoneCallParams*)params);
+}
+
+extern "C" void Java_org_linphone_core_LinphoneCoreImpl_deferCallUpdate(JNIEnv *env,
+               jobject thiz,
+               jlong lc,
+               jlong call,
+               jlong params){
+       linphone_core_defer_call_update((LinphoneCore*)lc,(LinphoneCall*)call);
+}
+
 extern "C" jlong Java_org_linphone_core_LinphoneCoreImpl_getCallLog(   JNIEnv*  env
                ,jobject  thiz
                ,jlong lc
@@ -1363,6 +1387,10 @@ extern "C" jlong Java_org_linphone_core_LinphoneCoreImpl_createDefaultCallParams
        return (jlong) linphone_core_create_default_call_parameters((LinphoneCore*)lc);
 }
 
+extern "C" jlong Java_org_linphone_core_LinphoneCallImpl_getRemoteParams(JNIEnv *env, jobject thiz, jlong lc){
+       return (jlong) linphone_call_params_copy(linphone_call_get_remote_params((linphone_call_params_copy*)lc));
+}
+
 extern "C" jlong Java_org_linphone_core_LinphoneCallImpl_getCurrentParamsCopy(JNIEnv *env, jobject thiz, jlong lc){
        return (jlong) linphone_call_params_copy(linphone_call_get_current_params((LinphoneCall*)lc));
 }