]> sjero.net Git - linphone/commitdiff
Added resetMissedCallsCount to linphone core and exported via JNI
authorSylvain Berfini <Sylvain.Berfini@Belledonne-Communications.com>
Wed, 13 Jun 2012 13:11:25 +0000 (15:11 +0200)
committerSylvain Berfini <Sylvain.Berfini@Belledonne-Communications.com>
Wed, 13 Jun 2012 13:11:25 +0000 (15:11 +0200)
coreapi/linphonecore.c
coreapi/linphonecore.h
coreapi/linphonecore_jni.cc
java/common/org/linphone/core/LinphoneCore.java

index 134d38d34936ef461293dd901cd5f1b7bb8e7be2..41b9e2ddad6549645d4fe60bcc74389c86e6567a 100644 (file)
@@ -3493,6 +3493,10 @@ int linphone_core_get_missed_calls_count(LinphoneCore *lc) {
        return lc->missed_calls;
 }
 
+void linphone_core_reset_missed_calls_count(LinphoneCore *lc) {
+       lc->missed_calls=0;
+}
+
 void linphone_core_remove_call_log(LinphoneCore *lc, void *data) {
        lc->call_logs = ms_list_remove(lc->call_logs, data);
        call_logs_write_to_config_file(lc);
index 531950d72f40acb665e863add7e4d937bb8485f5..c9c6fc1a141104036d9e9d2f28193b31b44d9d86 100644 (file)
@@ -971,6 +971,7 @@ void linphone_core_set_rtp_no_xmit_on_audio_mute(LinphoneCore *lc, bool_t val);
 const MSList * linphone_core_get_call_logs(LinphoneCore *lc);
 void linphone_core_clear_call_logs(LinphoneCore *lc);
 int linphone_core_get_missed_calls_count(LinphoneCore *lc);
+void linphone_core_reset_missed_calls_count(LinphoneCore *lc);
 void linphone_core_remove_call_log(LinphoneCore *lc, void *data);
 
 /* video support */
index d45f6009bdb962ef8aae5f0ec7606b556ec820cc..4393e3a3b6b8ae116e42689292838ba82f75b20d 100644 (file)
@@ -648,6 +648,12 @@ extern "C" void Java_org_linphone_core_LinphoneCoreImpl_getMissedCallsCount(JNIE
        linphone_core_get_missed_calls_count((LinphoneCore*)lc);
 }
 
+extern "C" void Java_org_linphone_core_LinphoneCoreImpl_resetMissedCallsCount(JNIEnv*  env
+                                                                                                                                               ,jobject  thiz
+                                                                                                                                               ,jlong lc) {
+       linphone_core_reset_missed_calls_count((LinphoneCore*)lc);
+}
+
 extern "C" void Java_org_linphone_core_LinphoneCoreImpl_removeCallLog(JNIEnv*  env
                                                                                                                                                ,jobject  thiz
                                                                                                                                                ,jlong lc, jlong log) {
index b6830863c487bf83e1ff93531b860b839ffe2e65..86559f43fa72f62430a5a7f4182b2f8c29a76d3c 100644 (file)
@@ -770,4 +770,9 @@ public interface LinphoneCore {
         * @return count of missed calls
         */
        public int getMissedCallsCount();
+       
+       /**
+        * Set missed calls count to zero
+        */
+       public void resetMissedCallsCount();
 }