chat room and Messaging chatroom and message delivery
Macro
#define LINPHONE_CHAT_MESSAGE_SET_FROM (msg, addr) linphone_chat_message_set_from_address (MSG,ADDR)
#define LINPHONE_CHAT_MESSAGE_GET_FROM (msg) linphone_chat_message_get_from_address (msg)
#define LINPHONE_CHAT_MESSAGE_SET_TO (msg, addr) linphone_chat_message_set_to_address (msg, addr)
#define LINPHONE_CHAT_MESSAGE_GET_TO (msg) linphone_chat_message_get_to_addr (msg)
Custom Types
typedef struct _LINPHONECHATMESSAGECBS Linphonechatmessagecbs
typedef struct _LINPHONECHATMESSAGE linphonechatmessage
typedef struct _LINPHONECHATROOM linphonechatroom
typedef enum _LINPHONECHATMESSAGESTATE linphonechatmessagestate
typedef enum _LINPHONELIMESTATE linphonelimestate
typedef void (* LINPHONECHATMESSAGESTATECHANGEDCB) (linphonechatmessage *msg,linphonechatmessagestate state,void *ud)
typedef void (* LINPHONECHATMESSAGECBSMSGSTATECHANGEDCB) (linphonechatmessge* msg,linphonechatmessagestate State)
typedef void (* LINPHONECHATMESSAGECBSFILETRANSFERRECVCB) (Linphonechatmessage *message, const linphonecontent * content, const Linphonebuffer *buffer)
typedef linphonebuffer* (* LINPHONECHATMESSAGECBSFILETRANSFERSENDCB) (linphonechatmessage *message, const Linphonecontent *content, size_t offset, size_t size)
typedef void (* LINPHONECHATMESSAGECBSFILETRANSFERPROGRESSINDICATIONCB) (linphonechatmessage *message, const Linphonecontent *content, size_t offset, size_t total)
Enum type
Enum _linphonechatmessagestate{
Linphonechatmessagestateidle,
Linphonechatmessagestateinprogress,
Linphonechatmessagestatedelivered,
Linphonechatmessagestatenotdelivered,
Linphonechatmessagestatefiletransfererror,
Linphonechatmessagestatefiletransferdone
}
Enum _linphonelimestate{
Linphonelimedisabled,
Linphonelimemandatory,
Linphonelimepreferred
}
function
| void |
Linphone_core_set_chat_database_path (Linphonecore *lc, const char *path) |
|
| const char * |
Linphone_core_get_chat_database_path (const Linphonecore *LC) |
|
| Linphonechatroom * |
Linphone_core_get_chat_room (Linphonecore *lc, const linphoneaddress *ADDR) |
|
| Linphonechatroom * |
Linphone_core_get_chat_room_from_uri (Linphonecore *lc, const char *to) |
|
| void |
Linphone_core_delete_chat_room (Linphonecore *lc, Linphonechatroom *CR) |
|
| void |
Linphone_core_disable_chat (Linphonecore *lc, Linphonereason Deny_reason) |
|
| void |
Linphone_core_enable_chat (Linphonecore *LC) |
|
| bool_t |
linphone_core_chat_enabled (const Linphonecore *LC) |
|
| ms2_deprecated void |
Linphone_chat_room_destroy (Linphonechatroom *CR) |
|
| Linphonechatmessage * |
Linphone_chat_room_create_message (linphonechatroom *cr, const char *message) |
|
| Linphonechatmessage * |
Linphone_chat_room_create_message_2 (linphonechatroom *cr, const char *message, const char *external_body_url, Linphonechatmessagestate state, time_t time, bool_t is_read, bool_t is_incoming) |
|
| Linphonechatroom * |
Linphone_chat_room_ref (Linphonechatroom *CR) |
|
| void |
Linphone_chat_room_unref (Linphonechatroom *CR) |
|
| void * |
Linphone_chat_room_get_user_data (const linphonechatroom *CR) |
|
| void |
Linphone_chat_room_set_user_data (Linphonechatroom *cr, void *ud) |
|
| Linphonechatmessage * |
Linphone_chat_room_create_file_transfer_message (linphonechatroom *cr, const linphonecontent*initial_content) |
|
| Const LINPHONEADDRESS * |
Linphone_chat_room_get_peer_address (Linphonechatroom *CR) |
|
| ms2_deprecated void |
Linphone_chat_room_send_message (linphonechatroom *cr, const char *msg) |
|
| ms2_deprecated void |