Liblinphone 3.9.1 Chinese--modules--chat and Messaging

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.