Add linphone chat method resend to JNI

This commit is contained in:
Erwan Croze 2017-04-06 14:04:25 +02:00
parent ed813724f7
commit a1fe7e4b04
3 changed files with 16 additions and 0 deletions

View file

@ -4575,6 +4575,12 @@ extern "C" jboolean Java_org_linphone_core_LinphoneChatMessageImpl_isSecured(JNI
return linphone_chat_message_is_secured((LinphoneChatMessage*)ptr);
}
extern "C" void Java_org_linphone_core_LinphoneChatMessageImpl_resend(JNIEnv* env
,jobject thiz
,jlong ptr) {
linphone_chat_message_resend((LinphoneChatMessage*)ptr);
}
static void message_state_changed(LinphoneChatMessage* msg, LinphoneChatMessageState state) {
JNIEnv *env = 0;
jint result = jvm->AttachCurrentThread(&env,NULL);

View file

@ -252,4 +252,8 @@ public interface LinphoneChatMessage {
*/
boolean isSecured();
/**
* Resend the message
*/
void reSend();
}

View file

@ -172,4 +172,10 @@ public class LinphoneChatMessageImpl implements LinphoneChatMessage {
public boolean isSecured() {
return isSecured(nativePtr);
}
private native void reSend(long nativePtr);
@Override
public void reSend() {
reSend(nativePtr);
}
}