mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-31 02:09:22 +00:00
Added JNI getFrom to LinphoneChatMessage
This commit is contained in:
parent
239e4f553b
commit
a1961faa44
2 changed files with 14 additions and 2 deletions
|
|
@ -1425,10 +1425,15 @@ extern "C" void Java_org_linphone_core_LinphoneChatMessageImpl_setExternalBodyUr
|
|||
linphone_chat_message_set_external_body_url((LinphoneChatMessage *)ptr, url);
|
||||
env->ReleaseStringUTFChars(jurl, url);
|
||||
}
|
||||
extern "C" long Java_org_linphone_core_LinphoneChatMessageImpl_getPeerAddress(JNIEnv* env
|
||||
extern "C" jlong Java_org_linphone_core_LinphoneChatMessageImpl_getFrom(JNIEnv* env
|
||||
,jobject thiz
|
||||
,jlong ptr) {
|
||||
return (long) linphone_chat_message_get_peer_address((LinphoneChatMessage*)ptr);
|
||||
return (jlong) linphone_chat_message_get_from((LinphoneChatMessage*)ptr);
|
||||
}
|
||||
extern "C" jlong Java_org_linphone_core_LinphoneChatMessageImpl_getPeerAddress(JNIEnv* env
|
||||
,jobject thiz
|
||||
,jlong ptr) {
|
||||
return (jlong) linphone_chat_message_get_peer_address((LinphoneChatMessage*)ptr);
|
||||
}
|
||||
extern "C" void Java_org_linphone_core_LinphoneChatRoomImpl_sendMessage(JNIEnv* env
|
||||
,jobject thiz
|
||||
|
|
|
|||
|
|
@ -74,6 +74,13 @@ public interface LinphoneChatMessage {
|
|||
*/
|
||||
LinphoneAddress getPeerAddress();
|
||||
|
||||
/**
|
||||
* get from address associated to this LinphoneChatMessage
|
||||
*
|
||||
* @return LinphoneAddress from address
|
||||
*/
|
||||
LinphoneAddress getFrom();
|
||||
|
||||
/**
|
||||
* Linphone message can carry external body as defined by rfc2017
|
||||
* @param message #LinphoneChatMessage
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue