Liblinphone
3.11.2
|
Miscenalleous: logs, version strings, config storage. More...
Macros | |
#define | LINPHONE_CONFIG(obj) BELLE_SIP_CAST(obj, LinphoneConfig); |
Safely downcast a belle_sip_object into LinphoneConfig. | |
#define | lp_config_new linphone_config_new |
#define | lp_config_new_from_buffer linphone_config_new_from_buffer |
#define | lp_config_new_with_factory linphone_config_new_with_factory |
#define | lp_config_read_file linphone_config_read_file |
#define | lp_config_get_string linphone_config_get_string |
#define | lp_config_get_string_list linphone_config_get_string_list |
#define | lp_config_get_range linphone_config_get_range |
#define | lp_config_get_int linphone_config_get_int |
#define | lp_config_get_int64 linphone_config_get_int64 |
#define | lp_config_get_float linphone_config_get_float |
#define | lp_config_set_string linphone_config_set_string |
#define | lp_config_set_string_list linphone_config_set_string_list |
#define | lp_config_set_range linphone_config_set_range |
#define | lp_config_set_int linphone_config_set_int |
#define | lp_config_set_int_hex linphone_config_set_int_hex |
#define | lp_config_set_int64 linphone_config_set_int64 |
#define | lp_config_set_float linphone_config_set_float |
#define | lp_config_sync linphone_config_sync |
#define | lp_config_has_section linphone_config_has_section |
#define | lp_config_clean_section linphone_config_clean_section |
#define | lp_config_has_entry linphone_config_has_entry |
#define | lp_config_clean_entry linphone_config_clean_entry |
#define | lp_config_get_sections_names linphone_config_get_sections_names |
#define | lp_config_for_each_section linphone_config_for_each_section |
#define | lp_config_for_each_entry linphone_config_for_each_entry |
#define | lp_config_needs_commit linphone_config_needs_commit |
#define | lp_config_destroy linphone_config_destroy |
#define | lp_config_get_default_int linphone_config_get_default_int |
#define | lp_config_get_default_int64 linphone_config_get_default_int64 |
#define | lp_config_get_default_float linphone_config_get_default_float |
#define | lp_config_get_default_string linphone_config_get_default_string |
#define | lp_config_get_section_param_string linphone_config_get_section_param_string |
#define | lp_config_ref linphone_config_ref |
#define | lp_config_unref linphone_config_unref |
#define | lp_config_write_relative_file linphone_config_write_relative_file |
#define | lp_config_read_relative_file linphone_config_read_relative_file |
#define | lp_config_relative_file_exists linphone_config_relative_file_exists |
#define | lp_config_dump_as_xml linphone_config_dump_as_xml |
#define | lp_config_dump linphone_config_dump |
#define | lp_config_get_overwrite_flag_for_entry linphone_config_get_overwrite_flag_for_entry |
#define | lp_config_set_overwrite_flag_for_entry linphone_config_set_overwrite_flag_for_entry |
#define | lp_config_get_overwrite_flag_for_section linphone_config_get_overwrite_flag_for_section |
#define | lp_config_set_overwrite_flag_for_section linphone_config_set_overwrite_flag_for_section |
#define | lp_config_get_skip_flag_for_entry linphone_config_get_skip_flag_for_entry |
#define | lp_config_set_skip_flag_for_entry linphone_config_set_skip_flag_for_entry |
#define | lp_config_get_skip_flag_for_section linphone_config_get_skip_flag_for_section |
#define | lp_config_set_skip_flag_for_section linphone_config_set_skip_flag_for_section |
Typedefs | |
typedef int(* | LinphoneImEncryptionEngineCbsIncomingMessageCb )(LinphoneImEncryptionEngine *engine, LinphoneChatRoom *room, LinphoneChatMessage *msg) |
Callback to decrypt incoming LinphoneChatMessage. More... | |
typedef int(* | LinphoneImEncryptionEngineCbsOutgoingMessageCb )(LinphoneImEncryptionEngine *engine, LinphoneChatRoom *room, LinphoneChatMessage *msg) |
Callback to encrypt outgoing LinphoneChatMessage. More... | |
typedef bool_t(* | LinphoneImEncryptionEngineCbsIsEncryptionEnabledForFileTransferCb )(LinphoneImEncryptionEngine *engine, LinphoneChatRoom *room) |
Callback to know whether or not the engine will encrypt files before uploading them. More... | |
typedef void(* | LinphoneImEncryptionEngineCbsGenerateFileTransferKeyCb )(LinphoneImEncryptionEngine *engine, LinphoneChatRoom *room, LinphoneChatMessage *msg) |
Callback to generate the key used to encrypt the files before uploading them Key can be stored in the LinphoneContent object inside the LinphoneChatMessage using linphone_content_set_key. More... | |
typedef int(* | LinphoneImEncryptionEngineCbsDownloadingFileCb )(LinphoneImEncryptionEngine *engine, LinphoneChatMessage *msg, size_t offset, const uint8_t *buffer, size_t size, uint8_t *decrypted_buffer) |
Callback to decrypt downloading file. More... | |
typedef int(* | LinphoneImEncryptionEngineCbsUploadingFileCb )(LinphoneImEncryptionEngine *engine, LinphoneChatMessage *msg, size_t offset, const uint8_t *buffer, size_t *size, uint8_t *encrypted_buffer) |
Callback to encrypt uploading file. More... | |
typedef void(* | LinphoneXmlRpcRequestCbsResponseCb )(LinphoneXmlRpcRequest *request) |
Callback used to notify the response to an XML-RPC request. More... | |
typedef struct _LinphoneBuffer | LinphoneBuffer |
The LinphoneContent object representing a data buffer. | |
typedef struct _LpConfig | LinphoneConfig |
The LinphoneConfig object is used to manipulate a configuration file. More... | |
typedef struct _LinphoneContent | LinphoneContent |
The LinphoneContent object holds data that can be embedded in a signaling message. | |
typedef struct _LinphoneErrorInfo | LinphoneErrorInfo |
Object representing full details about a signaling error or status. More... | |
typedef struct _LinphoneImEncryptionEngine | LinphoneImEncryptionEngine |
IM encryption engine. | |
typedef struct _LinphoneImEncryptionEngineCbs | LinphoneImEncryptionEngineCbs |
An object to handle the callbacks for the handling a LinphoneImEncryptionEngine object. | |
typedef struct _LinphoneInfoMessage | LinphoneInfoMessage |
The LinphoneInfoMessage is an object representing an informational message sent or received by the core. | |
typedef enum _LinphoneReason | LinphoneReason |
Enum describing various failure reasons or contextual information for some events. More... | |
typedef enum _LinphoneToneID | LinphoneToneID |
Enum listing frequent telephony tones. | |
typedef enum _LinphoneVersionUpdateCheckResult | LinphoneVersionUpdateCheckResult |
Enum describing the result of a version update check. | |
typedef enum _LinphoneXmlRpcArgType | LinphoneXmlRpcArgType |
Enum describing the types of argument for LinphoneXmlRpcRequest. | |
typedef struct _LinphoneXmlRpcRequest | LinphoneXmlRpcRequest |
The LinphoneXmlRpcRequest object representing a XML-RPC request to be sent. | |
typedef struct _LinphoneXmlRpcRequestCbs | LinphoneXmlRpcRequestCbs |
An object to handle the callbacks for handling the LinphoneXmlRpcRequest operations. | |
typedef struct _LinphoneXmlRpcSession | LinphoneXmlRpcSession |
The LinphoneXmlRpcSession object used to send XML-RPC requests and handle their responses. | |
typedef enum _LinphoneXmlRpcStatus | LinphoneXmlRpcStatus |
Enum describing the status of a LinphoneXmlRpcRequest. | |
typedef struct _LinphoneRange | LinphoneRange |
Structure describing a range of integers. | |
typedef int | LinphoneStatus |
Status code returned by some functions to notify whether the execution has been succesfully done or not. | |
typedef struct _LinphoneHeaders | LinphoneHeaders |
Object representing a chain of protocol headers. More... | |
Functions | |
LinphoneBuffer * | linphone_buffer_new (void) |
Create a new empty LinphoneBuffer object. More... | |
LinphoneBuffer * | linphone_buffer_new_from_data (const uint8_t *data, size_t size) |
Create a new LinphoneBuffer object from existing data. More... | |
LinphoneBuffer * | linphone_buffer_new_from_string (const char *data) |
Create a new LinphoneBuffer object from a string. More... | |
LinphoneBuffer * | linphone_buffer_ref (LinphoneBuffer *buffer) |
Acquire a reference to the buffer. More... | |
void | linphone_buffer_unref (LinphoneBuffer *buffer) |
Release reference to the buffer. More... | |
void * | linphone_buffer_get_user_data (const LinphoneBuffer *buffer) |
Retrieve the user pointer associated with the buffer. More... | |
void | linphone_buffer_set_user_data (LinphoneBuffer *buffer, void *ud) |
Assign a user pointer to the buffer. More... | |
const uint8_t * | linphone_buffer_get_content (const LinphoneBuffer *buffer) |
Get the content of the data buffer. More... | |
void | linphone_buffer_set_content (LinphoneBuffer *buffer, const uint8_t *content, size_t size) |
Set the content of the data buffer. More... | |
const char * | linphone_buffer_get_string_content (const LinphoneBuffer *buffer) |
Get the string content of the data buffer. More... | |
void | linphone_buffer_set_string_content (LinphoneBuffer *buffer, const char *content) |
Set the string content of the data buffer. More... | |
size_t | linphone_buffer_get_size (const LinphoneBuffer *buffer) |
Get the size of the content of the data buffer. More... | |
void | linphone_buffer_set_size (LinphoneBuffer *buffer, size_t size) |
Set the size of the content of the data buffer. More... | |
bool_t | linphone_buffer_is_empty (const LinphoneBuffer *buffer) |
Tell whether the LinphoneBuffer is empty. More... | |
LinphoneCallStats * | linphone_call_stats_ref (LinphoneCallStats *stats) |
Increment refcount. More... | |
void | linphone_call_stats_unref (LinphoneCallStats *stats) |
Decrement refcount and possibly free the object. More... | |
void * | linphone_call_stats_get_user_data (const LinphoneCallStats *stats) |
Gets the user data in the LinphoneCallStats object. More... | |
void | linphone_call_stats_set_user_data (LinphoneCallStats *stats, void *data) |
Sets the user data in the LinphoneCallStats object. More... | |
LinphoneContent * | linphone_content_ref (LinphoneContent *content) |
Acquire a reference to the content. More... | |
void | linphone_content_unref (LinphoneContent *content) |
Release reference to the content. More... | |
void * | linphone_content_get_user_data (const LinphoneContent *content) |
Retrieve the user pointer associated with the content. More... | |
void | linphone_content_set_user_data (LinphoneContent *content, void *ud) |
Assign a user pointer to the content. More... | |
const char * | linphone_content_get_type (const LinphoneContent *content) |
Get the mime type of the content data. More... | |
void | linphone_content_set_type (LinphoneContent *content, const char *type) |
Set the mime type of the content data. More... | |
const char * | linphone_content_get_subtype (const LinphoneContent *content) |
Get the mime subtype of the content data. More... | |
void | linphone_content_set_subtype (LinphoneContent *content, const char *subtype) |
Set the mime subtype of the content data. More... | |
void * | linphone_content_get_buffer (const LinphoneContent *content) |
Get the content data buffer, usually a string. More... | |
void | linphone_content_set_buffer (LinphoneContent *content, const void *buffer, size_t size) |
Set the content data buffer, usually a string. More... | |
const char * | linphone_content_get_string_buffer (const LinphoneContent *content) |
Get the string content data buffer. More... | |
void | linphone_content_set_string_buffer (LinphoneContent *content, const char *buffer) |
Set the string content data buffer. More... | |
size_t | linphone_content_get_size (const LinphoneContent *content) |
Get the content data buffer size, excluding null character despite null character is always set for convenience. More... | |
void | linphone_content_set_size (LinphoneContent *content, size_t size) |
Set the content data size, excluding null character despite null character is always set for convenience. More... | |
const char * | linphone_content_get_encoding (const LinphoneContent *content) |
Get the encoding of the data buffer, for example "gzip". More... | |
void | linphone_content_set_encoding (LinphoneContent *content, const char *encoding) |
Set the encoding of the data buffer, for example "gzip". More... | |
const char * | linphone_content_get_name (const LinphoneContent *content) |
Get the name associated with a RCS file transfer message. More... | |
void | linphone_content_set_name (LinphoneContent *content, const char *name) |
Set the name associated with a RCS file transfer message. More... | |
bool_t | linphone_content_is_multipart (const LinphoneContent *content) |
Tell whether a content is a multipart content. More... | |
LinphoneContent * | linphone_content_get_part (const LinphoneContent *content, int idx) |
Get a part from a multipart content according to its index. More... | |
LinphoneContent * | linphone_content_find_part_by_header (const LinphoneContent *content, const char *header_name, const char *header_value) |
Find a part from a multipart content looking for a part header with a specified value. More... | |
const char * | linphone_content_get_custom_header (const LinphoneContent *content, const char *header_name) |
Get a custom header value of a content. More... | |
LinphonePlayer * | linphone_core_create_local_player (LinphoneCore *lc, const char *sound_card_name, const char *video_display_name, void *window_id) |
Create an independent media file player. More... | |
LinphoneInfoMessage * | linphone_core_create_info_message (LinphoneCore *lc) |
Creates an empty info message. More... | |
void | linphone_core_check_for_update (LinphoneCore *lc, const char *current_version) |
Checks if a new version of the application is available. More... | |
void | linphone_core_set_user_agent (LinphoneCore *lc, const char *ua_name, const char *version) |
Sets the user agent string used in SIP messages, ideally called just after linphone_core_new() or linphone_core_init(). More... | |
LinphoneAddress * | linphone_core_interpret_url (LinphoneCore *lc, const char *url) |
See linphone_proxy_config_normalize_sip_uri for documentation. More... | |
LinphoneStatus | linphone_core_play_local (LinphoneCore *lc, const char *audiofile) |
Plays an audio file to the local user. More... | |
bool_t | linphone_core_vcard_supported (void) |
Tells whether VCARD support is builtin. More... | |
bool_t | linphone_core_video_supported (LinphoneCore *lc) |
Test if video is supported. | |
LinphoneStatus | linphone_core_take_preview_snapshot (LinphoneCore *lc, const char *file) |
Take a photo of currently from capture device and write it into a jpeg file. More... | |
LinphoneConfig * | linphone_core_get_config (LinphoneCore *lc) |
Returns the LpConfig object used to manage the storage (config) file. More... | |
LINPHONE_DEPRECATED LinphoneConfig * | linphone_core_create_lp_config (LinphoneCore *lc, const char *filename) |
Create a LpConfig object from a user config file. More... | |
LinphoneConfig * | linphone_core_create_config (LinphoneCore *lc, const char *filename) |
Create a LinphoneConfig object from a user config file. More... | |
void | linphone_core_set_call_error_tone (LinphoneCore *lc, LinphoneReason reason, const char *audiofile) |
Assign an audio file to be played locally upon call failure, for a given reason. More... | |
void | linphone_core_set_file_transfer_server (LinphoneCore *core, const char *server_url) |
Globaly set an http file transfer server to be used for content type application/vnd.gsma.rcs-ft-http+xml. More... | |
const char * | linphone_core_get_file_transfer_server (LinphoneCore *core) |
Get the globaly set http file transfer server to be used for content type application/vnd.gsma.rcs-ft-http+xml. More... | |
LinphoneContent * | linphone_core_create_content (LinphoneCore *lc) |
Create a content with default values from Linphone core. More... | |
int | linphone_dial_plan_lookup_ccc_from_iso (const char *iso) |
Function to get call country code from ISO 3166-1 alpha-2 code, ex: FR returns 33. More... | |
int | linphone_dial_plan_lookup_ccc_from_e164 (const char *e164) |
Function to get call country code from an e164 number, ex: +33952650121 will return 33. More... | |
LinphoneErrorInfo * | linphone_error_info_new (void) |
Create an empty LinphoneErrorInfo object. More... | |
LinphoneErrorInfo * | linphone_error_info_ref (LinphoneErrorInfo *ei) |
Increment refcount. More... | |
void | linphone_error_info_unref (LinphoneErrorInfo *ei) |
Decrement refcount and possibly free the object. More... | |
LinphoneReason | linphone_error_info_get_reason (const LinphoneErrorInfo *ei) |
Get reason code from the error info. More... | |
LinphoneErrorInfo * | linphone_error_info_get_sub_error_info (const LinphoneErrorInfo *ei) |
Get pointer to chained LinphoneErrorInfo set in sub_ei. More... | |
const char * | linphone_error_info_get_phrase (const LinphoneErrorInfo *ei) |
Get textual phrase from the error info. More... | |
const char * | linphone_error_info_get_protocol (const LinphoneErrorInfo *ei) |
Get protocol from the error info. More... | |
const char * | linphone_error_info_get_warnings (const LinphoneErrorInfo *ei) |
Provides additional information regarding the failure. More... | |
int | linphone_error_info_get_protocol_code (const LinphoneErrorInfo *ei) |
Get the status code from the low level protocol (ex a SIP status code). More... | |
void | linphone_error_info_set (LinphoneErrorInfo *ei, const char *protocol, LinphoneReason reason, int code, const char *status_string, const char *warning) |
Assign information to a LinphoneErrorInfo object. More... | |
void | linphone_error_info_set_sub_error_info (LinphoneErrorInfo *ei, LinphoneErrorInfo *appended_ei) |
Set the sub_ei in LinphoneErrorInfo to another LinphoneErrorInfo. More... | |
void | linphone_error_info_set_reason (LinphoneErrorInfo *ei, LinphoneReason reason) |
Assign reason LinphoneReason to a LinphoneErrorInfo object. More... | |
void | linphone_error_info_set_protocol (LinphoneErrorInfo *ei, const char *proto) |
Assign protocol name to a LinphoneErrorInfo object. More... | |
void | linphone_error_info_set_protocol_code (LinphoneErrorInfo *ei, int code) |
Assign protocol code to a LinphoneErrorInfo object. More... | |
void | linphone_error_info_set_phrase (LinphoneErrorInfo *ei, const char *phrase) |
Assign phrase to a LinphoneErrorInfo object. More... | |
void | linphone_error_info_set_warnings (LinphoneErrorInfo *ei, const char *warnings) |
Assign warnings to a LinphoneErrorInfo object. More... | |
LinphoneHeaders * | linphone_headers_ref (LinphoneHeaders *obj) |
Increments ref count. | |
void | linphone_headers_unref (LinphoneHeaders *obj) |
Decrements ref count. | |
const char * | linphone_headers_get_value (LinphoneHeaders *obj, const char *header_name) |
Search for a given header name and return its value. More... | |
void | linphone_headers_add (LinphoneHeaders *obj, const char *name, const char *value) |
Add given header name and corresponding value. More... | |
void | linphone_headers_remove (LinphoneHeaders *obj, const char *name) |
Add given header name and corresponding value. More... | |
LinphoneImEncryptionEngineCbs * | linphone_im_encryption_engine_cbs_ref (LinphoneImEncryptionEngineCbs *cbs) |
Acquire a reference to the LinphoneImEncryptionEngineCbs. More... | |
void | linphone_im_encryption_engine_cbs_unref (LinphoneImEncryptionEngineCbs *cbs) |
Release reference to the LinphoneImEncryptionEngineCbs. More... | |
void * | linphone_im_encryption_engine_cbs_get_user_data (const LinphoneImEncryptionEngineCbs *cbs) |
Gets the user data in the LinphoneImEncryptionEngineCbs object. More... | |
void | linphone_im_encryption_engine_cbs_set_user_data (LinphoneImEncryptionEngineCbs *cbs, void *data) |
Sets the user data in the LinphoneImEncryptionEngineCbs object. More... | |
LinphoneImEncryptionEngine * | linphone_im_encryption_engine_ref (LinphoneImEncryptionEngine *imee) |
Acquire a reference to the LinphoneImEncryptionEngine. More... | |
void | linphone_im_encryption_engine_unref (LinphoneImEncryptionEngine *imee) |
Release reference to the LinphoneImEncryptionEngine. More... | |
void * | linphone_im_encryption_engine_get_user_data (const LinphoneImEncryptionEngine *imee) |
Gets the user data in the LinphoneImEncryptionEngine object. More... | |
void | linphone_im_encryption_engine_set_user_data (LinphoneImEncryptionEngine *imee, void *data) |
Sets the user data in the LinphoneImEncryptionEngine object. More... | |
LinphoneCore * | linphone_im_encryption_engine_get_core (LinphoneImEncryptionEngine *imee) |
Gets the LinphoneCore object that created the IM encryption engine. More... | |
LinphoneImEncryptionEngineCbs * | linphone_im_encryption_engine_get_callbacks (const LinphoneImEncryptionEngine *imee) |
Gets the LinphoneImEncryptionEngineCbs object that holds the callbacks. More... | |
LinphoneImEncryptionEngineCbsIncomingMessageCb | linphone_im_encryption_engine_cbs_get_process_incoming_message (LinphoneImEncryptionEngineCbs *cbs) |
Gets the callback that will decrypt the chat messages upon reception. More... | |
void | linphone_im_encryption_engine_cbs_set_process_incoming_message (LinphoneImEncryptionEngineCbs *cbs, LinphoneImEncryptionEngineCbsIncomingMessageCb cb) |
Sets the callback that will decrypt the chat messages upon reception. More... | |
LinphoneImEncryptionEngineCbsOutgoingMessageCb | linphone_im_encryption_engine_cbs_get_process_outgoing_message (LinphoneImEncryptionEngineCbs *cbs) |
Gets the callback that will encrypt the chat messages before sending them. More... | |
void | linphone_im_encryption_engine_cbs_set_process_outgoing_message (LinphoneImEncryptionEngineCbs *cbs, LinphoneImEncryptionEngineCbsOutgoingMessageCb cb) |
Sets the callback that will encrypt the chat messages before sending them. More... | |
LinphoneImEncryptionEngineCbsDownloadingFileCb | linphone_im_encryption_engine_cbs_get_process_downloading_file (LinphoneImEncryptionEngineCbs *cbs) |
Gets the callback that will decrypt the files while downloading them. More... | |
void | linphone_im_encryption_engine_cbs_set_process_downloading_file (LinphoneImEncryptionEngineCbs *cbs, LinphoneImEncryptionEngineCbsDownloadingFileCb cb) |
Sets the callback that will decrypt the files while downloading them. More... | |
LinphoneImEncryptionEngineCbsUploadingFileCb | linphone_im_encryption_engine_cbs_get_process_uploading_file (LinphoneImEncryptionEngineCbs *cbs) |
Gets the callback that will will encrypt the files while uploading them. More... | |
void | linphone_im_encryption_engine_cbs_set_process_uploading_file (LinphoneImEncryptionEngineCbs *cbs, LinphoneImEncryptionEngineCbsUploadingFileCb cb) |
Sets the callback that will encrypt the files while uploading them. More... | |
LinphoneImEncryptionEngineCbsIsEncryptionEnabledForFileTransferCb | linphone_im_encryption_engine_cbs_get_is_encryption_enabled_for_file_transfer (LinphoneImEncryptionEngineCbs *cbs) |
Gets the callback telling wheter or not to encrypt the files. More... | |
void | linphone_im_encryption_engine_cbs_set_is_encryption_enabled_for_file_transfer (LinphoneImEncryptionEngineCbs *cbs, LinphoneImEncryptionEngineCbsIsEncryptionEnabledForFileTransferCb cb) |
Sets the callback telling wheter or not to encrypt the files. More... | |
LinphoneImEncryptionEngineCbsGenerateFileTransferKeyCb | linphone_im_encryption_engine_cbs_get_generate_file_transfer_key (LinphoneImEncryptionEngineCbs *cbs) |
Gets the callback that will generate the key to encrypt the file before uploading it. More... | |
void | linphone_im_encryption_engine_cbs_set_generate_file_transfer_key (LinphoneImEncryptionEngineCbs *cbs, LinphoneImEncryptionEngineCbsGenerateFileTransferKeyCb cb) |
Sets the callback that will generate the key to encrypt the file before uploading it. More... | |
int | linphone_chat_message_set_text (LinphoneChatMessage *msg, const char *text) |
Set a chat message text to be sent by linphone_chat_room_send_message. More... | |
LinphoneImEncryptionEngine * | linphone_im_encryption_engine_new (void) |
Create the IM encryption engine. More... | |
void | linphone_info_message_add_header (LinphoneInfoMessage *im, const char *name, const char *value) |
Add a header to an info message to be sent. More... | |
const char * | linphone_info_message_get_header (const LinphoneInfoMessage *im, const char *name) |
Obtain a header value from a received info message. More... | |
void | linphone_info_message_set_content (LinphoneInfoMessage *im, const LinphoneContent *content) |
Assign a content to the info message. More... | |
const LinphoneContent * | linphone_info_message_get_content (const LinphoneInfoMessage *im) |
Returns the info message's content as a LinphoneContent structure. | |
LinphoneInfoMessage * | linphone_info_message_ref (LinphoneInfoMessage *im) |
Take a reference on a LinphoneInfoMessage. | |
void | linphone_info_message_unref (LinphoneInfoMessage *im) |
Release a reference on a LinphoneInfoMessage. | |
LINPHONE_DEPRECATED void | linphone_info_message_destroy (LinphoneInfoMessage *im) |
Destroy a LinphoneInfoMessage. More... | |
LinphoneInfoMessage * | linphone_info_message_copy (const LinphoneInfoMessage *orig) |
LinphoneConfig * | linphone_config_new (const char *filename) |
Instantiates a LinphoneConfig object from a user config file. More... | |
LinphoneConfig * | linphone_config_new_from_buffer (const char *buffer) |
Instantiates a LinphoneConfig object from a user provided buffer. More... | |
LinphoneConfig * | linphone_config_new_with_factory (const char *config_filename, const char *factory_config_filename) |
Instantiates a LinphoneConfig object from a user config file and a factory config file. More... | |
LinphoneStatus | linphone_config_read_file (LinphoneConfig *lpconfig, const char *filename) |
Reads a user config file and fill the LinphoneConfig with the read config values. More... | |
const char * | linphone_config_load_from_xml_file (LinphoneConfig *lpc, const char *filename) |
Reads a xml config file and fill the LinphoneConfig with the read config dynamic values. More... | |
LinphoneStatus | linphone_config_load_from_xml_string (LpConfig *lpc, const char *buffer) |
Reads a xml config string and fill the LinphoneConfig with the read config dynamic values. More... | |
const char * | linphone_config_get_string (const LinphoneConfig *lpconfig, const char *section, const char *key, const char *default_string) |
Retrieves a configuration item as a string, given its section, key, and default value. More... | |
bctbx_list_t * | linphone_config_get_string_list (const LinphoneConfig *lpconfig, const char *section, const char *key, bctbx_list_t *default_list) |
Retrieves a configuration item as a list of strings, given its section, key, and default value. More... | |
bool_t | linphone_config_get_range (const LinphoneConfig *lpconfig, const char *section, const char *key, int *min, int *max, int default_min, int default_max) |
Retrieves a configuration item as a range, given its section, key, and default min and max values. More... | |
int | linphone_config_get_int (const LinphoneConfig *lpconfig, const char *section, const char *key, int default_value) |
Retrieves a configuration item as an integer, given its section, key, and default value. More... | |
int64_t | linphone_config_get_int64 (const LinphoneConfig *lpconfig, const char *section, const char *key, int64_t default_value) |
Retrieves a configuration item as a 64 bit integer, given its section, key, and default value. More... | |
float | linphone_config_get_float (const LinphoneConfig *lpconfig, const char *section, const char *key, float default_value) |
Retrieves a configuration item as a float, given its section, key, and default value. More... | |
void | linphone_config_set_string (LinphoneConfig *lpconfig, const char *section, const char *key, const char *value) |
Sets a string config item. | |
void | linphone_config_set_string_list (LinphoneConfig *lpconfig, const char *section, const char *key, const bctbx_list_t *value) |
Sets a string list config item. More... | |
void | linphone_config_set_range (LinphoneConfig *lpconfig, const char *section, const char *key, int min_value, int max_value) |
Sets a range config item. | |
void | linphone_config_set_int (LinphoneConfig *lpconfig, const char *section, const char *key, int value) |
Sets an integer config item. | |
void | linphone_config_set_int_hex (LinphoneConfig *lpconfig, const char *section, const char *key, int value) |
Sets an integer config item, but store it as hexadecimal. | |
void | linphone_config_set_int64 (LinphoneConfig *lpconfig, const char *section, const char *key, int64_t value) |
Sets a 64 bits integer config item. | |
void | linphone_config_set_float (LinphoneConfig *lpconfig, const char *section, const char *key, float value) |
Sets a float config item. | |
LinphoneStatus | linphone_config_sync (LinphoneConfig *lpconfig) |
Writes the config file to disk. | |
int | linphone_config_has_section (const LinphoneConfig *lpconfig, const char *section) |
Returns 1 if a given section is present in the configuration. | |
void | linphone_config_clean_section (LinphoneConfig *lpconfig, const char *section) |
Removes every pair of key,value in a section and remove the section. | |
int | linphone_config_has_entry (const LinphoneConfig *lpconfig, const char *section, const char *key) |
Returns 1 if a given section with a given key is present in the configuration. More... | |
void | linphone_config_clean_entry (LinphoneConfig *lpconfig, const char *section, const char *key) |
Removes entries for key,value in a section. More... | |
const char ** | linphone_config_get_sections_names (LinphoneConfig *lpconfig) |
Returns the list of sections' names in the LinphoneConfig. More... | |
void | linphone_config_for_each_section (const LinphoneConfig *lpconfig, void(*callback)(const char *section, void *ctx), void *ctx) |
Call a function for each section present in the configuration. | |
void | linphone_config_for_each_entry (const LinphoneConfig *lpconfig, const char *section, void(*callback)(const char *entry, void *ctx), void *ctx) |
Call a function for each entry present in a section configuration. | |
bool_t | linphone_config_needs_commit (const LinphoneConfig *lpconfig) |
void | linphone_config_destroy (LinphoneConfig *cfg) |
int | linphone_config_get_default_int (const LinphoneConfig *lpconfig, const char *section, const char *key, int default_value) |
Retrieves a default configuration item as an integer, given its section, key, and default value. More... | |
int64_t | linphone_config_get_default_int64 (const LinphoneConfig *lpconfig, const char *section, const char *key, int64_t default_value) |
Retrieves a default configuration item as a 64 bit integer, given its section, key, and default value. More... | |
float | linphone_config_get_default_float (const LinphoneConfig *lpconfig, const char *section, const char *key, float default_value) |
Retrieves a default configuration item as a float, given its section, key, and default value. More... | |
const char * | linphone_config_get_default_string (const LinphoneConfig *lpconfig, const char *section, const char *key, const char *default_value) |
Retrieves a default configuration item as a string, given its section, key, and default value. More... | |
const char * | linphone_config_get_section_param_string (const LinphoneConfig *lpconfig, const char *section, const char *key, const char *default_value) |
Retrieves a section parameter item as a string, given its section and key. More... | |
LinphoneConfig * | linphone_config_ref (LinphoneConfig *lpconfig) |
increment reference count | |
void | linphone_config_unref (LinphoneConfig *lpconfig) |
Decrement reference count, which will eventually free the object. | |
void | linphone_config_write_relative_file (const LinphoneConfig *lpconfig, const char *filename, const char *data) |
Write a string in a file placed relatively with the Linphone configuration file. More... | |
LinphoneStatus | linphone_config_read_relative_file (const LinphoneConfig *lpconfig, const char *filename, char *data, size_t max_length) |
Read a string from a file placed beside the Linphone configuration file. More... | |
bool_t | linphone_config_relative_file_exists (const LinphoneConfig *lpconfig, const char *filename) |
char * | linphone_config_dump_as_xml (const LinphoneConfig *lpconfig) |
Dumps the LinphoneConfig as XML into a buffer. More... | |
char * | linphone_config_dump (const LinphoneConfig *lpconfig) |
Dumps the LinphoneConfig as INI into a buffer. More... | |
bool_t | linphone_config_get_overwrite_flag_for_entry (const LinphoneConfig *lpconfig, const char *section, const char *key) |
Retrieves the overwrite flag for a config item. | |
void | linphone_config_set_overwrite_flag_for_entry (LinphoneConfig *lpconfig, const char *section, const char *key, bool_t value) |
Sets the overwrite flag for a config item (used when dumping config as xml) | |
bool_t | linphone_config_get_overwrite_flag_for_section (const LinphoneConfig *lpconfig, const char *section) |
Retrieves the overwrite flag for a config section. | |
void | linphone_config_set_overwrite_flag_for_section (LinphoneConfig *lpconfig, const char *section, bool_t value) |
Sets the overwrite flag for a config section (used when dumping config as xml) | |
bool_t | linphone_config_get_skip_flag_for_entry (const LinphoneConfig *lpconfig, const char *section, const char *key) |
Retrieves the skip flag for a config item. | |
void | linphone_config_set_skip_flag_for_entry (LinphoneConfig *lpconfig, const char *section, const char *key, bool_t value) |
Sets the skip flag for a config item (used when dumping config as xml) | |
bool_t | linphone_config_get_skip_flag_for_section (const LinphoneConfig *lpconfig, const char *section) |
Retrieves the skip flag for a config section. | |
void | linphone_config_set_skip_flag_for_section (LinphoneConfig *lpconfig, const char *section, bool_t value) |
Sets the skip flag for a config section (used when dumping config as xml) | |
LinphoneDictionary * | lp_config_section_to_dict (const LpConfig *lpconfig, const char *section) |
Converts a config section into a dictionary. More... | |
void | lp_config_load_dict_to_section (LpConfig *lpconfig, const char *section, const LinphoneDictionary *dict) |
Loads a dictionary into a section of the lpconfig. More... | |
const char * | linphone_configuring_state_to_string (LinphoneConfiguringState cs) |
Converts a _LinphoneConfiguringState enum to a string. | |
const char * | linphone_reason_to_string (LinphoneReason err) |
Converts a LinphoneReason enum to a string. More... | |
const char * | linphone_transport_to_string (LinphoneTransportType transport) |
Converts a LinphoneTransportType enum to a lowercase string. | |
LinphoneTransportType | linphone_transport_parse (const char *transport) |
Converts a lowercase string to a LinphoneTransportType enum. More... | |
LinphoneReason | linphone_error_code_to_reason (int err) |
Converts an error code to a LinphoneReason. More... | |
int | linphone_reason_to_error_code (LinphoneReason reason) |
Converts a LinphoneReason to an error code. More... | |
LinphoneRange * | linphone_range_ref (LinphoneRange *range) |
Increment refcount. More... | |
void | linphone_range_unref (LinphoneRange *range) |
Decrement refcount and possibly free the object. More... | |
void * | linphone_range_get_user_data (const LinphoneRange *range) |
Gets the user data in the LinphoneRange object. More... | |
void | linphone_range_set_user_data (LinphoneRange *range, void *data) |
Sets the user data in the LinphoneRange object. More... | |
int | linphone_range_get_min (const LinphoneRange *range) |
Gets the lower value of the range. More... | |
int | linphone_range_get_max (const LinphoneRange *range) |
Gets the higher value of the range. More... | |
void | linphone_range_set_min (LinphoneRange *range, int min) |
Sets the lower value of the range. More... | |
void | linphone_range_set_max (LinphoneRange *range, int max) |
Sets the higher value of the range. More... | |
LinphoneXmlRpcRequest * | linphone_xml_rpc_request_new (LinphoneXmlRpcArgType return_type, const char *method) |
Create a new LinphoneXmlRpcRequest object. More... | |
LinphoneXmlRpcRequest * | linphone_xml_rpc_request_new_with_args (LinphoneXmlRpcArgType return_type, const char *method,...) |
Create a new LinphoneXmlRpcRequest object giving the arguments to the method call. More... | |
LinphoneXmlRpcRequest * | linphone_xml_rpc_request_ref (LinphoneXmlRpcRequest *request) |
Acquire a reference to the XML-RPC request. More... | |
void | linphone_xml_rpc_request_unref (LinphoneXmlRpcRequest *request) |
Release reference to the XML-RPC request. More... | |
void * | linphone_xml_rpc_request_get_user_data (const LinphoneXmlRpcRequest *request) |
Retrieve the user pointer associated with the XML-RPC request. More... | |
void | linphone_xml_rpc_request_set_user_data (LinphoneXmlRpcRequest *request, void *ud) |
Assign a user pointer to the XML-RPC request. More... | |
void | linphone_xml_rpc_request_add_int_arg (LinphoneXmlRpcRequest *request, int value) |
Add an integer argument to an XML-RPC request. More... | |
void | linphone_xml_rpc_request_add_string_arg (LinphoneXmlRpcRequest *request, const char *value) |
Add a string argument to an XML-RPC request. More... | |
LinphoneXmlRpcRequestCbs * | linphone_xml_rpc_request_get_callbacks (const LinphoneXmlRpcRequest *request) |
Get the LinphoneXmlRpcRequestCbs object associated with a LinphoneXmlRpcRequest. More... | |
const char * | linphone_xml_rpc_request_get_content (const LinphoneXmlRpcRequest *request) |
Get the content of the XML-RPC request. More... | |
LinphoneXmlRpcStatus | linphone_xml_rpc_request_get_status (const LinphoneXmlRpcRequest *request) |
Get the status of the XML-RPC request. More... | |
int | linphone_xml_rpc_request_get_int_response (const LinphoneXmlRpcRequest *request) |
Get the response to an XML-RPC request sent with linphone_xml_rpc_session_send_request() and returning an integer response. More... | |
const char * | linphone_xml_rpc_request_get_string_response (const LinphoneXmlRpcRequest *request) |
Get the response to an XML-RPC request sent with linphone_xml_rpc_session_send_request() and returning a string response. More... | |
LinphoneXmlRpcSession * | linphone_xml_rpc_session_new (LinphoneCore *core, const char *url) |
Create a new LinphoneXmlRpcSession object. More... | |
LinphoneXmlRpcSession * | linphone_xml_rpc_session_ref (LinphoneXmlRpcSession *session) |
Acquire a reference to the XML-RPC session. More... | |
void | linphone_xml_rpc_session_unref (LinphoneXmlRpcSession *session) |
Release reference to the XML-RPC session. More... | |
void * | linphone_xml_rpc_session_get_user_data (const LinphoneXmlRpcSession *session) |
Retrieve the user pointer associated with the XML-RPC session. More... | |
void | linphone_xml_rpc_session_set_user_data (LinphoneXmlRpcSession *session, void *ud) |
Assign a user pointer to the XML-RPC session. More... | |
void | linphone_xml_rpc_session_send_request (LinphoneXmlRpcSession *session, LinphoneXmlRpcRequest *request) |
Send an XML-RPC request. More... | |
void | linphone_xml_rpc_session_release (LinphoneXmlRpcSession *session) |
Stop and unref an XML rpc session. More... | |
LinphoneXmlRpcRequestCbs * | linphone_xml_rpc_request_cbs_ref (LinphoneXmlRpcRequestCbs *cbs) |
Acquire a reference to a LinphoneXmlRpcRequestCbs object. More... | |
void | linphone_xml_rpc_request_cbs_unref (LinphoneXmlRpcRequestCbs *cbs) |
Release a reference to a LinphoneXmlRpcRequestCbs object. More... | |
void * | linphone_xml_rpc_request_cbs_get_user_data (const LinphoneXmlRpcRequestCbs *cbs) |
Retrieve the user pointer associated with a LinphoneXmlRpcRequestCbs object. More... | |
void | linphone_xml_rpc_request_cbs_set_user_data (LinphoneXmlRpcRequestCbs *cbs, void *ud) |
Assign a user pointer to a LinphoneXmlRpcRequestCbs object. More... | |
LinphoneXmlRpcRequestCbsResponseCb | linphone_xml_rpc_request_cbs_get_response (const LinphoneXmlRpcRequestCbs *cbs) |
Get the response callback. More... | |
void | linphone_xml_rpc_request_cbs_set_response (LinphoneXmlRpcRequestCbs *cbs, LinphoneXmlRpcRequestCbsResponseCb cb) |
Set the response callback. More... | |
Miscenalleous: logs, version strings, config storage.
typedef struct _LpConfig LinphoneConfig |
The LinphoneConfig object is used to manipulate a configuration file.
The format of the configuration file is a .ini like format:
Example:
typedef struct _LinphoneErrorInfo LinphoneErrorInfo |
Object representing full details about a signaling error or status.
All LinphoneErrorInfo object returned by the liblinphone API are readonly and transcients. For safety they must be used immediately after obtaining them. Any other function call to the liblinphone may change their content or invalidate the pointer.
typedef struct _LinphoneHeaders LinphoneHeaders |
Object representing a chain of protocol headers.
It provides read/write access to the headers of the underlying protocol.
typedef int(* LinphoneImEncryptionEngineCbsDownloadingFileCb)(LinphoneImEncryptionEngine *engine, LinphoneChatMessage *msg, size_t offset, const uint8_t *buffer, size_t size, uint8_t *decrypted_buffer) |
Callback to decrypt downloading file.
engine | LinphoneImEncryptionEngine object | |
msg | LinphoneChatMessage object | |
offset | The current offset of the upload | |
[in] | buffer | Encrypted data buffer |
[in] | size | Size of the encrypted data buffer and maximum size of the decrypted data buffer |
[out] | decrypted_buffer | Buffer in which to write the decrypted data which maximum size is size |
typedef void(* LinphoneImEncryptionEngineCbsGenerateFileTransferKeyCb)(LinphoneImEncryptionEngine *engine, LinphoneChatRoom *room, LinphoneChatMessage *msg) |
Callback to generate the key used to encrypt the files before uploading them Key can be stored in the LinphoneContent object inside the LinphoneChatMessage using linphone_content_set_key.
engine | LinphoneImEncryptionEngine object |
room | LinphoneChatRoom object |
msg | LinphoneChatMessage object |
typedef int(* LinphoneImEncryptionEngineCbsIncomingMessageCb)(LinphoneImEncryptionEngine *engine, LinphoneChatRoom *room, LinphoneChatMessage *msg) |
Callback to decrypt incoming LinphoneChatMessage.
engine | ImEncryptionEngine object |
room | LinphoneChatRoom object |
msg | LinphoneChatMessage object |
typedef bool_t(* LinphoneImEncryptionEngineCbsIsEncryptionEnabledForFileTransferCb)(LinphoneImEncryptionEngine *engine, LinphoneChatRoom *room) |
Callback to know whether or not the engine will encrypt files before uploading them.
engine | LinphoneImEncryptionEngine object |
room | LinphoneChatRoom object |
typedef int(* LinphoneImEncryptionEngineCbsOutgoingMessageCb)(LinphoneImEncryptionEngine *engine, LinphoneChatRoom *room, LinphoneChatMessage *msg) |
Callback to encrypt outgoing LinphoneChatMessage.
engine | LinphoneImEncryptionEngine object |
room | LinphoneChatRoom object |
msg | LinphoneChatMessage object |
typedef int(* LinphoneImEncryptionEngineCbsUploadingFileCb)(LinphoneImEncryptionEngine *engine, LinphoneChatMessage *msg, size_t offset, const uint8_t *buffer, size_t *size, uint8_t *encrypted_buffer) |
Callback to encrypt uploading file.
engine | LinphoneImEncryptionEngine object | |
msg | LinphoneChatMessage object | |
offset | The current offset of the upload | |
[in] | buffer | Encrypted data buffer |
[in,out] | size | Size of the plain data buffer and the size of the encrypted data buffer once encryption is done |
[out] | encrypted_buffer | Buffer in which to write the encrypted data which maxmimum size is size |
typedef enum _LinphoneReason LinphoneReason |
Enum describing various failure reasons or contextual information for some events.
typedef void(* LinphoneXmlRpcRequestCbsResponseCb)(LinphoneXmlRpcRequest *request) |
Callback used to notify the response to an XML-RPC request.
[in] | request | LinphoneXmlRpcRequest object |
enum _LinphoneReason |
Enum describing various failure reasons or contextual information for some events.
enum _LinphoneToneID |
const uint8_t* linphone_buffer_get_content | ( | const LinphoneBuffer * | buffer | ) |
Get the content of the data buffer.
[in] | buffer | LinphoneBuffer object. |
size_t linphone_buffer_get_size | ( | const LinphoneBuffer * | buffer | ) |
Get the size of the content of the data buffer.
[in] | buffer | LinphoneBuffer object. |
const char* linphone_buffer_get_string_content | ( | const LinphoneBuffer * | buffer | ) |
Get the string content of the data buffer.
[in] | buffer | LinphoneBuffer object |
void* linphone_buffer_get_user_data | ( | const LinphoneBuffer * | buffer | ) |
Retrieve the user pointer associated with the buffer.
[in] | buffer | LinphoneBuffer object. |
bool_t linphone_buffer_is_empty | ( | const LinphoneBuffer * | buffer | ) |
Tell whether the LinphoneBuffer is empty.
[in] | buffer | LinphoneBuffer object |
LinphoneBuffer* linphone_buffer_new | ( | void | ) |
Create a new empty LinphoneBuffer object.
LinphoneBuffer* linphone_buffer_new_from_data | ( | const uint8_t * | data, |
size_t | size | ||
) |
Create a new LinphoneBuffer object from existing data.
[in] | data | The initial data to store in the LinphoneBuffer. |
[in] | size | The size of the initial data to stroe in the LinphoneBuffer. |
LinphoneBuffer* linphone_buffer_new_from_string | ( | const char * | data | ) |
Create a new LinphoneBuffer object from a string.
[in] | data | The initial string content of the LinphoneBuffer. |
LinphoneBuffer* linphone_buffer_ref | ( | LinphoneBuffer * | buffer | ) |
Acquire a reference to the buffer.
[in] | buffer | LinphoneBuffer object. |
void linphone_buffer_set_content | ( | LinphoneBuffer * | buffer, |
const uint8_t * | content, | ||
size_t | size | ||
) |
Set the content of the data buffer.
[in] | buffer | LinphoneBuffer object. |
[in] | content | The content of the data buffer. |
[in] | size | The size of the content of the data buffer. |
void linphone_buffer_set_size | ( | LinphoneBuffer * | buffer, |
size_t | size | ||
) |
Set the size of the content of the data buffer.
[in] | buffer | LinphoneBuffer object |
[in] | size | The size of the content of the data buffer. |
void linphone_buffer_set_string_content | ( | LinphoneBuffer * | buffer, |
const char * | content | ||
) |
Set the string content of the data buffer.
[in] | buffer | LinphoneBuffer object. |
[in] | content | The string content of the data buffer. |
void linphone_buffer_set_user_data | ( | LinphoneBuffer * | buffer, |
void * | ud | ||
) |
Assign a user pointer to the buffer.
[in] | buffer | LinphoneBuffer object. |
[in] | ud | The user pointer to associate with the buffer. |
void linphone_buffer_unref | ( | LinphoneBuffer * | buffer | ) |
Release reference to the buffer.
[in] | buffer | LinphoneBuffer object. |
void* linphone_call_stats_get_user_data | ( | const LinphoneCallStats * | stats | ) |
Gets the user data in the LinphoneCallStats object.
[in] | stats | the LinphoneCallStats |
LinphoneCallStats* linphone_call_stats_ref | ( | LinphoneCallStats * | stats | ) |
Increment refcount.
[in] | stats | LinphoneCallStats object |
void linphone_call_stats_set_user_data | ( | LinphoneCallStats * | stats, |
void * | data | ||
) |
Sets the user data in the LinphoneCallStats object.
[in] | stats | the LinphoneCallStats object |
[in] | data | the user data |
void linphone_call_stats_unref | ( | LinphoneCallStats * | stats | ) |
Decrement refcount and possibly free the object.
[in] | stats | LinphoneCallStats object |
int linphone_chat_message_set_text | ( | LinphoneChatMessage * | msg, |
const char * | text | ||
) |
Set a chat message text to be sent by linphone_chat_room_send_message.
[in] | msg | LinphoneChatMessage |
[in] | text | Const char * |
void linphone_config_clean_entry | ( | LinphoneConfig * | lpconfig, |
const char * | section, | ||
const char * | key | ||
) |
Removes entries for key,value in a section.
[in] | lpconfig | The LinphoneConfig object |
[in] | section | |
[in] | key |
char* linphone_config_dump | ( | const LinphoneConfig * | lpconfig | ) |
Dumps the LinphoneConfig as INI into a buffer.
[in] | lpconfig | The LinphoneConfig object |
char* linphone_config_dump_as_xml | ( | const LinphoneConfig * | lpconfig | ) |
Dumps the LinphoneConfig as XML into a buffer.
[in] | lpconfig | The LinphoneConfig object |
float linphone_config_get_default_float | ( | const LinphoneConfig * | lpconfig, |
const char * | section, | ||
const char * | key, | ||
float | default_value | ||
) |
Retrieves a default configuration item as a float, given its section, key, and default value.
The default float value is returned if the config item isn't found.
int linphone_config_get_default_int | ( | const LinphoneConfig * | lpconfig, |
const char * | section, | ||
const char * | key, | ||
int | default_value | ||
) |
Retrieves a default configuration item as an integer, given its section, key, and default value.
The default integer value is returned if the config item isn't found.
int64_t linphone_config_get_default_int64 | ( | const LinphoneConfig * | lpconfig, |
const char * | section, | ||
const char * | key, | ||
int64_t | default_value | ||
) |
Retrieves a default configuration item as a 64 bit integer, given its section, key, and default value.
The default integer value is returned if the config item isn't found.
const char* linphone_config_get_default_string | ( | const LinphoneConfig * | lpconfig, |
const char * | section, | ||
const char * | key, | ||
const char * | default_value | ||
) |
Retrieves a default configuration item as a string, given its section, key, and default value.
The default value string is returned if the config item isn't found.
float linphone_config_get_float | ( | const LinphoneConfig * | lpconfig, |
const char * | section, | ||
const char * | key, | ||
float | default_value | ||
) |
Retrieves a configuration item as a float, given its section, key, and default value.
The default float value is returned if the config item isn't found.
int linphone_config_get_int | ( | const LinphoneConfig * | lpconfig, |
const char * | section, | ||
const char * | key, | ||
int | default_value | ||
) |
Retrieves a configuration item as an integer, given its section, key, and default value.
The default integer value is returned if the config item isn't found.
int64_t linphone_config_get_int64 | ( | const LinphoneConfig * | lpconfig, |
const char * | section, | ||
const char * | key, | ||
int64_t | default_value | ||
) |
Retrieves a configuration item as a 64 bit integer, given its section, key, and default value.
The default integer value is returned if the config item isn't found.
bool_t linphone_config_get_range | ( | const LinphoneConfig * | lpconfig, |
const char * | section, | ||
const char * | key, | ||
int * | min, | ||
int * | max, | ||
int | default_min, | ||
int | default_max | ||
) |
Retrieves a configuration item as a range, given its section, key, and default min and max values.
const char* linphone_config_get_section_param_string | ( | const LinphoneConfig * | lpconfig, |
const char * | section, | ||
const char * | key, | ||
const char * | default_value | ||
) |
Retrieves a section parameter item as a string, given its section and key.
The default value string is returned if the config item isn't found.
const char** linphone_config_get_sections_names | ( | LinphoneConfig * | lpconfig | ) |
Returns the list of sections' names in the LinphoneConfig.
[in] | lpconfig | The LinphoneConfig object |
const char* linphone_config_get_string | ( | const LinphoneConfig * | lpconfig, |
const char * | section, | ||
const char * | key, | ||
const char * | default_string | ||
) |
Retrieves a configuration item as a string, given its section, key, and default value.
The default value string is returned if the config item isn't found.
bctbx_list_t* linphone_config_get_string_list | ( | const LinphoneConfig * | lpconfig, |
const char * | section, | ||
const char * | key, | ||
bctbx_list_t * | default_list | ||
) |
Retrieves a configuration item as a list of strings, given its section, key, and default value.
The default value is returned if the config item is not found.
[in] | lpconfig | A LinphoneConfig object |
[in] | section | The section from which to retrieve a configuration item |
[in] | key | The name of the configuration item to retrieve |
[in] | default_list | A list of const char * objects. |
int linphone_config_has_entry | ( | const LinphoneConfig * | lpconfig, |
const char * | section, | ||
const char * | key | ||
) |
Returns 1 if a given section with a given key is present in the configuration.
[in] | lpconfig | The LinphoneConfig object |
[in] | section | |
[in] | key |
const char* linphone_config_load_from_xml_file | ( | LinphoneConfig * | lpc, |
const char * | filename | ||
) |
Reads a xml config file and fill the LinphoneConfig with the read config dynamic values.
lpconfig | The LinphoneConfig object to fill with the content of the file |
filename | The filename of the config file to read to fill the LinphoneConfig |
LinphoneStatus linphone_config_load_from_xml_string | ( | LpConfig * | lpc, |
const char * | buffer | ||
) |
Reads a xml config string and fill the LinphoneConfig with the read config dynamic values.
lpconfig | The LinphoneConfig object to fill with the content of the file |
buffer | The string of the config file to fill the LinphoneConfig |
LinphoneConfig* linphone_config_new | ( | const char * | filename | ) |
Instantiates a LinphoneConfig object from a user config file.
The caller of this constructor owns a reference. linphone_config_unref() must be called when this object is no longer needed.
filename | the filename of the config file to read to fill the instantiated LinphoneConfig |
LinphoneConfig* linphone_config_new_from_buffer | ( | const char * | buffer | ) |
Instantiates a LinphoneConfig object from a user provided buffer.
The caller of this constructor owns a reference. linphone_config_unref() must be called when this object is no longer needed.
buffer | the buffer from which the LinphoneConfig will be retrieved. We expect the buffer to be null-terminated. |
LinphoneConfig* linphone_config_new_with_factory | ( | const char * | config_filename, |
const char * | factory_config_filename | ||
) |
Instantiates a LinphoneConfig object from a user config file and a factory config file.
The caller of this constructor owns a reference. linphone_config_unref() must be called when this object is no longer needed.
config_filename | the filename of the user config file to read to fill the instantiated LinphoneConfig |
factory_config_filename | the filename of the factory config file to read to fill the instantiated LinphoneConfig |
The user config file is read first to fill the LinphoneConfig and then the factory config file is read. Therefore the configuration parameters defined in the user config file will be overwritten by the parameters defined in the factory config file.
LinphoneStatus linphone_config_read_file | ( | LinphoneConfig * | lpconfig, |
const char * | filename | ||
) |
Reads a user config file and fill the LinphoneConfig with the read config values.
lpconfig | The LinphoneConfig object to fill with the content of the file |
filename | The filename of the config file to read to fill the LinphoneConfig |
LinphoneStatus linphone_config_read_relative_file | ( | const LinphoneConfig * | lpconfig, |
const char * | filename, | ||
char * | data, | ||
size_t | max_length | ||
) |
Read a string from a file placed beside the Linphone configuration file.
lpconfig | LinphoneConfig instance used as a reference |
filename | Name of the file where data will be read from. The name is relative to the place of the config file |
data | Buffer where read string will be stored |
max_length | Length of the buffer |
bool_t linphone_config_relative_file_exists | ( | const LinphoneConfig * | lpconfig, |
const char * | filename | ||
) |
void linphone_config_set_string_list | ( | LinphoneConfig * | lpconfig, |
const char * | section, | ||
const char * | key, | ||
const bctbx_list_t * | value | ||
) |
Sets a string list config item.
[in] | lpconfig | A LinphoneConfig object |
[in] | section | The name of the section to put the configuration item into |
[in] | key | The name of the configuration item to set |
[in] | value | A list of const char * objects. The value to set |
void linphone_config_write_relative_file | ( | const LinphoneConfig * | lpconfig, |
const char * | filename, | ||
const char * | data | ||
) |
Write a string in a file placed relatively with the Linphone configuration file.
lpconfig | LinphoneConfig instance used as a reference |
filename | Name of the file where to write data. The name is relative to the place of the config file |
data | String to write |
LinphoneContent* linphone_content_find_part_by_header | ( | const LinphoneContent * | content, |
const char * | header_name, | ||
const char * | header_value | ||
) |
Find a part from a multipart content looking for a part header with a specified value.
[in] | content | LinphoneContent object. |
[in] | header_name | The name of the header to look for. |
[in] | header_value | The value of the header to look for. |
void* linphone_content_get_buffer | ( | const LinphoneContent * | content | ) |
Get the content data buffer, usually a string.
[in] | content | LinphoneContent object. |
const char* linphone_content_get_custom_header | ( | const LinphoneContent * | content, |
const char * | header_name | ||
) |
Get a custom header value of a content.
[in] | content | LinphoneContent object. |
[in] | header_name | The name of the header to get the value from. |
const char* linphone_content_get_encoding | ( | const LinphoneContent * | content | ) |
Get the encoding of the data buffer, for example "gzip".
[in] | content | LinphoneContent object. |
const char* linphone_content_get_name | ( | const LinphoneContent * | content | ) |
Get the name associated with a RCS file transfer message.
It is used to store the original filename of the file to be downloaded from server.
[in] | content | LinphoneContent object. |
LinphoneContent* linphone_content_get_part | ( | const LinphoneContent * | content, |
int | idx | ||
) |
Get a part from a multipart content according to its index.
[in] | content | LinphoneContent object. |
[in] | idx | The index of the part to get. |
size_t linphone_content_get_size | ( | const LinphoneContent * | content | ) |
Get the content data buffer size, excluding null character despite null character is always set for convenience.
[in] | content | LinphoneContent object. |
const char* linphone_content_get_string_buffer | ( | const LinphoneContent * | content | ) |
Get the string content data buffer.
[in] | content | LinphoneContent object |
const char* linphone_content_get_subtype | ( | const LinphoneContent * | content | ) |
Get the mime subtype of the content data.
[in] | content | LinphoneContent object. |
const char* linphone_content_get_type | ( | const LinphoneContent * | content | ) |
Get the mime type of the content data.
[in] | content | LinphoneContent object. |
void* linphone_content_get_user_data | ( | const LinphoneContent * | content | ) |
Retrieve the user pointer associated with the content.
[in] | content | LinphoneContent object. |
bool_t linphone_content_is_multipart | ( | const LinphoneContent * | content | ) |
Tell whether a content is a multipart content.
[in] | content | LinphoneContent object. |
LinphoneContent* linphone_content_ref | ( | LinphoneContent * | content | ) |
Acquire a reference to the content.
[in] | content | LinphoneContent object. |
void linphone_content_set_buffer | ( | LinphoneContent * | content, |
const void * | buffer, | ||
size_t | size | ||
) |
Set the content data buffer, usually a string.
[in] | content | LinphoneContent object. |
[in] | buffer | The content data buffer. |
[in] | size | The size of the content data buffer. |
void linphone_content_set_encoding | ( | LinphoneContent * | content, |
const char * | encoding | ||
) |
Set the encoding of the data buffer, for example "gzip".
[in] | content | LinphoneContent object. |
[in] | encoding | The encoding of the data buffer. |
void linphone_content_set_name | ( | LinphoneContent * | content, |
const char * | name | ||
) |
Set the name associated with a RCS file transfer message.
It is used to store the original filename of the file to be downloaded from server.
[in] | content | LinphoneContent object. |
[in] | name | The name of the content. |
void linphone_content_set_size | ( | LinphoneContent * | content, |
size_t | size | ||
) |
Set the content data size, excluding null character despite null character is always set for convenience.
[in] | content | LinphoneContent object |
[in] | size | The content data buffer size. |
void linphone_content_set_string_buffer | ( | LinphoneContent * | content, |
const char * | buffer | ||
) |
Set the string content data buffer.
[in] | content | LinphoneContent object. |
[in] | buffer | The string content data buffer. |
void linphone_content_set_subtype | ( | LinphoneContent * | content, |
const char * | subtype | ||
) |
Set the mime subtype of the content data.
[in] | content | LinphoneContent object. |
[in] | subtype | The mime subtype of the content data, for example "html". |
void linphone_content_set_type | ( | LinphoneContent * | content, |
const char * | type | ||
) |
Set the mime type of the content data.
[in] | content | LinphoneContent object. |
[in] | type | The mime type of the content data, for example "application". |
void linphone_content_set_user_data | ( | LinphoneContent * | content, |
void * | ud | ||
) |
Assign a user pointer to the content.
[in] | content | LinphoneContent object. |
[in] | ud | The user pointer to associate with the content. |
void linphone_content_unref | ( | LinphoneContent * | content | ) |
Release reference to the content.
[in] | content | LinphoneContent object. |
void linphone_core_check_for_update | ( | LinphoneCore * | lc, |
const char * | current_version | ||
) |
Checks if a new version of the application is available.
lc | LinphoneCore object |
current_version | The current version of the application |
LinphoneConfig* linphone_core_create_config | ( | LinphoneCore * | lc, |
const char * | filename | ||
) |
Create a LinphoneConfig object from a user config file.
[in] | lc | LinphoneCore object |
[in] | filename | The filename of the config file to read to fill the instantiated LinphoneConfig |
LinphoneContent* linphone_core_create_content | ( | LinphoneCore * | lc | ) |
Create a content with default values from Linphone core.
[in] | lc | LinphoneCore object |
LinphoneInfoMessage* linphone_core_create_info_message | ( | LinphoneCore * | lc | ) |
Creates an empty info message.
lc | the LinphoneCore |
The info message can later be filled with information using linphone_info_message_add_header() or linphone_info_message_set_content(), and finally sent with linphone_core_send_info_message().
LinphonePlayer* linphone_core_create_local_player | ( | LinphoneCore * | lc, |
const char * | sound_card_name, | ||
const char * | video_display_name, | ||
void * | window_id | ||
) |
Create an independent media file player.
This player support WAVE and MATROSKA formats.
lc | A LinphoneCore object |
sound_card_name | Playback sound card. If NULL, the ringer sound card set in LinphoneCore will be used |
video_display_name | Video display. If NULL, the video display set in LinphoneCore will be used |
window_id | Id of the drawing window. Depend of video out |
LINPHONE_DEPRECATED LinphoneConfig* linphone_core_create_lp_config | ( | LinphoneCore * | lc, |
const char * | filename | ||
) |
Create a LpConfig object from a user config file.
[in] | lc | LinphoneCore object |
[in] | filename | The filename of the config file to read to fill the instantiated LpConfig |
LinphoneConfig* linphone_core_get_config | ( | LinphoneCore * | lc | ) |
Returns the LpConfig object used to manage the storage (config) file.
[in] | lc | LinphoneCore object The application can use the LpConfig object to insert its own private sections and pairs of key=value in the configuration file. |
const char* linphone_core_get_file_transfer_server | ( | LinphoneCore * | core | ) |
Get the globaly set http file transfer server to be used for content type application/vnd.gsma.rcs-ft-http+xml.
[in] | core | LinphoneCore from which to get the server_url |
LinphoneAddress* linphone_core_interpret_url | ( | LinphoneCore * | lc, |
const char * | url | ||
) |
See linphone_proxy_config_normalize_sip_uri for documentation.
Default proxy config is used to parse the address.
LinphoneStatus linphone_core_play_local | ( | LinphoneCore * | lc, |
const char * | audiofile | ||
) |
Plays an audio file to the local user.
This function works at any time, during calls, or when no calls are running. It doesn't request the underlying audio system to support multiple playback streams.
[in] | lc | LinphoneCore object |
[in] | audiofile | The path to an audio file in wav PCM 16 bit format |
void linphone_core_set_call_error_tone | ( | LinphoneCore * | lc, |
LinphoneReason | reason, | ||
const char * | audiofile | ||
) |
Assign an audio file to be played locally upon call failure, for a given reason.
lc | the core |
reason | the LinphoneReason representing the failure error code. |
audiofile | a wav file to be played when such call failure happens. |
void linphone_core_set_file_transfer_server | ( | LinphoneCore * | core, |
const char * | server_url | ||
) |
Globaly set an http file transfer server to be used for content type application/vnd.gsma.rcs-ft-http+xml.
This value can also be set for a dedicated account using linphone_proxy_config_set_file_transfer_server
[in] | core | LinphoneCore to be modified |
[in] | server_url | URL of the file server like https://file.linphone.org/upload.php |
void linphone_core_set_user_agent | ( | LinphoneCore * | lc, |
const char * | ua_name, | ||
const char * | version | ||
) |
Sets the user agent string used in SIP messages, ideally called just after linphone_core_new() or linphone_core_init().
[in] | lc | LinphoneCore object |
[in] | ua_name | The user agent name |
[in] | version | The user agent version |
LinphoneStatus linphone_core_take_preview_snapshot | ( | LinphoneCore * | lc, |
const char * | file | ||
) |
Take a photo of currently from capture device and write it into a jpeg file.
Note that the snapshot is asynchronous, an application shall not assume that the file is created when the function returns.
lc | the linphone core |
file | a path where to write the jpeg content. |
bool_t linphone_core_vcard_supported | ( | void | ) |
Tells whether VCARD support is builtin.
int linphone_dial_plan_lookup_ccc_from_e164 | ( | const char * | e164 | ) |
Function to get call country code from an e164 number, ex: +33952650121 will return 33.
e164 | phone number |
int linphone_dial_plan_lookup_ccc_from_iso | ( | const char * | iso | ) |
Function to get call country code from ISO 3166-1 alpha-2 code, ex: FR returns 33.
iso | country code alpha2 |
LinphoneReason linphone_error_code_to_reason | ( | int | err | ) |
Converts an error code to a LinphoneReason.
[in] | err | An error code |
const char* linphone_error_info_get_phrase | ( | const LinphoneErrorInfo * | ei | ) |
Get textual phrase from the error info.
This is the text that is provided by the peer in the protocol (SIP).
[in] | ei | ErrorInfo object |
const char* linphone_error_info_get_protocol | ( | const LinphoneErrorInfo * | ei | ) |
Get protocol from the error info.
[in] | ei | ErrorInfo object |
int linphone_error_info_get_protocol_code | ( | const LinphoneErrorInfo * | ei | ) |
Get the status code from the low level protocol (ex a SIP status code).
[in] | ei | ErrorInfo object |
LinphoneReason linphone_error_info_get_reason | ( | const LinphoneErrorInfo * | ei | ) |
LinphoneErrorInfo* linphone_error_info_get_sub_error_info | ( | const LinphoneErrorInfo * | ei | ) |
Get pointer to chained LinphoneErrorInfo set in sub_ei.
It corresponds to a Reason header in a received SIP response.
ei | ErrorInfo object |
const char* linphone_error_info_get_warnings | ( | const LinphoneErrorInfo * | ei | ) |
Provides additional information regarding the failure.
With SIP protocol, the content of "Warning" headers are returned.
[in] | ei | ErrorInfo object |
LinphoneErrorInfo* linphone_error_info_new | ( | void | ) |
Create an empty LinphoneErrorInfo object.
The LinphoneErrorInfo object carries these fields:
LinphoneErrorInfo* linphone_error_info_ref | ( | LinphoneErrorInfo * | ei | ) |
Increment refcount.
[in] | ei | ErrorInfo object |
void linphone_error_info_set | ( | LinphoneErrorInfo * | ei, |
const char * | protocol, | ||
LinphoneReason | reason, | ||
int | code, | ||
const char * | status_string, | ||
const char * | warning | ||
) |
Assign information to a LinphoneErrorInfo object.
[in] | ei | ErrorInfo object |
[in] | protocol | protocol name |
[in] | reason | reason from LinphoneReason enum |
[in] | code | protocol code |
[in] | status_string | description of the reason |
[in] | warning | warning message |
void linphone_error_info_set_phrase | ( | LinphoneErrorInfo * | ei, |
const char * | phrase | ||
) |
Assign phrase to a LinphoneErrorInfo object.
[in] | ei | ErrorInfo object |
[in] | phrase | the phrase explaining the error |
void linphone_error_info_set_protocol | ( | LinphoneErrorInfo * | ei, |
const char * | proto | ||
) |
Assign protocol name to a LinphoneErrorInfo object.
[in] | ei | ErrorInfo object |
[in] | proto | the protocol name |
void linphone_error_info_set_protocol_code | ( | LinphoneErrorInfo * | ei, |
int | code | ||
) |
Assign protocol code to a LinphoneErrorInfo object.
[in] | ei | ErrorInfo object |
[in] | code | the protocol code |
void linphone_error_info_set_reason | ( | LinphoneErrorInfo * | ei, |
LinphoneReason | reason | ||
) |
Assign reason LinphoneReason to a LinphoneErrorInfo object.
[in] | ei | ErrorInfo object |
[in] | reason | reason from LinphoneReason enum |
void linphone_error_info_set_sub_error_info | ( | LinphoneErrorInfo * | ei, |
LinphoneErrorInfo * | appended_ei | ||
) |
Set the sub_ei in LinphoneErrorInfo to another LinphoneErrorInfo.
Used when a reason header is to be added in a SIP response. The first level LinphoneErrorInfo defines the SIP response code and phrase, the second (sub) LinphoneErroInfo defining the content of the Reason header.
[in] | ei | LinphoneErrorInfo object to which the other LinphoneErrorInfo will be appended as ei->sub_ei. |
[in] | appended_ei | LinphoneErrorInfo to append |
void linphone_error_info_set_warnings | ( | LinphoneErrorInfo * | ei, |
const char * | warnings | ||
) |
Assign warnings to a LinphoneErrorInfo object.
[in] | ei | ErrorInfo object |
[in] | phrase | the warnings |
void linphone_error_info_unref | ( | LinphoneErrorInfo * | ei | ) |
Decrement refcount and possibly free the object.
[in] | ei | ErrorInfo object |
void linphone_headers_add | ( | LinphoneHeaders * | obj, |
const char * | name, | ||
const char * | value | ||
) |
Add given header name and corresponding value.
obj | the LinphoneHeaders object |
name | the header's name |
the | header's value |
const char* linphone_headers_get_value | ( | LinphoneHeaders * | obj, |
const char * | header_name | ||
) |
Search for a given header name and return its value.
obj | the LinphoneHeaders object |
name | the header's name |
void linphone_headers_remove | ( | LinphoneHeaders * | obj, |
const char * | name | ||
) |
Add given header name and corresponding value.
obj | the LinphoneHeaders object |
name | the header's name |
the | header's value |
LinphoneImEncryptionEngineCbsGenerateFileTransferKeyCb linphone_im_encryption_engine_cbs_get_generate_file_transfer_key | ( | LinphoneImEncryptionEngineCbs * | cbs | ) |
Gets the callback that will generate the key to encrypt the file before uploading it.
[in] | cbs | the LinphoneImEncryptionEngineCbs object |
LinphoneImEncryptionEngineCbsIsEncryptionEnabledForFileTransferCb linphone_im_encryption_engine_cbs_get_is_encryption_enabled_for_file_transfer | ( | LinphoneImEncryptionEngineCbs * | cbs | ) |
Gets the callback telling wheter or not to encrypt the files.
[in] | cbs | the LinphoneImEncryptionEngineCbs object |
LinphoneImEncryptionEngineCbsDownloadingFileCb linphone_im_encryption_engine_cbs_get_process_downloading_file | ( | LinphoneImEncryptionEngineCbs * | cbs | ) |
Gets the callback that will decrypt the files while downloading them.
[in] | cbs | the LinphoneImEncryptionEngineCbs object |
LinphoneImEncryptionEngineCbsIncomingMessageCb linphone_im_encryption_engine_cbs_get_process_incoming_message | ( | LinphoneImEncryptionEngineCbs * | cbs | ) |
Gets the callback that will decrypt the chat messages upon reception.
[in] | cbs | the LinphoneImEncryptionEngineCbs object |
LinphoneImEncryptionEngineCbsOutgoingMessageCb linphone_im_encryption_engine_cbs_get_process_outgoing_message | ( | LinphoneImEncryptionEngineCbs * | cbs | ) |
Gets the callback that will encrypt the chat messages before sending them.
[in] | cbs | the LinphoneImEncryptionEngineCbs object |
LinphoneImEncryptionEngineCbsUploadingFileCb linphone_im_encryption_engine_cbs_get_process_uploading_file | ( | LinphoneImEncryptionEngineCbs * | cbs | ) |
Gets the callback that will will encrypt the files while uploading them.
[in] | cbs | the LinphoneImEncryptionEngineCbs object |
void* linphone_im_encryption_engine_cbs_get_user_data | ( | const LinphoneImEncryptionEngineCbs * | cbs | ) |
Gets the user data in the LinphoneImEncryptionEngineCbs object.
[in] | cbs | the LinphoneImEncryptionEngineCbs |
LinphoneImEncryptionEngineCbs* linphone_im_encryption_engine_cbs_ref | ( | LinphoneImEncryptionEngineCbs * | cbs | ) |
Acquire a reference to the LinphoneImEncryptionEngineCbs.
[in] | cbs | LinphoneImEncryptionEngineCbs object. |
void linphone_im_encryption_engine_cbs_set_generate_file_transfer_key | ( | LinphoneImEncryptionEngineCbs * | cbs, |
LinphoneImEncryptionEngineCbsGenerateFileTransferKeyCb | cb | ||
) |
Sets the callback that will generate the key to encrypt the file before uploading it.
[in] | cbs | the LinphoneImEncryptionEngineCbs object |
[in] | cb | the callback to call |
void linphone_im_encryption_engine_cbs_set_is_encryption_enabled_for_file_transfer | ( | LinphoneImEncryptionEngineCbs * | cbs, |
LinphoneImEncryptionEngineCbsIsEncryptionEnabledForFileTransferCb | cb | ||
) |
Sets the callback telling wheter or not to encrypt the files.
[in] | cbs | the LinphoneImEncryptionEngineCbs object |
[in] | cb | the callback to call |
void linphone_im_encryption_engine_cbs_set_process_downloading_file | ( | LinphoneImEncryptionEngineCbs * | cbs, |
LinphoneImEncryptionEngineCbsDownloadingFileCb | cb | ||
) |
Sets the callback that will decrypt the files while downloading them.
[in] | cbs | the LinphoneImEncryptionEngineCbs object |
[in] | cb | the callback to call |
void linphone_im_encryption_engine_cbs_set_process_incoming_message | ( | LinphoneImEncryptionEngineCbs * | cbs, |
LinphoneImEncryptionEngineCbsIncomingMessageCb | cb | ||
) |
Sets the callback that will decrypt the chat messages upon reception.
[in] | cbs | the LinphoneImEncryptionEngineCbs object |
[in] | cb | the callback to call |
void linphone_im_encryption_engine_cbs_set_process_outgoing_message | ( | LinphoneImEncryptionEngineCbs * | cbs, |
LinphoneImEncryptionEngineCbsOutgoingMessageCb | cb | ||
) |
Sets the callback that will encrypt the chat messages before sending them.
[in] | cbs | the LinphoneImEncryptionEngineCbs object |
[in] | cb | the callback to call |
void linphone_im_encryption_engine_cbs_set_process_uploading_file | ( | LinphoneImEncryptionEngineCbs * | cbs, |
LinphoneImEncryptionEngineCbsUploadingFileCb | cb | ||
) |
Sets the callback that will encrypt the files while uploading them.
[in] | cbs | the LinphoneImEncryptionEngineCbs object |
[in] | cb | the callback to call |
void linphone_im_encryption_engine_cbs_set_user_data | ( | LinphoneImEncryptionEngineCbs * | cbs, |
void * | data | ||
) |
Sets the user data in the LinphoneImEncryptionEngineCbs object.
[in] | cbs | the LinphoneImEncryptionEngineCbs object |
[in] | data | the user data |
void linphone_im_encryption_engine_cbs_unref | ( | LinphoneImEncryptionEngineCbs * | cbs | ) |
Release reference to the LinphoneImEncryptionEngineCbs.
[in] | cbs | LinphoneImEncryptionEngineCbs object. |
LinphoneImEncryptionEngineCbs* linphone_im_encryption_engine_get_callbacks | ( | const LinphoneImEncryptionEngine * | imee | ) |
Gets the LinphoneImEncryptionEngineCbs object that holds the callbacks.
[in] | imee | the LinphoneImEncryptionEngine object |
LinphoneCore* linphone_im_encryption_engine_get_core | ( | LinphoneImEncryptionEngine * | imee | ) |
Gets the LinphoneCore object that created the IM encryption engine.
[in] | imee | LinphoneImEncryptionEngine object |
void* linphone_im_encryption_engine_get_user_data | ( | const LinphoneImEncryptionEngine * | imee | ) |
Gets the user data in the LinphoneImEncryptionEngine object.
[in] | imee | the LinphoneImEncryptionEngine |
LinphoneImEncryptionEngine* linphone_im_encryption_engine_new | ( | void | ) |
Create the IM encryption engine.
LinphoneImEncryptionEngine* linphone_im_encryption_engine_ref | ( | LinphoneImEncryptionEngine * | imee | ) |
Acquire a reference to the LinphoneImEncryptionEngine.
[in] | imee | LinphoneImEncryptionEngine object. |
void linphone_im_encryption_engine_set_user_data | ( | LinphoneImEncryptionEngine * | imee, |
void * | data | ||
) |
Sets the user data in the LinphoneImEncryptionEngine object.
[in] | imee | the LinphoneImEncryptionEngine object |
[in] | data | the user data |
void linphone_im_encryption_engine_unref | ( | LinphoneImEncryptionEngine * | imee | ) |
Release reference to the LinphoneImEncryptionEngine.
[in] | imee | LinphoneImEncryptionEngine object. |
void linphone_info_message_add_header | ( | LinphoneInfoMessage * | im, |
const char * | name, | ||
const char * | value | ||
) |
Add a header to an info message to be sent.
im | the info message |
name | the header'name |
value | the header's value |
LINPHONE_DEPRECATED void linphone_info_message_destroy | ( | LinphoneInfoMessage * | im | ) |
Destroy a LinphoneInfoMessage.
const char* linphone_info_message_get_header | ( | const LinphoneInfoMessage * | im, |
const char * | name | ||
) |
Obtain a header value from a received info message.
im | the info message |
name | the header'name |
void linphone_info_message_set_content | ( | LinphoneInfoMessage * | im, |
const LinphoneContent * | content | ||
) |
Assign a content to the info message.
im | the linphone info message |
content | the content described as a LinphoneContent structure. All fields of the LinphoneContent are copied, thus the application can destroy/modify/recycloe the content object freely ater the function returns. |
int linphone_range_get_max | ( | const LinphoneRange * | range | ) |
Gets the higher value of the range.
[in] | range | a LinphoneRange |
int linphone_range_get_min | ( | const LinphoneRange * | range | ) |
Gets the lower value of the range.
[in] | range | a LinphoneRange |
void* linphone_range_get_user_data | ( | const LinphoneRange * | range | ) |
Gets the user data in the LinphoneRange object.
[in] | range | the LinphoneRange |
LinphoneRange* linphone_range_ref | ( | LinphoneRange * | range | ) |
Increment refcount.
[in] | range | LinphoneRange object |
void linphone_range_set_max | ( | LinphoneRange * | range, |
int | max | ||
) |
Sets the higher value of the range.
[in] | range | a LinphoneRange |
[in] | max | the value to set |
void linphone_range_set_min | ( | LinphoneRange * | range, |
int | min | ||
) |
Sets the lower value of the range.
[in] | range | a LinphoneRange |
[in] | min | the value to set |
void linphone_range_set_user_data | ( | LinphoneRange * | range, |
void * | data | ||
) |
Sets the user data in the LinphoneRange object.
[in] | range | the LinphoneRange object |
[in] | data | the user data |
void linphone_range_unref | ( | LinphoneRange * | range | ) |
Decrement refcount and possibly free the object.
[in] | range | LinphoneRange object |
int linphone_reason_to_error_code | ( | LinphoneReason | reason | ) |
Converts a LinphoneReason to an error code.
[in] | reason | A LinphoneReason |
const char* linphone_reason_to_string | ( | LinphoneReason | err | ) |
Converts a LinphoneReason enum to a string.
[in] | err | A LinphoneReason |
LinphoneTransportType linphone_transport_parse | ( | const char * | transport | ) |
Converts a lowercase string to a LinphoneTransportType enum.
void linphone_xml_rpc_request_add_int_arg | ( | LinphoneXmlRpcRequest * | request, |
int | value | ||
) |
Add an integer argument to an XML-RPC request.
[in] | request | LinphoneXmlRpcRequest object. |
[in] | value | The integer value of the added argument. |
void linphone_xml_rpc_request_add_string_arg | ( | LinphoneXmlRpcRequest * | request, |
const char * | value | ||
) |
Add a string argument to an XML-RPC request.
[in] | request | LinphoneXmlRpcRequest object. |
[in] | value | The string value of the added argument. |
LinphoneXmlRpcRequestCbsResponseCb linphone_xml_rpc_request_cbs_get_response | ( | const LinphoneXmlRpcRequestCbs * | cbs | ) |
Get the response callback.
[in] | cbs | LinphoneXmlRpcRequestCbs object. |
void* linphone_xml_rpc_request_cbs_get_user_data | ( | const LinphoneXmlRpcRequestCbs * | cbs | ) |
Retrieve the user pointer associated with a LinphoneXmlRpcRequestCbs object.
[in] | cbs | LinphoneXmlRpcRequestCbs object. |
LinphoneXmlRpcRequestCbs* linphone_xml_rpc_request_cbs_ref | ( | LinphoneXmlRpcRequestCbs * | cbs | ) |
Acquire a reference to a LinphoneXmlRpcRequestCbs object.
[in] | cbs | LinphoneXmlRpcRequestCbs object. |
void linphone_xml_rpc_request_cbs_set_response | ( | LinphoneXmlRpcRequestCbs * | cbs, |
LinphoneXmlRpcRequestCbsResponseCb | cb | ||
) |
Set the response callback.
[in] | cbs | LinphoneXmlRpcRequestCbs object. |
[in] | cb | The response callback to be used. |
void linphone_xml_rpc_request_cbs_set_user_data | ( | LinphoneXmlRpcRequestCbs * | cbs, |
void * | ud | ||
) |
Assign a user pointer to a LinphoneXmlRpcRequestCbs object.
[in] | cbs | LinphoneXmlRpcRequestCbs object. |
[in] | ud | The user pointer to associate with the LinphoneXmlRpcRequestCbs object. |
void linphone_xml_rpc_request_cbs_unref | ( | LinphoneXmlRpcRequestCbs * | cbs | ) |
Release a reference to a LinphoneXmlRpcRequestCbs object.
[in] | cbs | LinphoneXmlRpcRequestCbs object. |
LinphoneXmlRpcRequestCbs* linphone_xml_rpc_request_get_callbacks | ( | const LinphoneXmlRpcRequest * | request | ) |
Get the LinphoneXmlRpcRequestCbs object associated with a LinphoneXmlRpcRequest.
[in] | request | LinphoneXmlRpcRequest object |
const char* linphone_xml_rpc_request_get_content | ( | const LinphoneXmlRpcRequest * | request | ) |
Get the content of the XML-RPC request.
[in] | request | LinphoneXmlRpcRequest object. |
int linphone_xml_rpc_request_get_int_response | ( | const LinphoneXmlRpcRequest * | request | ) |
Get the response to an XML-RPC request sent with linphone_xml_rpc_session_send_request() and returning an integer response.
[in] | request | LinphoneXmlRpcRequest object. |
LinphoneXmlRpcStatus linphone_xml_rpc_request_get_status | ( | const LinphoneXmlRpcRequest * | request | ) |
Get the status of the XML-RPC request.
[in] | request | LinphoneXmlRpcRequest object. |
const char* linphone_xml_rpc_request_get_string_response | ( | const LinphoneXmlRpcRequest * | request | ) |
Get the response to an XML-RPC request sent with linphone_xml_rpc_session_send_request() and returning a string response.
[in] | request | LinphoneXmlRpcRequest object. |
void* linphone_xml_rpc_request_get_user_data | ( | const LinphoneXmlRpcRequest * | request | ) |
Retrieve the user pointer associated with the XML-RPC request.
[in] | request | LinphoneXmlRpcRequest object. |
LinphoneXmlRpcRequest* linphone_xml_rpc_request_new | ( | LinphoneXmlRpcArgType | return_type, |
const char * | method | ||
) |
Create a new LinphoneXmlRpcRequest object.
[in] | return_type | The expected XML-RPC response type. |
[in] | method | The XML-RPC method to call. |
LinphoneXmlRpcRequest* linphone_xml_rpc_request_new_with_args | ( | LinphoneXmlRpcArgType | return_type, |
const char * | method, | ||
... | |||
) |
Create a new LinphoneXmlRpcRequest object giving the arguments to the method call.
[in] | return_type | The expected XML-RPC response type. |
[in] | method | The XML-RPC method to call. |
LinphoneXmlRpcRequest* linphone_xml_rpc_request_ref | ( | LinphoneXmlRpcRequest * | request | ) |
Acquire a reference to the XML-RPC request.
[in] | request | LinphoneXmlRpcRequest object. |
void linphone_xml_rpc_request_set_user_data | ( | LinphoneXmlRpcRequest * | request, |
void * | ud | ||
) |
Assign a user pointer to the XML-RPC request.
[in] | request | LinphoneXmlRpcRequest object. |
[in] | ud | The user pointer to associate with the XML-RPC request. |
void linphone_xml_rpc_request_unref | ( | LinphoneXmlRpcRequest * | request | ) |
Release reference to the XML-RPC request.
[in] | request | LinphoneXmlRpcRequest object. |
void* linphone_xml_rpc_session_get_user_data | ( | const LinphoneXmlRpcSession * | session | ) |
Retrieve the user pointer associated with the XML-RPC session.
[in] | session | LinphoneXmlRpcSession object. |
LinphoneXmlRpcSession* linphone_xml_rpc_session_new | ( | LinphoneCore * | core, |
const char * | url | ||
) |
Create a new LinphoneXmlRpcSession object.
[in] | core | The LinphoneCore object used to send the XML-RPC requests. |
[in] | url | The URL of the XML-RPC server to send the XML-RPC requests to. |
LinphoneXmlRpcSession* linphone_xml_rpc_session_ref | ( | LinphoneXmlRpcSession * | session | ) |
Acquire a reference to the XML-RPC session.
[in] | session | LinphoneXmlRpcSession object. |
void linphone_xml_rpc_session_release | ( | LinphoneXmlRpcSession * | session | ) |
Stop and unref an XML rpc session.
Pending requests will be aborted.
[in] | session | LinphoneXmlRpcSession object. |
void linphone_xml_rpc_session_send_request | ( | LinphoneXmlRpcSession * | session, |
LinphoneXmlRpcRequest * | request | ||
) |
Send an XML-RPC request.
[in] | session | LinphoneXmlRpcSession object. |
[in] | request | The LinphoneXmlRpcRequest to be sent. |
void linphone_xml_rpc_session_set_user_data | ( | LinphoneXmlRpcSession * | session, |
void * | ud | ||
) |
Assign a user pointer to the XML-RPC session.
[in] | session | LinphoneXmlRpcSession object. |
[in] | ud | The user pointer to associate with the XML-RPC session. |
void linphone_xml_rpc_session_unref | ( | LinphoneXmlRpcSession * | session | ) |
Release reference to the XML-RPC session.
[in] | session | LinphoneXmlRpcSession object. |
void lp_config_load_dict_to_section | ( | LpConfig * | lpconfig, |
const char * | section, | ||
const LinphoneDictionary * | dict | ||
) |
Loads a dictionary into a section of the lpconfig.
If the section doesn't exist it is created. Overwrites existing keys, creates non-existing keys.
LinphoneDictionary* lp_config_section_to_dict | ( | const LpConfig * | lpconfig, |
const char * | section | ||
) |
Converts a config section into a dictionary.