Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
0d922d4c
Commit
0d922d4c
authored
Jun 13, 2012
by
Sylvain Berfini
🐮
Browse files
Added resetMissedCallsCount to linphone core and exported via JNI
parent
cc211d48
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
0 deletions
+16
-0
coreapi/linphonecore.c
coreapi/linphonecore.c
+4
-0
coreapi/linphonecore.h
coreapi/linphonecore.h
+1
-0
coreapi/linphonecore_jni.cc
coreapi/linphonecore_jni.cc
+6
-0
java/common/org/linphone/core/LinphoneCore.java
java/common/org/linphone/core/LinphoneCore.java
+5
-0
No files found.
coreapi/linphonecore.c
View file @
0d922d4c
...
...
@@ -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
);
...
...
coreapi/linphonecore.h
View file @
0d922d4c
...
...
@@ -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 */
...
...
coreapi/linphonecore_jni.cc
View file @
0d922d4c
...
...
@@ -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
)
{
...
...
java/common/org/linphone/core/LinphoneCore.java
View file @
0d922d4c
...
...
@@ -770,4 +770,9 @@ public interface LinphoneCore {
* @return count of missed calls
*/
public
int
getMissedCallsCount
();
/**
* Set missed calls count to zero
*/
public
void
resetMissedCallsCount
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment