]> sjero.net Git - linphone/blobdiff - coreapi/private.h
add sip message delivery notification
[linphone] / coreapi / private.h
index d1c15e41cddd9214a1b4c46efdfd0c8c0acd154e..6c9ba8d29fa0ce57f74450a62b7b0eed9f896e50 100644 (file)
@@ -86,6 +86,14 @@ typedef struct _CallCallbackObj
 
 static const int linphone_call_magic=0x3343;
 
+struct _LinphoneChatMessage {
+       const char* message;
+       LinphoneChatRoom* chat_room;
+       LinphoneChatMessageStateChangeCb cb;
+       void* cb_ud;
+       void* message_userdata;
+};
+       
 struct _LinphoneCall
 {
        int magic; /*used to distinguish from proxy config*/
@@ -138,6 +146,7 @@ struct _LinphoneCall
        CallCallbackObj nextVideoFrameDecoded;
        LinphoneCallStats stats[2];
        IceSession *ice_session;
+       LinphoneChatMessage* pending_message;
 };
 
 
@@ -277,6 +286,10 @@ LinphoneProxyConfig * is_a_linphone_proxy_config(void *user_pointer);
 
 static const int linphone_proxy_config_magic=0x7979;
 
+/*chat*/       
+void linphone_chat_message_destroy(LinphoneChatMessage* msg);
+/**/   
+
 struct _LinphoneProxyConfig
 {
        int magic;
@@ -324,6 +337,8 @@ struct _LinphoneChatRoom{
        void * user_data;
 };
 
+
+       
 struct _LinphoneFriend{
        LinphoneAddress *uri;
        SalOp *insub;