Set CFLAGS fvisibility hidden 69/13169/2
authortaesub.kim <taesub.kim@samsung.com>
Fri, 29 Nov 2013 01:15:34 +0000 (10:15 +0900)
committertaesub.kim <taesub.kim@samsung.com>
Fri, 29 Nov 2013 01:39:07 +0000 (10:39 +0900)
Change-Id: I731d0220c71e2d3f4413b41efec8723c7e99af8b
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
CMakeLists.txt
debian/changelog
include/connection_profile.h
include/net_connection.h [changed mode: 0755->0644]
include/net_connection_private.h
packaging/capi-network-connection.spec
src/connection.c [changed mode: 0755->0644]
src/connection_profile.c [changed mode: 0755->0644]

index afc1f9e..3f615b8 100644 (file)
@@ -18,7 +18,7 @@ FOREACH(flag ${${fw_name}_CFLAGS})
     SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
 ENDFOREACH(flag)
 
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -fPIC -Wall -Werror -fvisibility=hidden")
 SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
 
 IF("${ARCH}" STREQUAL "arm")
@@ -67,10 +67,10 @@ IF(UNIX)
 
 ADD_CUSTOM_TARGET (distclean @echo cleaning for source distribution)
 ADD_CUSTOM_COMMAND(
-        DEPENDS clean 
+        DEPENDS clean
         COMMENT "distribution clean"
         COMMAND find
-        ARGS    . 
+        ARGS    .
         -not -name config.cmake -and \(
         -name tester.c -or
         -name Testing -or
@@ -93,4 +93,3 @@ ADD_CUSTOM_COMMAND(
 )
 
 ENDIF(UNIX)
-
index 5a5b10c..c0ce7c9 100644 (file)
@@ -1,3 +1,11 @@
+capi-network-connection (0.1.3-14) unstable; urgency=low
+
+  * Set CFLAGS fvisibility hidden
+  * Git: framework/api/connection
+  * Tag: capi-network-connection_0.1.3-14
+
+ -- Taesub Kim <taesub.kim@samsung.com>  Fri, 29 Nov 2013 10:36:46 +0900
+
 capi-network-connection (0.1.3-12) unstable; urgency=low
 
   * Check return value of read()
index 011aa45..1f37c06 100644 (file)
@@ -1,18 +1,18 @@
 /*
-* Copyright (c) 2011-2013 Samsung Electronics Co., Ltd All Rights Reserved
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
+ * Copyright (c) 2011-2013 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 
 #ifndef __TIZEN_NETWORK_CONNECTION_PROFILE_H__
 #define __TIZEN_NETWORK_CONNECTION_PROFILE_H__
old mode 100755 (executable)
new mode 100644 (file)
index 2eb2fd7..1a0704b
@@ -14,8 +14,7 @@
  * limitations under the License.
  */
 
-
-#ifndef __NET_CONNECTION_INTF_H__        /* To prevent inclusion of a header file twice */
+#ifndef __NET_CONNECTION_INTF_H__
 #define __NET_CONNECTION_INTF_H__
 
 #include "connection_profile.h"
index 4a1ab41..ddfdcd3 100644 (file)
@@ -14,9 +14,7 @@
  * limitations under the License. 
  */
 
-
-
-#ifndef __NET_CONNECTION_PRIVATE_H__        /* To prevent inclusion of a header file twice */
+#ifndef __NET_CONNECTION_PRIVATE_H__
 #define __NET_CONNECTION_PRIVATE_H__
 
 #include <dlog.h>
index bc9090a..ce3ee13 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-network-connection
 Summary:    Network Connection library in TIZEN C API
-Version:    0.1.3_13
+Version:    0.1.3_14
 Release:    1
 Group:      System/Network
 License:    Apache License Version 2.0
old mode 100755 (executable)
new mode 100644 (file)
index f88ed7b..9622656
@@ -26,7 +26,6 @@ static void __connection_cb_state_change_cb(keynode_t *node, void *user_data);
 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) {
@@ -241,9 +240,8 @@ static int __connection_get_handle_count(void)
        return count;
 }
 
-/* Connection Manager module ********************************************************************/
-
-int connection_create(connection_h* connection)
+/* Connection Manager ********************************************************/
+EXPORT_API int connection_create(connection_h* connection)
 {
        CONNECTION_MUTEX_LOCK;
 
@@ -273,7 +271,7 @@ int connection_create(connection_h* connection)
        return CONNECTION_ERROR_NONE;
 }
 
-int connection_destroy(connection_h connection)
+EXPORT_API int connection_destroy(connection_h connection)
 {
        CONNECTION_MUTEX_LOCK;
 
@@ -300,7 +298,7 @@ int connection_destroy(connection_h connection)
        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;
 
@@ -321,7 +319,7 @@ int connection_get_type(connection_h connection, connection_type_e* type)
        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))) {
@@ -352,7 +350,7 @@ int connection_get_ip_address(connection_h 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))) {
@@ -383,7 +381,7 @@ int connection_get_proxy(connection_h 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;
@@ -419,7 +417,7 @@ int connection_get_cellular_state(connection_h connection, connection_cellular_s
        }
 }
 
-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");
@@ -436,7 +434,7 @@ int connection_get_wifi_state(connection_h connection, connection_wifi_state_e*
        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");
@@ -449,7 +447,7 @@ int connection_get_ethernet_state(connection_h connection, connection_ethernet_s
        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");
@@ -462,7 +460,7 @@ int connection_get_bt_state(connection_h connection, connection_bt_state_e* stat
        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))) {
@@ -473,7 +471,7 @@ int connection_set_type_changed_cb(connection_h 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");
@@ -483,7 +481,7 @@ int connection_unset_type_changed_cb(connection_h connection)
        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))) {
@@ -494,7 +492,7 @@ int connection_set_ip_address_changed_cb(connection_h 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");
@@ -504,7 +502,7 @@ int connection_unset_ip_address_changed_cb(connection_h connection)
        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))) {
@@ -515,7 +513,7 @@ int connection_set_proxy_address_changed_cb(connection_h 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");
@@ -525,7 +523,7 @@ int connection_unset_proxy_address_changed_cb(connection_h connection)
        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))) {
@@ -551,7 +549,7 @@ int connection_add_profile(connection_h connection, connection_profile_h 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))) {
@@ -577,7 +575,7 @@ int connection_remove_profile(connection_h connection, connection_profile_h prof
        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))) {
@@ -597,7 +595,7 @@ int connection_update_profile(connection_h connection, connection_profile_h prof
        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)) ||
@@ -610,23 +608,23 @@ int connection_get_profile_iterator(connection_h 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");
@@ -636,18 +634,7 @@ int connection_get_current_profile(connection_h connection, connection_profile_h
        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) {
@@ -658,7 +645,7 @@ int connection_get_default_cellular_service_profile(connection_h connection,
        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) {
@@ -669,7 +656,7 @@ int connection_set_default_cellular_service_profile(connection_h connection,
        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)
 {
@@ -682,7 +669,19 @@ int connection_set_default_cellular_service_profile_async(connection_h connectio
        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)) ||
@@ -694,7 +693,7 @@ int connection_close_profile(connection_h connection, connection_profile_h profi
        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) {
@@ -820,15 +819,14 @@ static int __reset_statistic(connection_type_e connection_type,
        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);
 }
-
old mode 100755 (executable)
new mode 100644 (file)
index 537dc77..f124ea5
@@ -182,9 +182,8 @@ net_state_type_t _connection_profile_convert_to_net_state(connection_profile_sta
 }
 
 
-/* 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) {
@@ -217,7 +216,7 @@ int connection_profile_create(connection_profile_type_e type, const char* keywor
        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");
@@ -229,7 +228,7 @@ int connection_profile_destroy(connection_profile_h profile)
        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");
@@ -246,7 +245,7 @@ int connection_profile_clone(connection_profile_h* cloned_profile, connection_pr
        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");
@@ -268,7 +267,7 @@ int connection_profile_get_id(connection_profile_h profile, char** profile_id)
        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");
@@ -305,7 +304,7 @@ int connection_profile_get_name(connection_profile_h profile, char** profile_nam
        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");
@@ -335,7 +334,7 @@ int connection_profile_get_type(connection_profile_h profile, connection_profile
        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");
@@ -354,7 +353,7 @@ int connection_profile_get_network_interface_name(connection_profile_h profile,
        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");
@@ -374,7 +373,7 @@ int connection_profile_refresh(connection_profile_h profile)
        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");
@@ -389,7 +388,7 @@ int connection_profile_get_state(connection_profile_h profile, connection_profil
        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)) ||
@@ -431,7 +430,7 @@ int connection_profile_get_ip_config_type(connection_profile_h 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)) ||
@@ -457,7 +456,7 @@ int connection_profile_get_ip_address(connection_profile_h 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)) ||
@@ -483,7 +482,7 @@ int connection_profile_get_subnet_mask(connection_profile_h 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)) ||
@@ -509,7 +508,7 @@ int connection_profile_get_gateway_address(connection_profile_h 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)) ||
@@ -537,7 +536,7 @@ int connection_profile_get_dns_address(connection_profile_h profile, int order,
        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");
@@ -578,7 +577,7 @@ int connection_profile_get_proxy_type(connection_profile_h profile, connection_p
        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)) ||
@@ -613,7 +612,7 @@ int connection_profile_get_proxy_address(connection_profile_h 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)) ||
@@ -657,7 +656,7 @@ int connection_profile_set_ip_config_type(connection_profile_h 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)) ||
@@ -683,7 +682,7 @@ int connection_profile_set_ip_address(connection_profile_h 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)) ||
@@ -709,7 +708,7 @@ int connection_profile_set_subnet_mask(connection_profile_h 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)) ||
@@ -735,7 +734,7 @@ int connection_profile_set_gateway_address(connection_profile_h 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)) ||
@@ -763,7 +762,7 @@ int connection_profile_set_dns_address(connection_profile_h profile, int order,
        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");
@@ -792,7 +791,7 @@ int connection_profile_set_proxy_type(connection_profile_h profile, connection_p
        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)) ||
@@ -818,7 +817,7 @@ int connection_profile_set_proxy_address(connection_profile_h 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) {
@@ -832,7 +831,7 @@ int connection_profile_set_state_changed_cb(connection_profile_h profile,
        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");
@@ -845,9 +844,8 @@ int connection_profile_unset_state_changed_cb(connection_profile_h profile)
 }
 
 
-/* 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");
@@ -866,7 +864,7 @@ int connection_profile_get_wifi_essid(connection_profile_h profile, char** essid
        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");
@@ -885,7 +883,7 @@ int connection_profile_get_wifi_bssid(connection_profile_h profile, char** bssid
        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");
@@ -902,7 +900,7 @@ int connection_profile_get_wifi_rssi(connection_profile_h profile, int* rssi)
        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");
@@ -919,7 +917,7 @@ int connection_profile_get_wifi_frequency(connection_profile_h profile, int* fre
        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");
@@ -936,7 +934,7 @@ int connection_profile_get_wifi_max_speed(connection_profile_h profile, int* max
        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");
@@ -971,7 +969,7 @@ int connection_profile_get_wifi_security_type(connection_profile_h profile, conn
        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");
@@ -1006,7 +1004,7 @@ int connection_profile_get_wifi_encryption_type(connection_profile_h profile, co
        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");
@@ -1040,7 +1038,7 @@ int connection_profile_is_wifi_passphrase_required(connection_profile_h profile,
        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");
@@ -1058,7 +1056,7 @@ int connection_profile_set_wifi_passphrase(connection_profile_h profile, const c
        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");
@@ -1079,9 +1077,8 @@ int connection_profile_is_wifi_wps_supported(connection_profile_h profile, bool*
 }
 
 
-/* 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");
@@ -1121,7 +1118,7 @@ int connection_profile_get_cellular_network_type(connection_profile_h profile, c
        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) {
@@ -1146,7 +1143,7 @@ int connection_profile_get_cellular_service_type(connection_profile_h profile,
        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");
@@ -1165,7 +1162,7 @@ int connection_profile_get_cellular_apn(connection_profile_h profile, char** apn
        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)) ||
@@ -1206,7 +1203,7 @@ int connection_profile_get_cellular_auth_info(connection_profile_h 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");
@@ -1225,7 +1222,7 @@ int connection_profile_get_cellular_home_url(connection_profile_h profile, char*
        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");
@@ -1245,7 +1242,7 @@ int connection_profile_is_cellular_roaming(connection_profile_h profile, bool* i
        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))) {
@@ -1285,7 +1282,7 @@ int connection_profile_set_cellular_service_type(connection_profile_h 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");
@@ -1302,7 +1299,7 @@ int connection_profile_set_cellular_apn(connection_profile_h profile, const char
        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)) ||
@@ -1336,7 +1333,7 @@ int connection_profile_set_cellular_auth_info(connection_profile_h 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");
@@ -1352,4 +1349,3 @@ int connection_profile_set_cellular_home_url(connection_profile_h profile, const
 
        return CONNECTION_ERROR_NONE;
 }
-