Remove conditional statements for Moible/Wearable profile 70/306070/1
authorChanggyu Choi <changyu.choi@samsung.com>
Fri, 16 Feb 2024 04:30:34 +0000 (13:30 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Fri, 16 Feb 2024 04:30:34 +0000 (13:30 +0900)
Change-Id: Ide73d3258759304cf60d9fb809b95e0df310d10c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
include/app_preference.h

index 4aeb98c5a8bd470bf984a822d1707b3ac1b99292..45677f2385cf224797448e9a68ad16765bccf36d 100644 (file)
@@ -37,7 +37,7 @@ extern "C" {
 
 /**
  * @brief Enumeration for Preference Error.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  */
 typedef enum {
        PREFERENCE_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
@@ -63,7 +63,7 @@ typedef enum {
 /**
  * @brief Called when the given key's value in the preference changes.
  * @details When the @a key is added or removed, this callback function is skipped(only update can be handled).
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  * @param[in] key The name of the key in the preference
  * @param[in] user_data The user data passed from the callback registration function
  * @pre This function is invoked when the value of the key is overwritten after you register this callback using preference_set_changed_cb().
@@ -79,7 +79,7 @@ typedef void (*preference_changed_cb) (const char *key, void *user_data);
 
 /**
  * @brief Called to get key string, once for each key-value pair in the preference.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  * @remarks You should not free the @a key returned by this function.
  * @param[in] key The key of the value added to the preference
  * @param[in] user_data The user data passed from the foreach function
@@ -93,7 +93,7 @@ typedef bool (*preference_item_cb)(const char *key, void *user_data);
 
 /**
  * @brief Sets an integer value in the preference.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  * @param[in] key The name of the key to modify
  * @param[in] value  The new @c int value for the given key
  * @return @c 0 on success,
@@ -109,7 +109,7 @@ int preference_set_int(const char *key, int value);
 
 /**
  * @brief Gets an integer value from the preference.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  * @param[in] key The name of the key to retrieve
  * @param[out] value The @c int value for the given key
  * @return @c 0 on success,
@@ -126,7 +126,7 @@ int preference_get_int(const char *key, int *value);
 
 /**
  * @brief Sets a double value in the preference.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  * @param[in] key The name of the key to modify
  * @param[in] value  The new @c double value associated with the given key
  * @return @c 0 on success,
@@ -142,7 +142,7 @@ int preference_set_double(const char *key, double value);
 
 /**
  * @brief Gets a double value from the preference.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  * @param[in] key The name of the key to retrieve
  * @param[out] value The @c double value associated with the given key
  * @return @c 0 on success,
@@ -160,7 +160,7 @@ int preference_get_double(const char *key, double *value);
 /**
  * @brief Sets a string value in the preference.
  * @details It makes a deep copy of the added string value.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  * @param[in] key The name of the key to modify
  * @param[in] value The new @c string value associated with the given key
  * @return @c 0 on success,
@@ -176,7 +176,7 @@ int preference_set_string(const char *key, const char *value);
 
 /**
  * @brief Gets a string value from the preference.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  * @remarks @a value must be released using free().
  * @param[in] key The name of the key to retrieve
  * @param[out] value The @c string value associated with the given key
@@ -194,7 +194,7 @@ int preference_get_string(const char *key, char **value);
 
 /**
  * @brief Sets a boolean value in the preference.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  * @param[in] key The name of the key to modify
  * @param[in] value The new @c boolean value associated with the given key
  * @return @c 0 on success,
@@ -210,7 +210,7 @@ int preference_set_boolean(const char *key, bool value);
 
 /**
  * @brief Gets a boolean value from the preference.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  * @param[in] key The name of the key to retrieve
  * @param[out] value The @c boolean value associated with the given key
  * @return @c 0 on success,
@@ -227,7 +227,7 @@ int preference_get_boolean(const char *key, bool *value);
 
 /**
  * @brief Removes any value with the given @a key from the preference.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  * @param[in] key The name of the key to remove
  * @return @c 0 on success,
  *         otherwise a negative error value
@@ -242,7 +242,7 @@ int preference_remove(const char *key);
 
 /**
  * @brief Checks whether the given @a key exists in the preference.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  * @param[in] key The name of the key to check
  * @param[out] existing If @c true the @a key exists in the preference,
  *                         otherwise @c false
@@ -258,7 +258,7 @@ int preference_is_existing(const char *key, bool *existing);
 
 /**
  * @brief Removes all key-value pairs from the preference.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  * @return @c 0 on success,
  *         otherwise a negative error value
  * @retval #PREFERENCE_ERROR_NONE Successful
@@ -271,7 +271,7 @@ int preference_remove_all(void);
 
 /**
  * @brief Registers a callback function to be invoked when value of the given key in the preference changes.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  * @param[in] key The name of the key to monitor
  * @param[in] callback The callback function to register
  * @param[in] user_data The user data to be passed to the callback function
@@ -291,7 +291,7 @@ int preference_set_changed_cb(const char *key, preference_changed_cb callback, v
 
 /**
  * @brief Unregisters the callback function.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  * @param[in] key The name of the key to monitor
  * @return @c 0 on success,
  *         otherwise a negative error value
@@ -307,7 +307,7 @@ int preference_unset_changed_cb(const char *key);
 
 /**
  * @brief Retrieves all key-value pairs in the preference by invoking the callback function.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
  * @param[in] callback The callback function to get key value once for each key-value pair in the preference
  * @param[in] user_data The user data to be passed to the callback function
  * @return @c 0 on success,