]> sjero.net Git - linphone/blobdiff - coreapi/linphonecore_jni.cc
Add JNI glue to get timestamp for logs
[linphone] / coreapi / linphonecore_jni.cc
index d5835fe34c5560a3fdf5763070ff1a739407510b..63d94411ec0e8440e48f756b0c533e9c4c2402c9 100644 (file)
@@ -1294,6 +1294,11 @@ extern "C" jstring Java_org_linphone_core_LinphoneCallLogImpl_getStartDate(JNIEn
        jstring jvalue =env->NewStringUTF(((LinphoneCallLog*)ptr)->start_date);
        return jvalue;
 }
+extern "C" jlong Java_org_linphone_core_LinphoneCallLogImpl_getTimestamp(JNIEnv*  env
+                                                                                                                                               ,jobject  thiz
+                                                                                                                                               ,jlong ptr) {
+       return static_cast<long> (((LinphoneCallLog*)ptr)->start_date_time);
+}
 extern "C" jint Java_org_linphone_core_LinphoneCallLogImpl_getCallDuration(JNIEnv*  env
                                                                                                                                                ,jobject  thiz
                                                                                                                                                ,jlong ptr) {