Deprecate ASP API 17/314017/3
authorSeonah Moon <seonah1.moon@samsung.com>
Thu, 4 Jul 2024 04:55:13 +0000 (13:55 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Wed, 10 Jul 2024 08:02:24 +0000 (17:02 +0900)
Change-Id: I98c9b3e3a17b5ff248e21976f2198b45178d5451

doc/asp_doc.h
include/asp.h
src/asp-client.cpp

index 89baec579b83ebd09d2bb621186c65b8b44aaeb9..fc7bd7f85abcab34fe539b40e9af0952b189a24c 100755 (executable)
@@ -20,7 +20,7 @@
 
 
 /**
- * @defgroup CAPI_NETWORK_ASP_MODULE Application Service Platform
+ * @defgroup CAPI_NETWORK_ASP_MODULE Application Service Platform (Deprecated)
  * @brief Wi-Fi Direct provides API to manage Application Service Platform.
  * @ingroup CAPI_NETWORK_FRAMEWORK
  *
  * In addition, This set provides functions to discovery and manage sessions using Application Service Platform.
  * @section CAPI_NETWORK_ASP_MODULE_FEATURE Related Features
  * This API is related with the following features:\n
+ * - %http://tizen.org/feature/network.asp\n
+ * - %http://tizen.org/feature/network.service_discovery.dnssd\n
  * - %http://tizen.org/feature/network.wifi\n
  * - %http://tizen.org/feature/network.wifi.direct\n
- * - %http://tizen.org/feature/network.wifi.direct.asp\n
  * - %http://tizen.org/feature/network.wifi.direct.display\n
  * - %http://tizen.org/feature/network.wifi.direct.service_discovery\n
  *
index 0b0cb1d9d03521339e7a58a35ee656ea71a345ac..291bf17bb857450ffd78403693663f5f8469f416 100755 (executable)
@@ -30,6 +30,7 @@ extern "C" {
  */
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Enumeration for Application Service Platform (ASP) error code.
  * @since_tizen 4.0
  */
@@ -53,6 +54,7 @@ typedef enum {
 } asp_error_e;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Enumeration for Advertise Status event reason.
  * @since_tizen 4.0
  */
@@ -63,6 +65,7 @@ typedef enum {
 } asp_advert_status_reason_e;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Enumeration for the Wi-Fi P2P role assignment scheme.
  * @since_tizen 4.0
  * @see asp_advert_set_p2p_role_scheme()
@@ -77,6 +80,7 @@ typedef enum {
 } asp_advert_p2p_role_scheme_e;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Enumeration for service discovery mechanism.
  * @since_tizen 4.0
  * @see asp_advert_set_discovery_tech()
@@ -91,6 +95,7 @@ typedef enum {
 } asp_discovery_tech_e;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Enumeration for Wi-Fi WPS type.
  * @see asp_advert_set_p2p_config_method()
  * @see asp_advert_get_p2p_config_method()
@@ -107,6 +112,7 @@ typedef enum {
 } asp_wps_type_e;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Enumeration for Application Service Platform (ASP) Session connect status.
  * @since_tizen 4.0
 */
@@ -124,6 +130,7 @@ typedef enum {
 } asp_connect_status_e;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Enumeration for Application Service Platform (ASP) general session state.
  * @since_tizen 4.0
 */
@@ -136,6 +143,7 @@ typedef enum {
 } asp_session_state_e;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Enumeration for Application Service Platform (ASP) session close status.
  * @since_tizen 4.0
 */
@@ -149,6 +157,7 @@ typedef enum {
 } asp_session_close_status_e;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Enumeration for Application Service Platform (ASP) port status.
  * @since_tizen 4.0
 */
@@ -160,6 +169,7 @@ typedef enum {
 } asp_port_status_e;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Enumeration for service status.
  * @since_tizen 4.0
 */
@@ -169,24 +179,28 @@ typedef enum {
 } asp_service_status_e;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief The advertised service description.
  * @since_tizen 4.0
  */
 typedef void *asp_advert_service_h;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief The searching service description.
  * @since_tizen 4.0
  */
 typedef void *asp_seek_service_h;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief The Application Service Platform (ASP) session description.
  * @since_tizen 4.0
  */
 typedef void *asp_session_h;
 
 /**
+* @deprecated Deprecated since 9.0
 * @brief Called when the Application Service Platform (ASP) Service is found.
 * @since_tizen 4.0
 * @remarks @a service_mac, @a instance_name and @a service_info are valid only in the callback.
@@ -227,6 +241,7 @@ typedef void (*asp_seek_search_result_cb) (int error_code,
                                            void *user_data);
 
 /**
+* @deprecated Deprecated since 9.0
 * @brief Called when the status of an advertisement to a service is changed.
 * @since_tizen 4.0
 * @param[in] adv_service  The service whose status has changed;
@@ -246,6 +261,7 @@ typedef void (*asp_advert_status_changed_cb) (asp_advert_service_h adv_service,
                                               void *user_data);
 
 /**
+* @deprecated Deprecated since 9.0
 * @brief Called when a remote device is attempting to initiate an ASP session.
 * @since_tizen 4.0
 * @remarks @a network_config_pin, @a device_name and @a info are valid only in the callback.
@@ -281,6 +297,7 @@ typedef void (*asp_session_request_cb) (int error_code,
                                         void *user_data);
 
 /**
+* @deprecated Deprecated since 9.0
 * @brief Called when the Application Service Platform (ASP) has to provide
 * a PIN value or collect a PIN value.
 * @since_tizen 4.0
@@ -308,6 +325,7 @@ typedef void (*asp_session_config_request_cb) (int error_code,
                                                void *user_data);
 
 /**
+* @deprecated Deprecated since 9.0
 * @brief Called when the Application Service Platform (ASP) reports progress on group formation.
 * @since_tizen 4.0
 * @remarks @a deferred_resp is valid only in the callback.
@@ -333,6 +351,7 @@ typedef void (*asp_session_connect_status_cb) (int error_code,
                                                void *user_data);
 
 /**
+* @deprecated Deprecated since 9.0
 * @brief Called when the Application Service Platform (ASP) reports the state and status of an ASP session.
 * @since_tizen 4.0
 * @remarks @a additional_info is valid only in the callback.
@@ -356,6 +375,7 @@ typedef void (*asp_session_status_cb) (int error_code,
                                        void *user_data);
 
 /**
+* @deprecated Deprecated since 9.0
 * @brief Called when the Application Service Platform (ASP) reports the status of the network port on the local and remote end of the ASP session.
 * @since_tizen 4.0
 * @remarks @a ip_address is valid only in the callback.
@@ -382,6 +402,7 @@ typedef void (*asp_session_port_status_cb) (int error_code,
                                             void *user_data);
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Initializes Application Service Platform (ASP).
  * @since_tizen 4.0
  * @return 0 on success, otherwise a negative error value.
@@ -392,9 +413,10 @@ typedef void (*asp_session_port_status_cb) (int error_code,
  * @retval #ASP_ERROR_OPERATION_FAILED      Operation failed
  * @see asp_deinitialize()
  */
-int asp_initialize(void);
+int asp_initialize(void) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Deinitializes Application Service Platform (ASP).
  * @since_tizen 4.0
  * @privlevel public
@@ -408,9 +430,10 @@ int asp_initialize(void);
  * @pre Application Service Platform (ASP) must be initialized by asp_initialize().
  * @see asp_initialize()
  */
-int asp_deinitialize(void);
+int asp_deinitialize(void) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Registers the callback function that will be invoked when a service found.
  * @since_tizen 4.0
  * @param[in] cb         The callback function to invoke
@@ -427,9 +450,10 @@ int asp_deinitialize(void);
  * @see asp_seek_unset_search_result_cb()
  * @see asp_seek_start()
  */
-int asp_seek_set_search_result_cb(asp_seek_search_result_cb cb, void *user_data);
+int asp_seek_set_search_result_cb(asp_seek_search_result_cb cb, void *user_data) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Unregisters the callback function that will invoked when a service found.
  * @since_tizen 4.0
  * @return 0 on success, otherwise a negative error value
@@ -440,9 +464,10 @@ int asp_seek_set_search_result_cb(asp_seek_search_result_cb cb, void *user_data)
  * @see asp_initialize()
  * @see asp_seek_set_search_result_cb()
  */
-int asp_seek_unset_search_result_cb(void);
+int asp_seek_unset_search_result_cb(void) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Registers the callback function that will invoked when the status of an advertisement to a service is changed.
  * @since_tizen 4.0
  * @param[in] cb         The callback function to invoke
@@ -460,9 +485,10 @@ int asp_seek_unset_search_result_cb(void);
  * @see asp_advert_start_advertising()
  */
 int asp_advert_set_status_changed_cb(asp_advert_status_changed_cb cb,
-                                          void *user_data);
+                                          void *user_data) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Unregisters the callback function that will invoked when the status of an advertisement to a service is changed.
  * @since_tizen 4.0
  * @return 0 on success, otherwise a negative error value
@@ -473,9 +499,10 @@ int asp_advert_set_status_changed_cb(asp_advert_status_changed_cb cb,
  * @see asp_initialize()
  * @see asp_advert_set_status_changed_cb()
  */
-int asp_advert_unset_status_changed_cb(void);
+int asp_advert_unset_status_changed_cb(void) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Registers the callback called when ASP session connection is requested.
  * @since_tizen 4.0
  * @param[in] cb         The callback function to invoke
@@ -489,9 +516,10 @@ int asp_advert_unset_status_changed_cb(void);
  * @see asp_initialize()
  * @see asp_session_unset_request_cb()
  */
-int asp_session_set_request_cb(asp_session_request_cb cb, void *user_data);
+int asp_session_set_request_cb(asp_session_request_cb cb, void *user_data) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Unregisters the callback called ASP when session connection is requested.
  * @since_tizen 4.0
  * @return 0 on success, otherwise a negative error value
@@ -502,9 +530,10 @@ int asp_session_set_request_cb(asp_session_request_cb cb, void *user_data);
  * @see asp_initialize()
  * @see asp_session_set_request_cb()
  */
-int asp_session_unset_request_cb(void);
+int asp_session_unset_request_cb(void) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Registers the callback called when the session configuration is requested.
  * @since_tizen 4.0
  * @param[in] cb         The callback function to invoke
@@ -520,9 +549,10 @@ int asp_session_unset_request_cb(void);
  * @see asp_session_config_request_cb()
  */
 int asp_session_set_config_request_cb(asp_session_config_request_cb cb,
-                                      void *user_data);
+                                      void *user_data) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Unregisters the callback called when the session configuration is requested.
  * @since_tizen 4.0
  * @return 0 on success, otherwise a negative error value
@@ -533,9 +563,10 @@ int asp_session_set_config_request_cb(asp_session_config_request_cb cb,
  * @see asp_initialize()
  * @see asp_session_config_request_cb()
  */
-int asp_session_unset_config_request_cb(void);
+int asp_session_unset_config_request_cb(void) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Registers the callback called when the state of the session connection is changed.
  * @since_tizen 4.0
  * @param[in] cb         The callback function to invoke
@@ -550,9 +581,10 @@ int asp_session_unset_config_request_cb(void);
  * @see asp_session_unset_connect_status_cb()
  * @see asp_session_connect_status_cb()
  */
-int asp_session_set_connect_status_cb(asp_session_connect_status_cb cb, void *user_data);
+int asp_session_set_connect_status_cb(asp_session_connect_status_cb cb, void *user_data) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Unregisters the callback called when the state of the session connection is changed.
  * @since_tizen 4.0
  * @return 0 on success, otherwise a negative error value
@@ -563,9 +595,10 @@ int asp_session_set_connect_status_cb(asp_session_connect_status_cb cb, void *us
  * @see asp_initialize()
  * @see asp_session_set_connect_status_cb()
  */
-int asp_session_unset_connect_status_cb(void);
+int asp_session_unset_connect_status_cb(void) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Registers the callback called when the state of the session is changed.
  * @since_tizen 4.0
  * @param[in] cb         The callback function to invoke
@@ -580,9 +613,10 @@ int asp_session_unset_connect_status_cb(void);
  * @see asp_session_unset_status_cb()
  * @see asp_session_status_cb()
  */
-int asp_session_set_status_cb(asp_session_status_cb cb, void *user_data);
+int asp_session_set_status_cb(asp_session_status_cb cb, void *user_data) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Unregisters the callback called when the state of the session is changed.
  * @since_tizen 4.0
  * @return 0 on success, otherwise a negative error value
@@ -593,9 +627,10 @@ int asp_session_set_status_cb(asp_session_status_cb cb, void *user_data);
  * @see asp_initialize()
  * @see asp_session_set_status_cb()
  */
-int asp_session_unset_status_cb(void);
+int asp_session_unset_status_cb(void) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Registers the callback called when the state of the port is changed.
  * @since_tizen 4.0
  * @param[in] cb         The callback function to invoke
@@ -608,9 +643,10 @@ int asp_session_unset_status_cb(void);
  * @see asp_initialize()
  * @see asp_session_unset_status_cb()
  */
-int asp_session_set_port_status_cb(asp_session_port_status_cb cb, void *user_data);
+int asp_session_set_port_status_cb(asp_session_port_status_cb cb, void *user_data) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Unregisters the callback called when the state of the port is changed.
  * @since_tizen 4.0
  * @return 0 on success, otherwise a negative error value
@@ -621,9 +657,10 @@ int asp_session_set_port_status_cb(asp_session_port_status_cb cb, void *user_dat
  * @see asp_initialize()
  * @see asp_session_set_port_status_cb()
  */
-int asp_session_unset_port_status_cb(void);
+int asp_session_unset_port_status_cb(void) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Creates the description of a service to be advertised.
  * @since_tizen 4.0
  * @remarks The @a adv_service should be released using asp_advert_destroy().
@@ -644,9 +681,10 @@ int asp_session_unset_port_status_cb(void);
  * @pre Application Service Platform (ASP) must be initialized by asp_initialize().
  * @see asp_advert_destroy()
  */
-int asp_advert_create(char *instance_name, asp_advert_service_h *adv_service);
+int asp_advert_create(char *instance_name, asp_advert_service_h *adv_service) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Destroys the description of a service to be advertised.
  * @details If asp_advert_start_advertising() was called for a service,
  * asp_advert_stop_advertising() should be called for it before destroying it.
@@ -664,9 +702,10 @@ int asp_advert_create(char *instance_name, asp_advert_service_h *adv_service);
  * @pre This API needs asp_advert_create() before use
  * @see asp_advert_create()
  */
-int asp_advert_destroy(asp_advert_service_h adv_service);
+int asp_advert_destroy(asp_advert_service_h adv_service) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Sets the service type for a service to be advertised.
  * @details Application should set service type after creating service using
  * asp_advert_create() and before advertising service using
@@ -693,9 +732,10 @@ int asp_advert_destroy(asp_advert_service_h adv_service);
  * @see asp_advert_create()
  */
 int asp_advert_set_service_type(asp_advert_service_h adv_service,
-                                           char *service_type);
+                                           char *service_type) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Sets auto accept for a service to be advertised.
  * @details Application should set service auto accept after creating service using
  * asp_advert_create() and before advertising service using
@@ -716,9 +756,10 @@ int asp_advert_set_service_type(asp_advert_service_h adv_service,
  * @see asp_advert_create()
  */
 int asp_advert_set_auto_accept(asp_advert_service_h adv_service,
-                               bool auto_accept);
+                               bool auto_accept) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Adds the information for a service to be advertised.
  * @details Application should set service information after creating service using
  * asp_advert_create() and before advertising service using
@@ -743,10 +784,11 @@ int asp_advert_set_auto_accept(asp_advert_service_h adv_service,
  * @see asp_advert_create()
  */
 int asp_advert_add_info(asp_advert_service_h adv_service,
-                            const char *key, const char *value);
+                            const char *key, const char *value) TIZEN_DEPRECATED_API;
 
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Sets the information for a service to be advertised.
  * @details Application should set service information after creating service using
  * asp_advert_create() and before advertising service using
@@ -771,10 +813,11 @@ int asp_advert_add_info(asp_advert_service_h adv_service,
  * @see asp_advert_create()
  */
 int asp_advert_get_info(asp_advert_service_h adv_service, const char *key,
-                        int *length, char **value);
+                        int *length, char **value) TIZEN_DEPRECATED_API;
 
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Sets the information for a service to be advertised.
  * @details Application should set service information after creating service using
  * asp_advert_create() and before advertising service using
@@ -794,9 +837,10 @@ int asp_advert_get_info(asp_advert_service_h adv_service, const char *key,
  * @pre This API needs asp_advert_create() before use
  * @see asp_advert_create()
  */
-int asp_advert_remove_info(asp_advert_service_h adv_service, const char *key);
+int asp_advert_remove_info(asp_advert_service_h adv_service, const char *key) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Sets the status for a service to be advertised.
  * @details Application should set service status after creating service using
  * asp_advert_create() and before advertising service using
@@ -819,10 +863,11 @@ int asp_advert_remove_info(asp_advert_service_h adv_service, const char *key);
  * @see asp_advert_create()
  */
 int asp_advert_set_status(asp_advert_service_h adv_service,
-                          unsigned char status);
+                          unsigned char status) TIZEN_DEPRECATED_API;
 
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Sets the discovery mechanism for a service to be advertised.
  * @details Application should set discovery mechanism after creating service using
  * asp_advert_create() and before advertising service using
@@ -843,9 +888,10 @@ int asp_advert_set_status(asp_advert_service_h adv_service,
  * @pre This API needs asp_advert_create() before use
  * @see asp_advert_create()
  */
-int asp_advert_set_discovery_tech(asp_advert_service_h adv_service, int discovery_tech);
+int asp_advert_set_discovery_tech(asp_advert_service_h adv_service, int discovery_tech) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Sets the preferred connection for a service to be advertised.
  * @details Application should set preferred connection after creating service using
  * asp_advert_create() and before advertising service using
@@ -866,9 +912,10 @@ int asp_advert_set_discovery_tech(asp_advert_service_h adv_service, int discover
  * @see asp_advert_create()
  */
 int asp_advert_set_preferred_connection(asp_advert_service_h adv_service,
-                                        unsigned char preferred_connection);
+                                        unsigned char preferred_connection) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Sets the Wi-Fi P2P role for a service to be advertised.
  * @details Application should set role after creating service using
  * asp_advert_create() and before advertising service using
@@ -896,9 +943,10 @@ int asp_advert_set_preferred_connection(asp_advert_service_h adv_service,
  * @see asp_advert_create()
  */
 int asp_advert_set_p2p_role_scheme(asp_advert_service_h adv_service,
-                                   asp_advert_p2p_role_scheme_e role);
+                                   asp_advert_p2p_role_scheme_e role) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Gets the Wi-Fi P2P role for a service to be advertised.
  * @details Application should Get role after creating service using
  * asp_advert_create() and before advertising service using
@@ -924,9 +972,10 @@ int asp_advert_set_p2p_role_scheme(asp_advert_service_h adv_service,
  * @see asp_advert_create()
  */
 int asp_advert_get_p2p_role_scheme(asp_advert_service_h adv_service,
-                                   asp_advert_p2p_role_scheme_e *role);
+                                   asp_advert_p2p_role_scheme_e *role) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Sets the P2P configuration method for a service to be advertised.
  * @details Application should set configuration method after creating service using
  * asp_advert_create() and before advertising service using
@@ -948,8 +997,9 @@ int asp_advert_get_p2p_role_scheme(asp_advert_service_h adv_service,
  * @see asp_advert_create()
  */
 int asp_advert_set_p2p_config_method(asp_advert_service_h adv_service,
-                                     asp_wps_type_e config_method);
+                                     asp_wps_type_e config_method) TIZEN_DEPRECATED_API;
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Gets the P2P configuration method for a service to be advertised.
  * @details Application should Get configuration method after creating service using
  * asp_advert_create() and before advertising service using
@@ -970,9 +1020,10 @@ int asp_advert_set_p2p_config_method(asp_advert_service_h adv_service,
  * @see asp_advert_create()
  */
 int asp_advert_get_p2p_config_method(asp_advert_service_h adv_service,
-                                     asp_wps_type_e *config_method);
+                                     asp_wps_type_e *config_method) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Sets the service response for an advertised service.
  * @details Application should set service response after creating service using
  * asp_advert_create() and before advertising service using
@@ -996,9 +1047,10 @@ int asp_advert_get_p2p_config_method(asp_advert_service_h adv_service,
  * @see asp_advert_create()
  */
 int asp_advert_set_p2p_response(asp_advert_service_h adv_service,
-                                char *rsp_info, int length);
+                                char *rsp_info, int length) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Starts to advertise a service.
  * @details Application should start to advertise after creating service using
  * asp_advert_create(). If the service is being advertised, no changes can be made to it.
@@ -1020,9 +1072,10 @@ int asp_advert_set_p2p_response(asp_advert_service_h adv_service,
  * @see asp_advert_create()
  * @see asp_advert_stop_advertising()
  */
-int asp_advert_start_advertising(asp_advert_service_h adv_service);
+int asp_advert_start_advertising(asp_advert_service_h adv_service) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Stops a service advertisement.
  * @details Application should cancel to advertise after advertising service using
  * asp_advert_start_advertising().
@@ -1043,9 +1096,10 @@ int asp_advert_start_advertising(asp_advert_service_h adv_service);
  * @pre This API needs asp_advert_start_advertising() before use
  * @see asp_advert_start_advertising()
  */
-int asp_advert_stop_advertising(asp_advert_service_h adv_service);
+int asp_advert_stop_advertising(asp_advert_service_h adv_service) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Changes the advertising service status.
  * @details Application should change the advertising service
  * status after advertising service using asp_advert_start_advertising().
@@ -1070,9 +1124,10 @@ int asp_advert_stop_advertising(asp_advert_service_h adv_service);
  * @see asp_advert_start_advertising()
  */
 int asp_advert_change_service_status(asp_advert_service_h adv_service,
-                                     unsigned char status);
+                                     unsigned char status) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Creates the description of a seek operation.
  * @remarks The @a seek_service should be released using asp_seek_destroy().
  * @since_tizen 4.0
@@ -1095,9 +1150,10 @@ int asp_advert_change_service_status(asp_advert_service_h adv_service,
  * @pre Application Service Platform (ASP) must be initialized by asp_initialize().
  * @see asp_seek_destroy()
  */
-int asp_seek_create(char *service_type, asp_seek_service_h *seek_service);
+int asp_seek_create(char *service_type, asp_seek_service_h *seek_service) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Destroys the description of a seek operation.
  * @details If asp_seek_start() was called for a service,
  * asp_seek_stop() should be called for it before destroying it.
@@ -1116,9 +1172,10 @@ int asp_seek_create(char *service_type, asp_seek_service_h *seek_service);
  * @pre A seek service handle must be created with asp_seek_create().
  * @see asp_seek_create
  */
-int asp_seek_destroy(asp_seek_service_h seek_service);
+int asp_seek_destroy(asp_seek_service_h seek_service) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Adds the information for a service to be sought.
  * @details Application should set service information after creating service using
  * asp_seek_create() and before seeking service using asp_seek_start().
@@ -1139,9 +1196,10 @@ int asp_seek_destroy(asp_seek_service_h seek_service);
  * @pre This API needs asp_seek_create() before use
  * @see asp_seek_create()
  */
-int asp_seek_add_info(asp_seek_service_h seek_service, const char *key);
+int asp_seek_add_info(asp_seek_service_h seek_service, const char *key) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Removes the information for a service to be sought.
  * @details Application should set service information after creating service using
  * asp_seek_create() and before seeking service using asp_seek_start().
@@ -1161,9 +1219,10 @@ int asp_seek_add_info(asp_seek_service_h seek_service, const char *key);
  * @pre This API needs asp_seek_create() before use
  * @see asp_seek_create()
  */
-int asp_seek_remove_info(asp_seek_service_h seek_service, const char *key);
+int asp_seek_remove_info(asp_seek_service_h seek_service, const char *key) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Sets the discovery mechanism for a service to be sought.
  * @details Application should set service information after creating service using
  * asp_seek_create() and before seeking service using asp_seek_start().
@@ -1183,9 +1242,10 @@ int asp_seek_remove_info(asp_seek_service_h seek_service, const char *key);
  * @pre This API needs asp_seek_create() before use
  * @see asp_seek_create()
  */
-int asp_seek_set_discovery_tech(asp_seek_service_h seek_service, int discovery_tech);
+int asp_seek_set_discovery_tech(asp_seek_service_h seek_service, int discovery_tech) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Sets the preferred connection for a service to be sought.
  * @details Application should set service information after creating service using
  * asp_seek_create() and before seeking service using asp_seek_start().
@@ -1205,9 +1265,10 @@ int asp_seek_set_discovery_tech(asp_seek_service_h seek_service, int discovery_t
  * @see asp_seek_create()
  */
 int asp_seek_set_preferred_connection(asp_seek_service_h seek_service,
-                                      unsigned char preferred_connection);
+                                      unsigned char preferred_connection) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Starts to seek services on peer devices.
  * @details If the service is currently seeking, no changes can be made to it.
  * @since_tizen 4.0
@@ -1228,9 +1289,10 @@ int asp_seek_set_preferred_connection(asp_seek_service_h seek_service,
  * @see asp_seek_create()
  * @see asp_seek_stop()
  */
-int asp_seek_start(asp_seek_service_h seek_service);
+int asp_seek_start(asp_seek_service_h seek_service) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Stops seeking services.
  * @details Application should cancel to seek service after searching service using
  * asp_seek_start().
@@ -1251,9 +1313,10 @@ int asp_seek_start(asp_seek_service_h seek_service);
  * @pre A seek service handle must be created with asp_seek_create().
  * @see asp_seek_start()
  */
-int asp_seek_stop(asp_seek_service_h seek_service);
+int asp_seek_stop(asp_seek_service_h seek_service) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Creates a local Application Service Platform (ASP) session.
  * @since_tizen 4.0
  * @remarks The @a session should be released using asp_session_destroy().
@@ -1273,9 +1336,10 @@ int asp_seek_stop(asp_seek_service_h seek_service);
  * @see asp_session_destroy()
  */
 int asp_session_create(char *service_mac, unsigned int adv_id,
-                       asp_session_h *session);
+                       asp_session_h *session) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Destroys a local Application Service Platform (ASP) session.
  * @details Application should create session by asp_session_create().
  * @since_tizen 4.0
@@ -1292,9 +1356,10 @@ int asp_session_create(char *service_mac, unsigned int adv_id,
  * @pre This API needs asp_session_create() before use.
  * @see asp_session_create()
  */
-int asp_session_destroy(asp_session_h session);
+int asp_session_destroy(asp_session_h session) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Gets the session MAC for an Application Service Platform session.
  * @details Application should request to connect session by
  * asp_session_connect() or receive request by asp_session_request_cb().
@@ -1317,9 +1382,10 @@ int asp_session_destroy(asp_session_h session);
  * @see asp_session_connect()
  * @see asp_session_request_cb()
  */
-int asp_session_get_mac(asp_session_h session, char **session_mac);
+int asp_session_get_mac(asp_session_h session, char **session_mac) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Gets the ID of an Application Service Platform session.
  * @details Application should create local session by
  * asp_session_create() or receive request by asp_session_request_cb().
@@ -1339,9 +1405,10 @@ int asp_session_get_mac(asp_session_h session, char **session_mac);
  * @see asp_session_create()
  * @see asp_session_request_cb()
  */
-int asp_session_get_id(asp_session_h session, unsigned int *session_id);
+int asp_session_get_id(asp_session_h session, unsigned int *session_id) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Sets the information for an Application Service Platform session.
  * @details Application should set session_info after creating session by
  * asp_session_create() and before requesting to connect
@@ -1366,9 +1433,10 @@ int asp_session_get_id(asp_session_h session, unsigned int *session_id);
  * @pre This API needs asp_session_create() before use.
  * @see asp_session_create()
  */
-int asp_session_set_info(asp_session_h session, char *session_info);
+int asp_session_set_info(asp_session_h session, char *session_info) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Gets the information for an Application Service Platform session.
  * @details Application should get session_info after creating session by
  * asp_session_create() and before requesting to connect
@@ -1391,9 +1459,10 @@ int asp_session_set_info(asp_session_h session, char *session_info);
  * @pre This API needs asp_session_create() before use.
  * @see asp_session_create()
  */
-int asp_session_get_info(asp_session_h session, char **session_info);
+int asp_session_get_info(asp_session_h session, char **session_info) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Sets the Wi-Fi Direct group role in session.
  * @details Application should set role after creating session by
  * asp_session_create() and before requesting to connect
@@ -1422,9 +1491,10 @@ int asp_session_get_info(asp_session_h session, char **session_info);
  * @see asp_session_create()
  */
 int asp_session_set_p2p_role_scheme(asp_session_h session,
-                                    asp_advert_p2p_role_scheme_e role);
+                                    asp_advert_p2p_role_scheme_e role) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Gets the Wi-Fi Direct group role in session.
  * @since_tizen 4.0
  * @param[in] session  Application Service Platform session descriptor handle
@@ -1448,9 +1518,10 @@ int asp_session_set_p2p_role_scheme(asp_session_h session,
  * @see asp_session_create()
  */
 int asp_session_get_p2p_role_scheme(asp_session_h session,
-                                    asp_advert_p2p_role_scheme_e *role);
+                                    asp_advert_p2p_role_scheme_e *role) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Sets the Preferred WSC Configuration method.
  * @details Application should set the config method after creating session by
  * asp_session_create() and before requesting to connect
@@ -1473,9 +1544,10 @@ int asp_session_get_p2p_role_scheme(asp_session_h session,
  * @see asp_session_create()
  */
 int asp_session_set_p2p_config_method(asp_session_h session,
-                                      asp_wps_type_e config_method);
+                                      asp_wps_type_e config_method) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Gets the Preferred WSC Configuration method.
  * @since_tizen 4.0
  * @param[in] session         Application Service Platform session descriptor handle
@@ -1494,9 +1566,10 @@ int asp_session_set_p2p_config_method(asp_session_h session,
  * @see asp_session_create()
  */
 int asp_session_get_p2p_config_method(asp_session_h session,
-                                      asp_wps_type_e *config_method);
+                                      asp_wps_type_e *config_method) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Gets the session close status.
  * @details This call is valid only for closed sessions (sessions in the #ASP_SESSION_STATE_CLOSED
  *          state). If the @a session does not identify a closed session,
@@ -1514,9 +1587,10 @@ int asp_session_get_p2p_config_method(asp_session_h session,
  * @retval #ASP_ERROR_NOT_INITIALIZED    Not initialized
  * @retval #ASP_ERROR_SESSION_NOT_FOUND  Session not found
  */
-int asp_session_get_close_status(asp_session_h session, int *status);
+int asp_session_get_close_status(asp_session_h session, int *status) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Starts to connect the Application Service Platform session.
  * @since_tizen 4.0
  * @privlevel public
@@ -1535,9 +1609,10 @@ int asp_session_get_close_status(asp_session_h session, int *status);
  * @pre This API needs asp_session_create() before use.
  * @see asp_session_create()
  */
-int asp_session_connect(asp_session_h session);
+int asp_session_connect(asp_session_h session) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Confirms the Application Service Platform(ASP) session request.
  * @since_tizen 4.0
  * @privlevel public
@@ -1560,9 +1635,10 @@ int asp_session_connect(asp_session_h session);
  * @see asp_advert_start_advertising()
  * @see asp_session_create()
  */
-int asp_session_confirm(asp_session_h session, bool confirmed, char *pin);
+int asp_session_confirm(asp_session_h session, bool confirmed, char *pin) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Gets the Description of Application Service Platform (ASP) session to be connected.
  * @since_tizen 4.0
  * @param[in] session_mac  The MAC address of the P2P device that assigned
@@ -1583,9 +1659,10 @@ int asp_session_confirm(asp_session_h session, bool confirmed, char *pin);
  * @see asp_session_create()
  */
 int asp_session_get_handle(char *session_mac, unsigned int session_id,
-                           asp_session_h *session);
+                           asp_session_h *session) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Moves an Application Service Platform (ASP) session from Requested state to the Open state.
  * @since_tizen 4.0
  * @param[in] session  ASP session descriptor handle provided by
@@ -1604,9 +1681,10 @@ int asp_session_get_handle(char *session_mac, unsigned int session_id,
  * asp_advert_start_advertising()
  * @see asp_advert_start_advertising()
  */
-int asp_session_set_state_ready(asp_session_h session);
+int asp_session_set_state_ready(asp_session_h session) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Ends an Application Service Platform (ASP) session and releases associated resources.
  * @details The ASP may tear down the underlying ASP P2P group
  * if not other ASP sessions are using it.
@@ -1629,9 +1707,10 @@ int asp_session_set_state_ready(asp_session_h session);
  * @see asp_session_create()
  * @see asp_session_request_cb()
  */
-int asp_session_close(asp_session_h session);
+int asp_session_close(asp_session_h session) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Requests that incoming connections be allowed on a given port.
  * @since_tizen 4.0
  * @param[in] session     ASP session descriptor handle provided by
@@ -1653,9 +1732,10 @@ int asp_session_close(asp_session_h session);
  * @see asp_session_request_cb()
  */
 int asp_session_bind_port(asp_session_h session, char *ip_address,
-                          int port, int proto);
+                          int port, int proto) TIZEN_DEPRECATED_API;
 
 /**
+ * @deprecated Deprecated since 9.0
  * @brief Indicates that the service is no longer utilizing the port in the ASP session.
  * @since_tizen 4.0
  * @param[in] session     ASP session descriptor handle provided by
@@ -1677,7 +1757,7 @@ int asp_session_bind_port(asp_session_h session, char *ip_address,
  * @see asp_session_request_cb()
  */
 int asp_session_release_port(asp_session_h session, char *ip_address,
-                             int port, int proto);
+                             int port, int proto) TIZEN_DEPRECATED_API;
 
 /**
  * @}
index 5ac548cd7f9d7ed7b327d667e3ec2949b9a66eae..d19ac27a3987972611cf7e7969191750d86f311e 100755 (executable)
@@ -631,6 +631,7 @@ ERROR:
 //LCOV_EXCL_STOP
 int asp_initialize(void)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_initialize() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -674,6 +675,7 @@ int asp_initialize(void)
 
 int asp_deinitialize(void)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_deinitialize() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -706,6 +708,7 @@ int asp_deinitialize(void)
 }
 int asp_seek_set_search_result_cb(asp_seek_search_result_cb cb, void *user_data)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_seek_set_search_result_cb() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -722,6 +725,8 @@ int asp_seek_set_search_result_cb(asp_seek_search_result_cb cb, void *user_data)
 
 int asp_seek_unset_search_result_cb(void)
 {
+
+       ASP_LOGW("DEPRECATION WARNING: asp_seek_unset_search_result_cb() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -736,6 +741,7 @@ int asp_seek_unset_search_result_cb(void)
 
 int asp_advert_set_status_changed_cb(asp_advert_status_changed_cb cb, void *user_data)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_advert_set_status_changed_cb() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -751,6 +757,7 @@ int asp_advert_set_status_changed_cb(asp_advert_status_changed_cb cb, void *user
 
 int asp_advert_unset_status_changed_cb(void)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_advert_unset_status_changed_cb() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -765,6 +772,7 @@ int asp_advert_unset_status_changed_cb(void)
 
 int asp_session_set_request_cb(asp_session_request_cb cb, void *user_data)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_set_request_cb() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -780,6 +788,7 @@ int asp_session_set_request_cb(asp_session_request_cb cb, void *user_data)
 
 int asp_session_unset_request_cb(void)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_unset_request_cb() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -794,6 +803,7 @@ int asp_session_unset_request_cb(void)
 
 int asp_session_set_config_request_cb(asp_session_config_request_cb cb, void *user_data)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_set_config_request_cb() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -809,6 +819,7 @@ int asp_session_set_config_request_cb(asp_session_config_request_cb cb, void *us
 
 int asp_session_unset_config_request_cb(void)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_unset_config_request_cb() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -823,6 +834,7 @@ int asp_session_unset_config_request_cb(void)
 
 int asp_session_set_connect_status_cb(asp_session_connect_status_cb cb, void *user_data)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_set_connect_status_cb() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -839,6 +851,7 @@ int asp_session_set_connect_status_cb(asp_session_connect_status_cb cb, void *us
 
 int asp_session_unset_connect_status_cb(void)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_unset_connect_status_cb() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -853,6 +866,7 @@ int asp_session_unset_connect_status_cb(void)
 
 int asp_session_set_status_cb(asp_session_status_cb cb, void *user_data)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_set_status_cb() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -869,6 +883,7 @@ int asp_session_set_status_cb(asp_session_status_cb cb, void *user_data)
 
 int asp_session_unset_status_cb(void)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_unset_status_cb() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -883,6 +898,7 @@ int asp_session_unset_status_cb(void)
 
 int asp_session_set_port_status_cb(asp_session_port_status_cb cb, void *user_data)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_set_port_status_cb() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -898,6 +914,7 @@ int asp_session_set_port_status_cb(asp_session_port_status_cb cb, void *user_dat
 
 int asp_session_unset_port_status_cb(void)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_unset_port_status_cb() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -922,6 +939,7 @@ static bool __is_valid_instance_name(char *instance_name)
 
 int asp_advert_create(char *instance_name, asp_advert_service_h *adv_service)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_advert_create() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        int res = ASP_ERROR_NONE;
@@ -966,6 +984,7 @@ int asp_advert_create(char *instance_name, asp_advert_service_h *adv_service)
 
 int asp_advert_destroy(asp_advert_service_h adv_service)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_advert_destroy() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -995,6 +1014,7 @@ int asp_advert_destroy(asp_advert_service_h adv_service)
 int asp_advert_set_service_type(asp_advert_service_h adv_service,
                char *service_type)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_advert_set_service_type() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -1014,6 +1034,7 @@ int asp_advert_set_service_type(asp_advert_service_h adv_service,
 int asp_advert_set_auto_accept(asp_advert_service_h adv_service,
                bool auto_accept)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_advert_set_auto_accept() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -1039,6 +1060,7 @@ int asp_advert_set_auto_accept(asp_advert_service_h adv_service,
 int asp_advert_add_info(asp_advert_service_h adv_service,
                const char *key, const char *value)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_advert_add_info() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -1062,6 +1084,7 @@ int asp_advert_add_info(asp_advert_service_h adv_service,
 int asp_advert_get_info(asp_advert_service_h adv_service, const char *key,
                int *length, char **value)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_advert_get_info() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
        char *ret_val = NULL;
 
@@ -1097,6 +1120,7 @@ int asp_advert_get_info(asp_advert_service_h adv_service, const char *key,
 
 int asp_advert_remove_info(asp_advert_service_h adv_service, const char *key)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_advert_remove_info() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -1124,6 +1148,7 @@ int asp_advert_remove_info(asp_advert_service_h adv_service, const char *key)
 int asp_advert_set_status(asp_advert_service_h adv_service,
                unsigned char status)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_advert_set_status() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -1148,6 +1173,7 @@ int asp_advert_set_status(asp_advert_service_h adv_service,
 
 int asp_advert_set_discovery_tech(asp_advert_service_h adv_service, int discovery_tech)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_advert_set_discovery_tech() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -1172,6 +1198,7 @@ int asp_advert_set_discovery_tech(asp_advert_service_h adv_service, int discover
 int asp_advert_set_preferred_connection(asp_advert_service_h adv_service,
                unsigned char preferred_connection)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_advert_set_preferred_connection() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -1201,6 +1228,7 @@ int asp_advert_set_preferred_connection(asp_advert_service_h adv_service,
 int asp_advert_set_p2p_role_scheme(asp_advert_service_h adv_service,
                asp_advert_p2p_role_scheme_e role)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_advert_set_p2p_role_scheme() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -1230,6 +1258,7 @@ int asp_advert_set_p2p_role_scheme(asp_advert_service_h adv_service,
 int asp_advert_get_p2p_role_scheme(asp_advert_service_h adv_service,
                asp_advert_p2p_role_scheme_e *role)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_advert_get_p2p_role_scheme() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -1260,6 +1289,7 @@ int asp_advert_get_p2p_role_scheme(asp_advert_service_h adv_service,
 int asp_advert_set_p2p_config_method(asp_advert_service_h adv_service,
                asp_wps_type_e config_method)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_advert_set_p2p_config_method() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -1295,6 +1325,7 @@ int asp_advert_set_p2p_config_method(asp_advert_service_h adv_service,
 int asp_advert_get_p2p_config_method(asp_advert_service_h adv_service,
                asp_wps_type_e *config_method)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_advert_get_p2p_config_method() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -1322,6 +1353,7 @@ int asp_advert_get_p2p_config_method(asp_advert_service_h adv_service,
 int asp_advert_set_p2p_response(asp_advert_service_h adv_service,
                char *rsp_info, int length)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_advert_set_p2p_response() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        char *info = NULL;
@@ -1409,6 +1441,7 @@ static GVariant* __g_hash_table_to_g_variant(GHashTable *hash)
 
 int asp_advert_start_advertising(asp_advert_service_h adv_service)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_advert_start_advertising() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        GVariantBuilder *builder = NULL;
@@ -1475,6 +1508,7 @@ int asp_advert_start_advertising(asp_advert_service_h adv_service)
 
 int asp_advert_stop_advertising(asp_advert_service_h adv_service)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_advert_stop_advertising() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        GVariant *params = NULL;
@@ -1521,6 +1555,7 @@ int asp_advert_stop_advertising(asp_advert_service_h adv_service)
 int asp_advert_change_service_status(asp_advert_service_h adv_service,
                unsigned char status)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_advert_change_service_status() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        GVariantBuilder *builder = NULL;
@@ -1587,6 +1622,7 @@ int asp_advert_change_service_status(asp_advert_service_h adv_service,
 
 int asp_seek_create(char *service_type, asp_seek_service_h *seek_service)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_seek_create() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        int res = ASP_ERROR_NONE;
@@ -1630,6 +1666,7 @@ int asp_seek_create(char *service_type, asp_seek_service_h *seek_service)
 
 int asp_seek_destroy(asp_seek_service_h seek_service)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_seek_destroy() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -1658,6 +1695,7 @@ int asp_seek_destroy(asp_seek_service_h seek_service)
 
 int asp_seek_add_info(asp_seek_service_h seek_service, const char *key)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_seek_add_info() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        int res = ASP_ERROR_NONE;
@@ -1694,6 +1732,7 @@ int asp_seek_add_info(asp_seek_service_h seek_service, const char *key)
 
 int asp_seek_remove_info(asp_seek_service_h seek_service, const char *key)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_seek_remove_info() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        int res = ASP_ERROR_NONE;
@@ -1729,6 +1768,7 @@ int asp_seek_remove_info(asp_seek_service_h seek_service, const char *key)
 
 int asp_seek_set_discovery_tech(asp_seek_service_h seek_service, int discovery_tech)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_seek_set_discovery_tech() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -1764,6 +1804,7 @@ int asp_seek_set_discovery_tech(asp_seek_service_h seek_service, int discovery_t
 int asp_seek_set_preferred_connection(asp_seek_service_h seek_service,
                unsigned char preferred_connection)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_seek_set_preferred_connection() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
@@ -1789,6 +1830,7 @@ int asp_seek_set_preferred_connection(asp_seek_service_h seek_service,
 
 int asp_seek_start(asp_seek_service_h seek_service)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_seek_start() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        GVariantBuilder *builder = NULL;
@@ -1848,6 +1890,7 @@ int asp_seek_start(asp_seek_service_h seek_service)
 
 int asp_seek_stop(asp_seek_service_h seek_service)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_seek_stop() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
 
        GVariant *params = NULL;
@@ -1892,6 +1935,7 @@ int asp_seek_stop(asp_seek_service_h seek_service)
 
 int asp_session_create(char *service_mac, unsigned int adv_id, asp_session_h* session)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_create() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
        RET_ERR_IF_NOT_INITIALIZED(__ASP_LOG_FUNC_END__);
@@ -1926,6 +1970,7 @@ int asp_session_create(char *service_mac, unsigned int adv_id, asp_session_h* se
 
 int asp_session_destroy(asp_session_h session)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_destroy() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
        RET_ERR_IF_NOT_INITIALIZED(__ASP_LOG_FUNC_END__);
@@ -1952,6 +1997,7 @@ int asp_session_destroy(asp_session_h session)
 
 int asp_session_get_mac(asp_session_h session, char **session_mac)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_get_mac() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
        RET_ERR_IF_NOT_INITIALIZED(__ASP_LOG_FUNC_END__);
@@ -1977,6 +2023,7 @@ int asp_session_get_mac(asp_session_h session, char **session_mac)
 
 int asp_session_get_id(asp_session_h session, unsigned int *session_id)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_get_id() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
        RET_ERR_IF_NOT_INITIALIZED(__ASP_LOG_FUNC_END__);
@@ -2001,6 +2048,7 @@ int asp_session_get_id(asp_session_h session, unsigned int *session_id)
 
 int asp_session_set_info(asp_session_h session, char *service_info)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_set_info() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
        RET_ERR_IF_NOT_INITIALIZED(__ASP_LOG_FUNC_END__);
@@ -2024,6 +2072,7 @@ int asp_session_set_info(asp_session_h session, char *service_info)
 
 int asp_session_get_info(asp_session_h session, char **service_info)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_get_info() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
        RET_ERR_IF_NOT_INITIALIZED(__ASP_LOG_FUNC_END__);
@@ -2048,6 +2097,7 @@ int asp_session_get_info(asp_session_h session, char **service_info)
 int asp_session_set_p2p_role_scheme(asp_session_h session,
                asp_advert_p2p_role_scheme_e role)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_set_p2p_role_scheme() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
        RET_ERR_IF_NOT_INITIALIZED(__ASP_LOG_FUNC_END__);
@@ -2071,6 +2121,7 @@ int asp_session_set_p2p_role_scheme(asp_session_h session,
 int asp_session_get_p2p_role_scheme(asp_session_h session,
                asp_advert_p2p_role_scheme_e *role)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_get_p2p_role_scheme() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
        RET_ERR_IF_NOT_INITIALIZED(__ASP_LOG_FUNC_END__);
@@ -2094,6 +2145,7 @@ int asp_session_get_p2p_role_scheme(asp_session_h session,
 int asp_session_set_p2p_config_method(asp_session_h session,
                asp_wps_type_e config_method)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_set_p2p_config_method() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
        RET_ERR_IF_NOT_INITIALIZED(__ASP_LOG_FUNC_END__);
@@ -2117,6 +2169,7 @@ int asp_session_set_p2p_config_method(asp_session_h session,
 int asp_session_get_p2p_config_method(asp_session_h session,
                asp_wps_type_e *config_method)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_get_p2p_config_method() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
        RET_ERR_IF_NOT_INITIALIZED(__ASP_LOG_FUNC_END__);
@@ -2139,6 +2192,7 @@ int asp_session_get_p2p_config_method(asp_session_h session,
 
 int asp_session_get_close_status(asp_session_h session, int *status)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_get_close_status() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
        RET_ERR_IF_NOT_INITIALIZED(__ASP_LOG_FUNC_END__);
@@ -2162,6 +2216,7 @@ int asp_session_get_close_status(asp_session_h session, int *status)
 
 int asp_session_connect(asp_session_h session)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_connect() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
        RET_ERR_IF_NOT_INITIALIZED(__ASP_LOG_FUNC_END__);
@@ -2214,6 +2269,7 @@ int asp_session_connect(asp_session_h session)
 
 int asp_session_confirm(asp_session_h session, bool confirmed, char *pin)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_confirm() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
        RET_ERR_IF_NOT_INITIALIZED(__ASP_LOG_FUNC_END__);
@@ -2262,6 +2318,7 @@ int asp_session_get_handle(char *session_mac, unsigned int session_id,
                asp_session_h *session)
 
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_get_handle() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
        RET_ERR_IF_NOT_INITIALIZED(__ASP_LOG_FUNC_END__);
@@ -2319,8 +2376,8 @@ int asp_session_get_handle(char *session_mac, unsigned int session_id,
 }
 
 int asp_session_set_state_ready(asp_session_h session)
-
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_set_state_ready() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
        RET_ERR_IF_NOT_INITIALIZED(__ASP_LOG_FUNC_END__);
@@ -2356,6 +2413,7 @@ int asp_session_set_state_ready(asp_session_h session)
 
 int asp_session_close(asp_session_h session)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_close() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
        RET_ERR_IF_NOT_INITIALIZED(__ASP_LOG_FUNC_END__);
@@ -2393,6 +2451,7 @@ int asp_session_close(asp_session_h session)
 int asp_session_bind_port(asp_session_h session, char *ip_address,
                int port, int proto)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_bind_port() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
        RET_ERR_IF_NOT_INITIALIZED(__ASP_LOG_FUNC_END__);
@@ -2441,6 +2500,7 @@ int asp_session_bind_port(asp_session_h session, char *ip_address,
 int asp_session_release_port(asp_session_h session, char *ip_address,
                int port, int proto)
 {
+       ASP_LOGW("DEPRECATION WARNING: asp_session_release_port() is deprecated and will be removed from next release.");
        __ASP_LOG_FUNC_START__;
        CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_ASP);
        RET_ERR_IF_NOT_INITIALIZED(__ASP_LOG_FUNC_END__);