forked from mirrors/linphone-iphone
Add linphone chat method resend to JNI
This commit is contained in:
parent
ed813724f7
commit
a1fe7e4b04
3 changed files with 16 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -252,4 +252,8 @@ public interface LinphoneChatMessage {
|
|||
*/
|
||||
boolean isSecured();
|
||||
|
||||
/**
|
||||
* Resend the message
|
||||
*/
|
||||
void reSend();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue