Move ipv6 preferred API to profile header 14/163414/2 accepted/tizen/unified/20171212.064757 submit/tizen/20171211.062320
authorSeonah Moon <seonah1.moon@samsung.com>
Mon, 11 Dec 2017 05:34:48 +0000 (14:34 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Mon, 11 Dec 2017 05:36:01 +0000 (14:36 +0900)
Change-Id: I107cede35267c66d04f8c5e7c49b65ea2d1662a2

include/profile/network-pm-intf.h
packaging/libnet-client.spec
src/network-cm-intf.c
src/network-profile-intf.c

index 9483e10..b94943e 100755 (executable)
@@ -538,6 +538,28 @@ int net_get_cellular_modem_object_path(char **modem_path, int sim_id);
 *****************************************************************************************/
 int net_foreach_ipv6_address(net_device_t device_type, GSList **ipv6_address_list);
 
+/*****************************************************************************************/
+/**
+ * This function is to get preferred ipv6 address.
+ *
+ * \par Sync (or) Async:
+ * This is a Synchronous API.
+ *
+ * \param[in]     const char *profile_name - profile name
+ * \param[out]   char **address - preferred ipv6 address of specific profile
+ * \return Return Type (int) \n
+ * - NET_ERR_NONE  - indicating that the operation has completed successfully.\n
+ * - NET_ERR_INVALID_PARAM - Invalid parameter \n
+ * - NET_ERR_INVALID_OPERATION - Invalid Operation \n
+ * - NET_ERR_UNKNOWN - Any other error \n
+ * - NET_ERR_NOT_SUPPORTED - Device is not Supported \n
+ *
+ * \par Prospective Clients:
+ * External Apps.
+ *
+*****************************************************************************************/
+int net_get_preferred_ipv6_address(const char *profile_name, char **address);
+
 /**
  * \}
  */
index eec5f55..0d4d8d2 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          libnet-client
 Summary:       Network Client library (Shared library)
-Version:       1.1.64
+Version:       1.1.65
 Release:       1
 Group:         System/Network
 License:       Flora-1.1
index ca21a72..b8d37c3 100755 (executable)
@@ -1235,30 +1235,6 @@ EXPORT_API int net_get_metered_state(int *state)
        return Error;
 }
 
-/**
- * @fn   EXPORT_API int net_get_preferred_ipv6_address(char **address)
- *
- * This function is to get preferred ipv6 address.
- * This is Sync API.
- *
- * @return       0 - on success, negative values for errors
- * @param[in]    const char *profile - profile name
- * @param[out]   char **address - preferred ipv6 address of specific profile
- */
-EXPORT_API int net_get_preferred_ipv6_address(const char *profilename, char **address)
-{
-       __NETWORK_FUNC_ENTER__;
-       net_err_t Error = NET_ERR_NONE;
-
-       Error = _net_dbus_get_preferred_ipv6_address(profilename, address);
-
-       if (Error != NET_ERR_NONE)
-               NETWORK_LOG(NETWORK_ERROR, "_net_dbus_get_preferred_ipv6_address failed\n");
-
-       __NETWORK_FUNC_EXIT__;
-       return Error;
-}
-
 /*****************************************************************************
  * ConnMan Wi-Fi Client Interface Async Function Definition
  *****************************************************************************/
index 0c93d06..118d3ef 100755 (executable)
@@ -3068,3 +3068,28 @@ EXPORT_API int net_foreach_ipv6_address(net_device_t device_type,
        __NETWORK_FUNC_EXIT__;
        return NET_ERR_NONE;
 }
+
+/**
+ * @fn   EXPORT_API int net_get_preferred_ipv6_address(char **address)
+ *
+ * This function is to get preferred ipv6 address.
+ * This is Sync API.
+ *
+ * @return       0 - on success, negative values for errors
+ * @param[in]    const char *profile_name - profile name
+ * @param[out]   char **address - preferred ipv6 address of specific profile
+ */
+EXPORT_API int net_get_preferred_ipv6_address(const char *profile_name, char **address)
+{
+       __NETWORK_FUNC_ENTER__;
+       net_err_t Error = NET_ERR_NONE;
+
+       Error = _net_dbus_get_preferred_ipv6_address(profile_name, address);
+
+       if (Error != NET_ERR_NONE)
+               NETWORK_LOG(NETWORK_ERROR, "_net_dbus_get_preferred_ipv6_address failed\n");
+
+       __NETWORK_FUNC_EXIT__;
+       return Error;
+}
+