static void __connection_cb_ip_change_cb(keynode_t *node, void *user_data);
static void __connection_cb_proxy_change_cb(keynode_t *node, void *user_data);
-
static int __connection_convert_net_state(int status)
{
switch (status) {
return count;
}
-/* Connection Manager module ********************************************************************/
-
-int connection_create(connection_h* connection)
+/* Connection Manager ********************************************************/
+EXPORT_API int connection_create(connection_h* connection)
{
CONNECTION_MUTEX_LOCK;
return CONNECTION_ERROR_NONE;
}
-int connection_destroy(connection_h connection)
+EXPORT_API int connection_destroy(connection_h connection)
{
CONNECTION_MUTEX_LOCK;
return CONNECTION_ERROR_NONE;
}
-int connection_get_type(connection_h connection, connection_type_e* type)
+EXPORT_API int connection_get_type(connection_h connection, connection_type_e* type)
{
int status = 0;
return CONNECTION_ERROR_NONE;
}
-int connection_get_ip_address(connection_h connection,
+EXPORT_API int connection_get_ip_address(connection_h connection,
connection_address_family_e address_family, char** ip_address)
{
if (ip_address == NULL || !(__connection_check_handle_validity(connection))) {
return CONNECTION_ERROR_NONE;
}
-int connection_get_proxy(connection_h connection,
+EXPORT_API int connection_get_proxy(connection_h connection,
connection_address_family_e address_family, char** proxy)
{
if (proxy == NULL || !(__connection_check_handle_validity(connection))) {
return CONNECTION_ERROR_NONE;
}
-int connection_get_cellular_state(connection_h connection, connection_cellular_state_e* state)
+EXPORT_API int connection_get_cellular_state(connection_h connection, connection_cellular_state_e* state)
{
int status = 0;
int cellular_state = 0;
}
}
-int connection_get_wifi_state(connection_h connection, connection_wifi_state_e* state)
+EXPORT_API int connection_get_wifi_state(connection_h connection, connection_wifi_state_e* state)
{
if (state == NULL || !(__connection_check_handle_validity(connection))) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_get_ethernet_state(connection_h connection, connection_ethernet_state_e* state)
+EXPORT_API int connection_get_ethernet_state(connection_h connection, connection_ethernet_state_e* state)
{
if (state == NULL || !(__connection_check_handle_validity(connection))) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_get_bt_state(connection_h connection, connection_bt_state_e* state)
+EXPORT_API int connection_get_bt_state(connection_h connection, connection_bt_state_e* state)
{
if (state == NULL || !(__connection_check_handle_validity(connection))) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_set_type_changed_cb(connection_h connection,
+EXPORT_API int connection_set_type_changed_cb(connection_h connection,
connection_type_changed_cb callback, void* user_data)
{
if (callback == NULL || !(__connection_check_handle_validity(connection))) {
return __connection_set_type_changed_callback(connection, callback, user_data);
}
-int connection_unset_type_changed_cb(connection_h connection)
+EXPORT_API int connection_unset_type_changed_cb(connection_h connection)
{
if (!(__connection_check_handle_validity(connection))) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return __connection_set_type_changed_callback(connection, NULL, NULL);
}
-int connection_set_ip_address_changed_cb(connection_h connection,
+EXPORT_API int connection_set_ip_address_changed_cb(connection_h connection,
connection_address_changed_cb callback, void* user_data)
{
if (callback == NULL || !(__connection_check_handle_validity(connection))) {
return __connection_set_ip_changed_callback(connection, callback, user_data);
}
-int connection_unset_ip_address_changed_cb(connection_h connection)
+EXPORT_API int connection_unset_ip_address_changed_cb(connection_h connection)
{
if (!(__connection_check_handle_validity(connection))) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return __connection_set_ip_changed_callback(connection, NULL, NULL);
}
-int connection_set_proxy_address_changed_cb(connection_h connection,
+EXPORT_API int connection_set_proxy_address_changed_cb(connection_h connection,
connection_address_changed_cb callback, void* user_data)
{
if (callback == NULL || !(__connection_check_handle_validity(connection))) {
return __connection_set_proxy_changed_callback(connection, callback, user_data);
}
-int connection_unset_proxy_address_changed_cb(connection_h connection)
+EXPORT_API int connection_unset_proxy_address_changed_cb(connection_h connection)
{
if (!(__connection_check_handle_validity(connection))) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return __connection_set_proxy_changed_callback(connection, NULL, NULL);
}
-int connection_add_profile(connection_h connection, connection_profile_h profile)
+EXPORT_API int connection_add_profile(connection_h connection, connection_profile_h profile)
{
if (!(__connection_check_handle_validity(connection)) ||
!(_connection_libnet_check_profile_validity(profile))) {
return CONNECTION_ERROR_NONE;
}
-int connection_remove_profile(connection_h connection, connection_profile_h profile)
+EXPORT_API int connection_remove_profile(connection_h connection, connection_profile_h profile)
{
if (!(__connection_check_handle_validity(connection)) ||
!(_connection_libnet_check_profile_validity(profile))) {
return CONNECTION_ERROR_NONE;
}
-int connection_update_profile(connection_h connection, connection_profile_h profile)
+EXPORT_API int connection_update_profile(connection_h connection, connection_profile_h profile)
{
if (!(__connection_check_handle_validity(connection)) ||
!(_connection_libnet_check_profile_validity(profile))) {
return CONNECTION_ERROR_NONE;
}
-int connection_get_profile_iterator(connection_h connection,
+EXPORT_API int connection_get_profile_iterator(connection_h connection,
connection_iterator_type_e type, connection_profile_iterator_h* profile_iterator)
{
if (!(__connection_check_handle_validity(connection)) ||
return _connection_libnet_get_profile_iterator(type, profile_iterator);
}
-int connection_profile_iterator_next(connection_profile_iterator_h profile_iterator,
+EXPORT_API int connection_profile_iterator_next(connection_profile_iterator_h profile_iterator,
connection_profile_h* profile)
{
return _connection_libnet_get_iterator_next(profile_iterator, profile);
}
-bool connection_profile_iterator_has_next(connection_profile_iterator_h profile_iterator)
+EXPORT_API bool connection_profile_iterator_has_next(connection_profile_iterator_h profile_iterator)
{
return _connection_libnet_iterator_has_next(profile_iterator);
}
-int connection_destroy_profile_iterator(connection_profile_iterator_h profile_iterator)
+EXPORT_API int connection_destroy_profile_iterator(connection_profile_iterator_h profile_iterator)
{
return _connection_libnet_destroy_iterator(profile_iterator);
}
-int connection_get_current_profile(connection_h connection, connection_profile_h* profile)
+EXPORT_API int connection_get_current_profile(connection_h connection, connection_profile_h* profile)
{
if (!(__connection_check_handle_validity(connection)) || profile == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return _connection_libnet_get_current_profile(profile);
}
-int connection_open_profile(connection_h connection, connection_profile_h profile,
- connection_opened_cb callback, void* user_data)
-{
- if (!(__connection_check_handle_validity(connection)) ||
- profile == NULL || callback == NULL) {
- CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
- return CONNECTION_ERROR_INVALID_PARAMETER;
- }
-
- return _connection_libnet_open_profile(profile, callback, user_data);
-}
-int connection_get_default_cellular_service_profile(connection_h connection,
+EXPORT_API int connection_get_default_cellular_service_profile(connection_h connection,
connection_cellular_service_type_e type, connection_profile_h* profile)
{
if (!(__connection_check_handle_validity(connection)) || profile == NULL) {
return _connection_libnet_get_cellular_service_profile(type, profile);
}
-int connection_set_default_cellular_service_profile(connection_h connection,
+EXPORT_API int connection_set_default_cellular_service_profile(connection_h connection,
connection_cellular_service_type_e type, connection_profile_h profile)
{
if (!(__connection_check_handle_validity(connection)) || profile == NULL) {
return _connection_libnet_set_cellular_service_profile_sync(type, profile);
}
-int connection_set_default_cellular_service_profile_async(connection_h connection,
+EXPORT_API int connection_set_default_cellular_service_profile_async(connection_h connection,
connection_cellular_service_type_e type, connection_profile_h profile,
connection_set_default_cb callback, void* user_data)
{
return _connection_libnet_set_cellular_service_profile_async(type, profile, callback, user_data);
}
-int connection_close_profile(connection_h connection, connection_profile_h profile,
+EXPORT_API int connection_open_profile(connection_h connection, connection_profile_h profile,
+ connection_opened_cb callback, void* user_data)
+{
+ if (!(__connection_check_handle_validity(connection)) ||
+ profile == NULL || callback == NULL) {
+ CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
+ return CONNECTION_ERROR_INVALID_PARAMETER;
+ }
+
+ return _connection_libnet_open_profile(profile, callback, user_data);
+}
+
+EXPORT_API int connection_close_profile(connection_h connection, connection_profile_h profile,
connection_closed_cb callback, void* user_data)
{
if (!(__connection_check_handle_validity(connection)) ||
return _connection_libnet_close_profile(profile, callback, user_data);
}
-int connection_add_route(connection_h connection, const char* interface_name, const char* host_address)
+EXPORT_API int connection_add_route(connection_h connection, const char* interface_name, const char* host_address)
{
if (!(__connection_check_handle_validity(connection)) ||
interface_name == NULL || host_address == NULL) {
return CONNECTION_ERROR_NONE;
}
-int connection_get_statistics(connection_type_e connection_type,
+EXPORT_API int connection_get_statistics(connection_type_e connection_type,
connection_statistics_type_e statistics_type, long long* size)
{
return __get_statistic(connection_type, statistics_type, size);
}
-int connection_reset_statistics(connection_type_e connection_type,
+EXPORT_API int connection_reset_statistics(connection_type_e connection_type,
connection_statistics_type_e statistics_type)
{
return __reset_statistic(connection_type, statistics_type);
}
-
}
-/* Connection profile module *********************************************************************/
-
-int connection_profile_create(connection_profile_type_e type, const char* keyword, connection_profile_h* profile)
+/* Connection profile ********************************************************/
+EXPORT_API int connection_profile_create(connection_profile_type_e type, const char* keyword, connection_profile_h* profile)
{
if ((type != CONNECTION_PROFILE_TYPE_CELLULAR &&
type != CONNECTION_PROFILE_TYPE_WIFI) || profile == NULL) {
return CONNECTION_ERROR_NONE;
}
-int connection_profile_destroy(connection_profile_h profile)
+EXPORT_API int connection_profile_destroy(connection_profile_h profile)
{
if (!(_connection_libnet_check_profile_validity(profile))) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_clone(connection_profile_h* cloned_profile, connection_profile_h origin_profile)
+EXPORT_API int connection_profile_clone(connection_profile_h* cloned_profile, connection_profile_h origin_profile)
{
if (!(_connection_libnet_check_profile_validity(origin_profile)) || cloned_profile == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_get_id(connection_profile_h profile, char** profile_id)
+EXPORT_API int connection_profile_get_id(connection_profile_h profile, char** profile_id)
{
if (!(_connection_libnet_check_profile_validity(profile)) || profile_id == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_get_name(connection_profile_h profile, char** profile_name)
+EXPORT_API int connection_profile_get_name(connection_profile_h profile, char** profile_name)
{
if (!(_connection_libnet_check_profile_validity(profile)) || profile_name == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_get_type(connection_profile_h profile, connection_profile_type_e* type)
+EXPORT_API int connection_profile_get_type(connection_profile_h profile, connection_profile_type_e* type)
{
if (!(_connection_libnet_check_profile_validity(profile)) || type == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_get_network_interface_name(connection_profile_h profile, char** interface_name)
+EXPORT_API int connection_profile_get_network_interface_name(connection_profile_h profile, char** interface_name)
{
if (!(_connection_libnet_check_profile_validity(profile)) || interface_name == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_refresh(connection_profile_h profile)
+EXPORT_API int connection_profile_refresh(connection_profile_h profile)
{
if (!(_connection_libnet_check_profile_validity(profile))) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_get_state(connection_profile_h profile, connection_profile_state_e* state)
+EXPORT_API int connection_profile_get_state(connection_profile_h profile, connection_profile_state_e* state)
{
if (!(_connection_libnet_check_profile_validity(profile)) || state == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_get_ip_config_type(connection_profile_h profile,
+EXPORT_API int connection_profile_get_ip_config_type(connection_profile_h profile,
connection_address_family_e address_family, connection_ip_config_type_e* type)
{
if (!(_connection_libnet_check_profile_validity(profile)) ||
return CONNECTION_ERROR_NONE;
}
-int connection_profile_get_ip_address(connection_profile_h profile,
+EXPORT_API int connection_profile_get_ip_address(connection_profile_h profile,
connection_address_family_e address_family, char** ip_address)
{
if (!(_connection_libnet_check_profile_validity(profile)) ||
return CONNECTION_ERROR_NONE;
}
-int connection_profile_get_subnet_mask(connection_profile_h profile,
+EXPORT_API int connection_profile_get_subnet_mask(connection_profile_h profile,
connection_address_family_e address_family, char** subnet_mask)
{
if (!(_connection_libnet_check_profile_validity(profile)) ||
return CONNECTION_ERROR_NONE;
}
-int connection_profile_get_gateway_address(connection_profile_h profile,
+EXPORT_API int connection_profile_get_gateway_address(connection_profile_h profile,
connection_address_family_e address_family, char** gateway_address)
{
if (!(_connection_libnet_check_profile_validity(profile)) ||
return CONNECTION_ERROR_NONE;
}
-int connection_profile_get_dns_address(connection_profile_h profile, int order,
+EXPORT_API int connection_profile_get_dns_address(connection_profile_h profile, int order,
connection_address_family_e address_family, char** dns_address)
{
if (!(_connection_libnet_check_profile_validity(profile)) ||
return CONNECTION_ERROR_NONE;
}
-int connection_profile_get_proxy_type(connection_profile_h profile, connection_proxy_type_e* type)
+EXPORT_API int connection_profile_get_proxy_type(connection_profile_h profile, connection_proxy_type_e* type)
{
if (!(_connection_libnet_check_profile_validity(profile)) || type == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_get_proxy_address(connection_profile_h profile,
+EXPORT_API int connection_profile_get_proxy_address(connection_profile_h profile,
connection_address_family_e address_family, char** proxy_address)
{
if (!(_connection_libnet_check_profile_validity(profile)) ||
return CONNECTION_ERROR_NONE;
}
-int connection_profile_set_ip_config_type(connection_profile_h profile,
+EXPORT_API int connection_profile_set_ip_config_type(connection_profile_h profile,
connection_address_family_e address_family, connection_ip_config_type_e type)
{
if (!(_connection_libnet_check_profile_validity(profile)) ||
return CONNECTION_ERROR_NONE;
}
-int connection_profile_set_ip_address(connection_profile_h profile,
+EXPORT_API int connection_profile_set_ip_address(connection_profile_h profile,
connection_address_family_e address_family, const char* ip_address)
{
if (!(_connection_libnet_check_profile_validity(profile)) ||
return CONNECTION_ERROR_NONE;
}
-int connection_profile_set_subnet_mask(connection_profile_h profile,
+EXPORT_API int connection_profile_set_subnet_mask(connection_profile_h profile,
connection_address_family_e address_family, const char* subnet_mask)
{
if (!(_connection_libnet_check_profile_validity(profile)) ||
return CONNECTION_ERROR_NONE;
}
-int connection_profile_set_gateway_address(connection_profile_h profile,
+EXPORT_API int connection_profile_set_gateway_address(connection_profile_h profile,
connection_address_family_e address_family, const char* gateway_address)
{
if (!(_connection_libnet_check_profile_validity(profile)) ||
return CONNECTION_ERROR_NONE;
}
-int connection_profile_set_dns_address(connection_profile_h profile, int order,
+EXPORT_API int connection_profile_set_dns_address(connection_profile_h profile, int order,
connection_address_family_e address_family, const char* dns_address)
{
if (!(_connection_libnet_check_profile_validity(profile)) ||
return CONNECTION_ERROR_NONE;
}
-int connection_profile_set_proxy_type(connection_profile_h profile, connection_proxy_type_e type)
+EXPORT_API int connection_profile_set_proxy_type(connection_profile_h profile, connection_proxy_type_e type)
{
if (!(_connection_libnet_check_profile_validity(profile))) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_set_proxy_address(connection_profile_h profile,
+EXPORT_API int connection_profile_set_proxy_address(connection_profile_h profile,
connection_address_family_e address_family, const char* proxy_address)
{
if (!(_connection_libnet_check_profile_validity(profile)) ||
return CONNECTION_ERROR_NONE;
}
-int connection_profile_set_state_changed_cb(connection_profile_h profile,
+EXPORT_API int connection_profile_set_state_changed_cb(connection_profile_h profile,
connection_profile_state_changed_cb callback, void* user_data)
{
if (!(_connection_libnet_check_profile_validity(profile)) || callback == NULL) {
return CONNECTION_ERROR_OPERATION_FAILED;
}
-int connection_profile_unset_state_changed_cb(connection_profile_h profile)
+EXPORT_API int connection_profile_unset_state_changed_cb(connection_profile_h profile)
{
if (!(_connection_libnet_check_profile_cb_validity(profile))) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
}
-/* Wi-Fi profile module **************************************************************************/
-
-int connection_profile_get_wifi_essid(connection_profile_h profile, char** essid)
+/* Wi-Fi profile *************************************************************/
+EXPORT_API int connection_profile_get_wifi_essid(connection_profile_h profile, char** essid)
{
if (!(_connection_libnet_check_profile_validity(profile)) || essid == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_get_wifi_bssid(connection_profile_h profile, char** bssid)
+EXPORT_API int connection_profile_get_wifi_bssid(connection_profile_h profile, char** bssid)
{
if (!(_connection_libnet_check_profile_validity(profile)) || bssid == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_get_wifi_rssi(connection_profile_h profile, int* rssi)
+EXPORT_API int connection_profile_get_wifi_rssi(connection_profile_h profile, int* rssi)
{
if (!(_connection_libnet_check_profile_validity(profile)) || rssi == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_get_wifi_frequency(connection_profile_h profile, int* frequency)
+EXPORT_API int connection_profile_get_wifi_frequency(connection_profile_h profile, int* frequency)
{
if (!(_connection_libnet_check_profile_validity(profile)) || frequency == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_get_wifi_max_speed(connection_profile_h profile, int* max_speed)
+EXPORT_API int connection_profile_get_wifi_max_speed(connection_profile_h profile, int* max_speed)
{
if (!(_connection_libnet_check_profile_validity(profile)) || max_speed == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_get_wifi_security_type(connection_profile_h profile, connection_wifi_security_type_e* type)
+EXPORT_API int connection_profile_get_wifi_security_type(connection_profile_h profile, connection_wifi_security_type_e* type)
{
if (!(_connection_libnet_check_profile_validity(profile)) || type == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_get_wifi_encryption_type(connection_profile_h profile, connection_wifi_encryption_type_e* type)
+EXPORT_API int connection_profile_get_wifi_encryption_type(connection_profile_h profile, connection_wifi_encryption_type_e* type)
{
if (!(_connection_libnet_check_profile_validity(profile)) || type == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_is_wifi_passphrase_required(connection_profile_h profile, bool* required)
+EXPORT_API int connection_profile_is_wifi_passphrase_required(connection_profile_h profile, bool* required)
{
if (!(_connection_libnet_check_profile_validity(profile)) || required == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_set_wifi_passphrase(connection_profile_h profile, const char* passphrase)
+EXPORT_API int connection_profile_set_wifi_passphrase(connection_profile_h profile, const char* passphrase)
{
if (!(_connection_libnet_check_profile_validity(profile)) || passphrase == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_is_wifi_wps_supported(connection_profile_h profile, bool* supported)
+EXPORT_API int connection_profile_is_wifi_wps_supported(connection_profile_h profile, bool* supported)
{
if (!(_connection_libnet_check_profile_validity(profile)) || supported == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
}
-/* Cellular profile module ***********************************************************************/
-
-int connection_profile_get_cellular_network_type(connection_profile_h profile, connection_cellular_network_type_e* type)
+/* Cellular profile **********************************************************/
+EXPORT_API int connection_profile_get_cellular_network_type(connection_profile_h profile, connection_cellular_network_type_e* type)
{
if (!(_connection_libnet_check_profile_validity(profile)) || type == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_get_cellular_service_type(connection_profile_h profile,
+EXPORT_API int connection_profile_get_cellular_service_type(connection_profile_h profile,
connection_cellular_service_type_e* type)
{
if (!(_connection_libnet_check_profile_validity(profile)) || type == NULL) {
return CONNECTION_ERROR_NONE;
}
-int connection_profile_get_cellular_apn(connection_profile_h profile, char** apn)
+EXPORT_API int connection_profile_get_cellular_apn(connection_profile_h profile, char** apn)
{
if (!(_connection_libnet_check_profile_validity(profile)) || apn == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_get_cellular_auth_info(connection_profile_h profile,
+EXPORT_API int connection_profile_get_cellular_auth_info(connection_profile_h profile,
connection_cellular_auth_type_e* type, char** user_name, char** password)
{
if (!(_connection_libnet_check_profile_validity(profile)) ||
return CONNECTION_ERROR_NONE;
}
-int connection_profile_get_cellular_home_url(connection_profile_h profile, char** home_url)
+EXPORT_API int connection_profile_get_cellular_home_url(connection_profile_h profile, char** home_url)
{
if (!(_connection_libnet_check_profile_validity(profile)) || home_url == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_is_cellular_roaming(connection_profile_h profile, bool* is_roaming)
+EXPORT_API int connection_profile_is_cellular_roaming(connection_profile_h profile, bool* is_roaming)
{
if (!(_connection_libnet_check_profile_validity(profile)) || is_roaming == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_set_cellular_service_type(connection_profile_h profile,
+EXPORT_API int connection_profile_set_cellular_service_type(connection_profile_h profile,
connection_cellular_service_type_e service_type)
{
if (!(_connection_libnet_check_profile_validity(profile))) {
return CONNECTION_ERROR_NONE;
}
-int connection_profile_set_cellular_apn(connection_profile_h profile, const char* apn)
+EXPORT_API int connection_profile_set_cellular_apn(connection_profile_h profile, const char* apn)
{
if (!(_connection_libnet_check_profile_validity(profile)) || apn == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-int connection_profile_set_cellular_auth_info(connection_profile_h profile,
+EXPORT_API int connection_profile_set_cellular_auth_info(connection_profile_h profile,
connection_cellular_auth_type_e type, const char* user_name, const char* password)
{
if (!(_connection_libnet_check_profile_validity(profile)) ||
return CONNECTION_ERROR_NONE;
}
-int connection_profile_set_cellular_home_url(connection_profile_h profile, const char* home_url)
+EXPORT_API int connection_profile_set_cellular_home_url(connection_profile_h profile, const char* home_url)
{
if (!(_connection_libnet_check_profile_validity(profile)) || home_url == NULL) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed\n");
return CONNECTION_ERROR_NONE;
}
-