diff --git a/coreapi/contactprovider.h b/coreapi/contactprovider.h index 83cbee1b7..d5c016562 100644 --- a/coreapi/contactprovider.h +++ b/coreapi/contactprovider.h @@ -22,7 +22,7 @@ void linphone_contact_search_init(LinphoneContactSearch* obj, const char* predic ContactSearchID linphone_contact_search_get_id(LinphoneContactSearch* obj); const char* linphone_contact_search_get_predicate(LinphoneContactSearch* obj); void linphone_contact_search_invoke_cb(LinphoneContactSearch* req, MSList* friends); -LinphoneContactSearch* linphone_contact_search_ref(void* obj); +LINPHONE_PUBLIC LinphoneContactSearch* linphone_contact_search_ref(void* obj); void linphone_contact_search_unref(void* obj); LinphoneContactSearch* linphone_contact_search_cast( void*obj ); @@ -32,10 +32,10 @@ void linphone_contact_provider_init(LinphoneContactProvider* obj, Linph LinphoneCore* linphone_contact_provider_get_core(LinphoneContactProvider* obj); const char* linphone_contact_provider_get_name(LinphoneContactProvider* obj); LinphoneContactProvider* linphone_contact_provider_ref(void* obj); -void linphone_contact_provider_unref(void* obj); -LinphoneContactProvider* linphone_contact_provider_cast( void*obj ); +LINPHONE_PUBLIC void linphone_contact_provider_unref(void* obj); +LINPHONE_PUBLIC LinphoneContactProvider* linphone_contact_provider_cast( void*obj ); -LinphoneContactSearch* linphone_contact_provider_begin_search(LinphoneContactProvider* obj, +LINPHONE_PUBLIC LinphoneContactSearch* linphone_contact_provider_begin_search(LinphoneContactProvider* obj, const char* predicate, ContactSearchCallback cb, void* data); diff --git a/coreapi/ldap/ldapprovider.h b/coreapi/ldap/ldapprovider.h index 0c95f7511..066ab7ba8 100644 --- a/coreapi/ldap/ldapprovider.h +++ b/coreapi/ldap/ldapprovider.h @@ -27,15 +27,15 @@ LinphoneLDAPContactSearch* linphone_ldap_contact_search_create(LinphoneLDAPConta ContactSearchCallback cb, void* cb_data); -unsigned int linphone_ldap_contact_search_result_count(LinphoneLDAPContactSearch* obj); -LinphoneLDAPContactSearch* linphone_ldap_contact_search_cast( void* obj ); +LINPHONE_PUBLIC unsigned int linphone_ldap_contact_search_result_count(LinphoneLDAPContactSearch* obj); +LINPHONE_PUBLIC LinphoneLDAPContactSearch* linphone_ldap_contact_search_cast( void* obj ); /* LinphoneLDAPContactProvider */ -LinphoneLDAPContactProvider* linphone_ldap_contact_provider_create(LinphoneCore* lc, const LinphoneDictionary* config); -unsigned int linphone_ldap_contact_provider_get_max_result(const LinphoneLDAPContactProvider* obj); -LinphoneLDAPContactProvider* linphone_ldap_contact_provider_ref( void* obj ); +LINPHONE_PUBLIC LinphoneLDAPContactProvider* linphone_ldap_contact_provider_create(LinphoneCore* lc, const LinphoneDictionary* config); +LINPHONE_PUBLIC unsigned int linphone_ldap_contact_provider_get_max_result(const LinphoneLDAPContactProvider* obj); +LINPHONE_PUBLIC LinphoneLDAPContactProvider* linphone_ldap_contact_provider_ref( void* obj ); void linphone_ldap_contact_provider_unref( void* obj ); LinphoneLDAPContactProvider* linphone_ldap_contact_provider_cast( void* obj ); -int linphone_ldap_contact_provider_available(); +LINPHONE_PUBLIC int linphone_ldap_contact_provider_available(); diff --git a/coreapi/linphonecore.h b/coreapi/linphonecore.h index d597a97a2..d11bbca9a 100644 --- a/coreapi/linphonecore.h +++ b/coreapi/linphonecore.h @@ -200,9 +200,9 @@ LINPHONE_PUBLIC int linphone_error_info_get_protocol_code(const LinphoneErrorInf /* linphone dictionary */ LINPHONE_PUBLIC LinphoneDictionary* linphone_dictionary_new(void); -LinphoneDictionary * linphone_dictionary_clone(const LinphoneDictionary* src); -LinphoneDictionary * linphone_dictionary_ref(LinphoneDictionary* obj); -void linphone_dictionary_unref(LinphoneDictionary* obj); +LINPHONE_PUBLIC LinphoneDictionary * linphone_dictionary_clone(const LinphoneDictionary* src); +LINPHONE_PUBLIC LinphoneDictionary * linphone_dictionary_ref(LinphoneDictionary* obj); +LINPHONE_PUBLIC void linphone_dictionary_unref(LinphoneDictionary* obj); LINPHONE_PUBLIC void linphone_dictionary_set_int(LinphoneDictionary* obj, const char* key, int value); LINPHONE_PUBLIC int linphone_dictionary_get_int(LinphoneDictionary* obj, const char* key, int default_value); LINPHONE_PUBLIC void linphone_dictionary_set_string(LinphoneDictionary* obj, const char* key, const char*value); @@ -218,14 +218,14 @@ LINPHONE_PUBLIC void linphone_dictionary_foreach( const LinphoneDictionary* obj, * @return a #LinphoneDictionary with all the keys from a section, or NULL if the section doesn't exist * @ingroup misc */ -LinphoneDictionary* lp_config_section_to_dict( const LpConfig* lpconfig, const char* section ); +LINPHONE_PUBLIC LinphoneDictionary* lp_config_section_to_dict( const LpConfig* lpconfig, const char* section ); /** * 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. * @ingroup misc */ -void lp_config_load_dict_to_section( LpConfig* lpconfig, const char* section, const LinphoneDictionary* dict); +LINPHONE_PUBLIC void lp_config_load_dict_to_section( LpConfig* lpconfig, const char* section, const LinphoneDictionary* dict); /** @@ -1062,7 +1062,7 @@ LINPHONE_PUBLIC const char* linphone_proxy_config_get_transport(const LinphonePr /* destruction is called automatically when removing the proxy config */ LINPHONE_PUBLIC void linphone_proxy_config_destroy(LinphoneProxyConfig *cfg); LINPHONE_PUBLIC void linphone_proxy_config_set_sip_setup(LinphoneProxyConfig *cfg, const char *type); -SipSetupContext *linphone_proxy_config_get_sip_setup_context(LinphoneProxyConfig *cfg); +LINPHONE_PUBLIC SipSetupContext *linphone_proxy_config_get_sip_setup_context(LinphoneProxyConfig *cfg); LINPHONE_PUBLIC SipSetup *linphone_proxy_config_get_sip_setup(LinphoneProxyConfig *cfg); /** @@ -2423,7 +2423,7 @@ LINPHONE_PUBLIC const MSList *linphone_core_get_proxy_config_list(const Linphone /** @deprecated Use linphone_core_set_default_proxy_config() instead. */ #define linphone_core_set_default_proxy(lc, config) linphone_core_set_default_proxy_config(lc, config) -void linphone_core_set_default_proxy_index(LinphoneCore *lc, int index); +LINPHONE_PUBLIC void linphone_core_set_default_proxy_index(LinphoneCore *lc, int index); LINPHONE_PUBLIC int linphone_core_get_default_proxy(LinphoneCore *lc, LinphoneProxyConfig **config); @@ -3090,10 +3090,10 @@ LINPHONE_PUBLIC LpConfig * linphone_core_get_config(LinphoneCore *lc); LINPHONE_PUBLIC LpConfig * linphone_core_create_lp_config(LinphoneCore *lc, const char *filename); /*set a callback for some blocking operations, it takes you informed of the progress of the operation*/ -void linphone_core_set_waiting_callback(LinphoneCore *lc, LinphoneCoreWaitingCallback cb, void *user_context); +LINPHONE_PUBLIC void linphone_core_set_waiting_callback(LinphoneCore *lc, LinphoneCoreWaitingCallback cb, void *user_context); /*returns the list of registered SipSetup (linphonecore plugins) */ -const MSList * linphone_core_get_sip_setups(LinphoneCore *lc); +LINPHONE_PUBLIC const MSList * linphone_core_get_sip_setups(LinphoneCore *lc); LINPHONE_PUBLIC void linphone_core_destroy(LinphoneCore *lc); @@ -3177,8 +3177,8 @@ LINPHONE_PUBLIC float linphone_core_get_conference_local_input_volume(LinphoneCo LINPHONE_PUBLIC int linphone_core_terminate_conference(LinphoneCore *lc); LINPHONE_PUBLIC int linphone_core_get_conference_size(LinphoneCore *lc); -int linphone_core_start_conference_recording(LinphoneCore *lc, const char *path); -int linphone_core_stop_conference_recording(LinphoneCore *lc); +LINPHONE_PUBLIC int linphone_core_start_conference_recording(LinphoneCore *lc, const char *path); +LINPHONE_PUBLIC int linphone_core_stop_conference_recording(LinphoneCore *lc); /** * Get the maximum number of simultaneous calls Linphone core can manage at a time. All new call above this limit are declined with a busy answer * @ingroup initializing diff --git a/coreapi/sipsetup.h b/coreapi/sipsetup.h index 7b1b2ed44..2cbe24036 100644 --- a/coreapi/sipsetup.h +++ b/coreapi/sipsetup.h @@ -23,6 +23,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "mediastreamer2/mscommon.h" +#ifndef LINPHONE_PUBLIC +#define LINPHONE_PUBLIC MS2_PUBLIC +#endif + struct _SipSetup; struct _BuddyInfo; @@ -120,7 +124,7 @@ extern "C"{ BuddyInfo *buddy_info_new(void); void buddy_info_free(BuddyInfo *info); -void buddy_lookup_request_set_key(BuddyLookupRequest *req, const char *key); +LINPHONE_PUBLIC void buddy_lookup_request_set_key(BuddyLookupRequest *req, const char *key); void buddy_lookup_request_set_max_results(BuddyLookupRequest *req, int ncount); @@ -128,28 +132,28 @@ void sip_setup_register(SipSetup *ss); void sip_setup_register_all(void); SipSetup *sip_setup_lookup(const char *type_name); void sip_setup_unregister_all(void); -unsigned int sip_setup_get_capabilities(SipSetup *s); +LINPHONE_PUBLIC unsigned int sip_setup_get_capabilities(SipSetup *s); SipSetupContext * sip_setup_context_new(SipSetup *s, struct _LinphoneProxyConfig *cfg); int sip_setup_context_account_exists(SipSetupContext *ctx, const char *uri); int sip_setup_context_account_validated(SipSetupContext *ctx, const char *uri); int sip_setup_context_create_account(SipSetupContext *ctx, const char *uri, const char *passwd, const char *email, int suscribe); -int sip_setup_context_get_capabilities(SipSetupContext *ctx); -int sip_setup_context_login_account(SipSetupContext * ctx, const char *uri, const char *passwd, const char *userid); +LINPHONE_PUBLIC int sip_setup_context_get_capabilities(SipSetupContext *ctx); +LINPHONE_PUBLIC int sip_setup_context_login_account(SipSetupContext * ctx, const char *uri, const char *passwd, const char *userid); int sip_setup_context_get_proxy(SipSetupContext *ctx, const char *domain, char *proxy, size_t sz); int sip_setup_context_get_stun_servers(SipSetupContext *ctx, char *stun1, char *stun2, size_t size); int sip_setup_context_get_relay(SipSetupContext *ctx, char *relay, size_t size); -BuddyLookupRequest *sip_setup_context_create_buddy_lookup_request(SipSetupContext *ctx); -int sip_setup_context_buddy_lookup_submit(SipSetupContext *ctx , BuddyLookupRequest *req); -int sip_setup_context_buddy_lookup_free(SipSetupContext *ctx , BuddyLookupRequest *req); +LINPHONE_PUBLIC BuddyLookupRequest *sip_setup_context_create_buddy_lookup_request(SipSetupContext *ctx); +LINPHONE_PUBLIC int sip_setup_context_buddy_lookup_submit(SipSetupContext *ctx , BuddyLookupRequest *req); +LINPHONE_PUBLIC int sip_setup_context_buddy_lookup_free(SipSetupContext *ctx , BuddyLookupRequest *req); const char * sip_setup_context_get_notice(SipSetupContext *ctx); const char ** sip_setup_context_get_domains(SipSetupContext *ctx); void sip_setup_context_free(SipSetupContext *ctx); -int sip_setup_context_logout(SipSetupContext *ctx); +LINPHONE_PUBLIC int sip_setup_context_logout(SipSetupContext *ctx); /*internal methods for use WITHIN plugins: do not use elsewhere*/ struct _LinphoneProxyConfig *sip_setup_context_get_proxy_config(const SipSetupContext *ctx);