mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 04:28:10 +00:00
Exported JNI method to get call duration from log
This commit is contained in:
parent
f1f3c3c5e7
commit
cc211d4813
2 changed files with 10 additions and 0 deletions
|
|
@ -1152,6 +1152,11 @@ extern "C" jstring Java_org_linphone_core_LinphoneCallLogImpl_getStartDate(JNIEn
|
|||
jstring jvalue =env->NewStringUTF(((LinphoneCallLog*)ptr)->start_date);
|
||||
return jvalue;
|
||||
}
|
||||
extern "C" jint Java_org_linphone_core_LinphoneCallLogImpl_getCallDuration(JNIEnv* env
|
||||
,jobject thiz
|
||||
,jlong ptr) {
|
||||
return ((LinphoneCallLog*)ptr)->duration;
|
||||
}
|
||||
|
||||
/*payloadType*/
|
||||
extern "C" jstring Java_org_linphone_core_PayloadTypeImpl_toString(JNIEnv* env,jobject thiz,jlong ptr) {
|
||||
|
|
|
|||
|
|
@ -101,4 +101,9 @@ public interface LinphoneCallLog {
|
|||
* @return a human readble String with the start date/time of the call
|
||||
*/
|
||||
public String getStartDate();
|
||||
|
||||
/**
|
||||
* @return the call duration, in seconds
|
||||
*/
|
||||
public int getCallDuration();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue