Exported JNI method to get call duration from log

This commit is contained in:
Sylvain Berfini 2012-06-13 14:15:48 +02:00
parent f1f3c3c5e7
commit cc211d4813
2 changed files with 10 additions and 0 deletions

View file

@ -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) {

View file

@ -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();
}