From fd7d18bf5a250a1dcfe75c69bb4b86f52f7b60c5 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Thu, 4 Apr 2013 11:33:43 +0200 Subject: [PATCH] Add exports. --- coreapi/linphonecore.h | 26 +++++++++++++------------- coreapi/lpconfig.h | 20 ++++++++++---------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/coreapi/linphonecore.h b/coreapi/linphonecore.h index 5e2c1f77e..d0e077b46 100644 --- a/coreapi/linphonecore.h +++ b/coreapi/linphonecore.h @@ -91,7 +91,7 @@ LINPHONE_PUBLIC const char *linphone_address_get_domain(const LinphoneAddress *u * Get port number as an integer value. * */ -int linphone_address_get_port_int(const LinphoneAddress *u); +LINPHONE_PUBLIC int linphone_address_get_port_int(const LinphoneAddress *u); /** * Get port number, null if not present. */ @@ -625,17 +625,17 @@ typedef struct _LinphoneAuthInfo LinphoneAuthInfo; LINPHONE_PUBLIC LinphoneAuthInfo *linphone_auth_info_new(const char *username, const char *userid, const char *passwd, const char *ha1,const char *realm); -void linphone_auth_info_set_passwd(LinphoneAuthInfo *info, const char *passwd); -void linphone_auth_info_set_username(LinphoneAuthInfo *info, const char *username); -void linphone_auth_info_set_userid(LinphoneAuthInfo *info, const char *userid); -void linphone_auth_info_set_realm(LinphoneAuthInfo *info, const char *realm); -void linphone_auth_info_set_ha1(LinphoneAuthInfo *info, const char *ha1); +LINPHONE_PUBLIC void linphone_auth_info_set_passwd(LinphoneAuthInfo *info, const char *passwd); +LINPHONE_PUBLIC void linphone_auth_info_set_username(LinphoneAuthInfo *info, const char *username); +LINPHONE_PUBLIC void linphone_auth_info_set_userid(LinphoneAuthInfo *info, const char *userid); +LINPHONE_PUBLIC void linphone_auth_info_set_realm(LinphoneAuthInfo *info, const char *realm); +LINPHONE_PUBLIC void linphone_auth_info_set_ha1(LinphoneAuthInfo *info, const char *ha1); -const char *linphone_auth_info_get_username(const LinphoneAuthInfo *i); -const char *linphone_auth_info_get_passwd(const LinphoneAuthInfo *i); -const char *linphone_auth_info_get_userid(const LinphoneAuthInfo *i); -const char *linphone_auth_info_get_realm(const LinphoneAuthInfo *i); -const char *linphone_auth_info_get_ha1(const LinphoneAuthInfo *i); +LINPHONE_PUBLIC const char *linphone_auth_info_get_username(const LinphoneAuthInfo *i); +LINPHONE_PUBLIC const char *linphone_auth_info_get_passwd(const LinphoneAuthInfo *i); +LINPHONE_PUBLIC const char *linphone_auth_info_get_userid(const LinphoneAuthInfo *i); +LINPHONE_PUBLIC const char *linphone_auth_info_get_realm(const LinphoneAuthInfo *i); +LINPHONE_PUBLIC const char *linphone_auth_info_get_ha1(const LinphoneAuthInfo *i); /* you don't need those function*/ void linphone_auth_info_destroy(LinphoneAuthInfo *info); @@ -992,7 +992,7 @@ const MSList *linphone_core_get_video_codecs(const LinphoneCore *lc); int linphone_core_set_video_codecs(LinphoneCore *lc, MSList *codecs); -bool_t linphone_core_payload_type_enabled(LinphoneCore *lc, const PayloadType *pt); +LINPHONE_PUBLIC bool_t linphone_core_payload_type_enabled(LinphoneCore *lc, const PayloadType *pt); LINPHONE_PUBLIC int linphone_core_enable_payload_type(LinphoneCore *lc, PayloadType *pt, bool_t enable); @@ -1050,7 +1050,7 @@ LINPHONE_PUBLIC void linphone_core_add_auth_info(LinphoneCore *lc, const Linphon void linphone_core_remove_auth_info(LinphoneCore *lc, const LinphoneAuthInfo *info); -const MSList *linphone_core_get_auth_info_list(const LinphoneCore *lc); +LINPHONE_PUBLIC const MSList *linphone_core_get_auth_info_list(const LinphoneCore *lc); const LinphoneAuthInfo *linphone_core_find_auth_info(LinphoneCore *lc, const char *realm, const char *username); diff --git a/coreapi/lpconfig.h b/coreapi/lpconfig.h index 310baaff3..6079a80ee 100644 --- a/coreapi/lpconfig.h +++ b/coreapi/lpconfig.h @@ -73,7 +73,7 @@ int lp_config_read_file(LpConfig *lpconfig, const char *filename); * @ingroup misc * The default value string is returned if the config item isn't found. **/ -const char *lp_config_get_string(const LpConfig *lpconfig, const char *section, const char *key, const char *default_string); +LINPHONE_PUBLIC const char *lp_config_get_string(const LpConfig *lpconfig, const char *section, const char *key, const char *default_string); int lp_config_read_file(LpConfig *lpconfig, const char *filename); /** * Retrieves a configuration item as a range, given its section, key, and default min and max values. @@ -82,14 +82,14 @@ int lp_config_read_file(LpConfig *lpconfig, const char *filename); * @return TRUE if the value is successfully parsed as a range, FALSE otherwise. * If FALSE is returned, min and max are filled respectively with default_min and default_max values. */ -bool_t lp_config_get_range(const LpConfig *lpconfig, const char *section, const char *key, int *min, int *max, int default_min, int default_max); +LINPHONE_PUBLIC bool_t lp_config_get_range(const LpConfig *lpconfig, const char *section, const char *key, int *min, int *max, int default_min, int default_max); /** * Retrieves a configuration item as an integer, given its section, key, and default value. * * @ingroup misc * The default integer value is returned if the config item isn't found. **/ -int lp_config_get_int(const LpConfig *lpconfig,const char *section, const char *key, int default_value); +LINPHONE_PUBLIC int lp_config_get_int(const LpConfig *lpconfig,const char *section, const char *key, int default_value); /** * Retrieves a configuration item as a 64 bit integer, given its section, key, and default value. @@ -97,7 +97,7 @@ int lp_config_get_int(const LpConfig *lpconfig,const char *section, const char * * @ingroup misc * The default integer value is returned if the config item isn't found. **/ -int64_t lp_config_get_int64(const LpConfig *lpconfig,const char *section, const char *key, int64_t default_value); +LINPHONE_PUBLIC int64_t lp_config_get_int64(const LpConfig *lpconfig,const char *section, const char *key, int64_t default_value); int lp_config_read_file(LpConfig *lpconfig, const char *filename); @@ -107,25 +107,25 @@ int lp_config_read_file(LpConfig *lpconfig, const char *filename); * @ingroup misc * The default float value is returned if the config item isn't found. **/ -float lp_config_get_float(const LpConfig *lpconfig,const char *section, const char *key, float default_value); +LINPHONE_PUBLIC float lp_config_get_float(const LpConfig *lpconfig,const char *section, const char *key, float default_value); /** * Sets a string config item * * @ingroup misc **/ -void lp_config_set_string(LpConfig *lpconfig,const char *section, const char *key, const char *value); +LINPHONE_PUBLIC void lp_config_set_string(LpConfig *lpconfig,const char *section, const char *key, const char *value); /** * Sets a range config item * * @ingroup misc */ -void lp_config_set_range(LpConfig *lpconfig, const char *section, const char *key, int min_value, int max_value); +LINPHONE_PUBLIC void lp_config_set_range(LpConfig *lpconfig, const char *section, const char *key, int min_value, int max_value); /** * Sets an integer config item * * @ingroup misc **/ -void lp_config_set_int(LpConfig *lpconfig,const char *section, const char *key, int value); +LINPHONE_PUBLIC void lp_config_set_int(LpConfig *lpconfig,const char *section, const char *key, int value); /** * Sets an integer config item, but store it as hexadecimal @@ -139,14 +139,14 @@ void lp_config_set_int_hex(LpConfig *lpconfig,const char *section, const char *k * * @ingroup misc **/ -void lp_config_set_int64(LpConfig *lpconfig,const char *section, const char *key, int64_t value); +LINPHONE_PUBLIC void lp_config_set_int64(LpConfig *lpconfig,const char *section, const char *key, int64_t value); /** * Sets a float config item * * @ingroup misc **/ -void lp_config_set_float(LpConfig *lpconfig,const char *section, const char *key, float value); +LINPHONE_PUBLIC void lp_config_set_float(LpConfig *lpconfig,const char *section, const char *key, float value); /** * Writes the config file to disk. *