]> sjero.net Git - linphone/blobdiff - coreapi/chat.c
callback notif text delivered JNI
[linphone] / coreapi / chat.c
index 758293067970fa46fdff17e8dd3a17bc2271f09c..ddc3f5bfc608351095103345f844189a31cc6240 100644 (file)
@@ -119,6 +119,13 @@ void linphone_core_text_received(LinphoneCore *lc, const char *from, const char
        ms_free(cleanfrom);
 }
 
+LinphoneCore* linphone_chat_room_get_lc(LinphoneChatRoom *cr){
+       return cr->lc;
+}
+
+LinphoneChatRoom* linphone_chat_message_get_chat_room(LinphoneChatMessage *msg){
+       return msg->chat_room;
+}
 
 void linphone_chat_room_set_user_data(LinphoneChatRoom *cr, void * ud){
        cr->user_data=ud;
@@ -169,4 +176,4 @@ void linphone_chat_message_set_user_data(LinphoneChatMessage* message,void* ud)
  */
 void* linphone_chat_message_get_user_data(const LinphoneChatMessage* message) {
        return message->message_userdata;
-}
\ No newline at end of file
+}