/**
* @brief Enumeration for error codes for runtime information.
+ * @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif
*/
typedef enum {
RUNTIME_INFO_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */
RUNTIME_INFO_ERROR_IO_ERROR = TIZEN_ERROR_IO_ERROR, /**< An input/output error occurred when read value from system */
RUNTIME_INFO_ERROR_REMOTE_IO = TIZEN_ERROR_REMOTE_IO, /**< Remote I/O error occured */
RUNTIME_INFO_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< No permission to use the api */
- RUNTIME_INFO_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< Not supported parameter @if MOBILE (Since 2.3.1) @endif */
+ RUNTIME_INFO_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< Not supported parameter */
+ RUNTIME_INFO_ERROR_NO_DATA = TIZEN_ERROR_NO_DATA /**< No data available (Since 3.0) */
} runtime_info_error_e;
/**
* @brief Enumeration for keys for runtime information..
+ * @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif
*/
typedef enum {
RUNTIME_INFO_KEY_BLUETOOTH_ENABLED = 2, /**<Indicates whether Bluetooth is enabled. */
/**
* @brief Enumeration for Wi-Fi status.
+ * @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif
*/
typedef enum {
RUNTIME_INFO_WIFI_STATUS_DISABLED, /**< GPS is disabled. */
/**
* @brief Enumeration for GPS status.
+ * @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif
*/
typedef enum {
RUNTIME_INFO_GPS_STATUS_DISABLED, /**< GPS is disabled. */
/**
* @brief Enumeration for audio jack status.
+ * @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif
*/
typedef enum {
RUNTIME_INFO_AUDIO_JACK_STATUS_UNCONNECTED, /**< Audio jack is not connected */
/**
* @brief Called when the runtime information changes
- * @since_tizen 2.3
+ * @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif
*
* @param[in] key The type of notification
* @param[in] user_data The user data passed from the callback registration function
* @brief Gets the integer value of the runtime information.
* @details This function gets current state of the given key which represents specific runtime information.
*
- * @since_tizen 2.3
+ * @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif
*
* @param[in] key The runtime information status key from which data should be read
* @param[out] value The current value of the given key
* @retval #RUNTIME_INFO_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RUNTIME_INFO_ERROR_IO_ERROR An input/output error occurred when read value from system
* @retval #RUNTIME_INFO_ERROR_PERMISSION_DENIED No permission to use the api
- * @retval #RUNTIME_INFO_ERROR_NOT_SUPPORTED Not supported parameter @if MOBILE (Since 2.3.1) @endif
+ * @retval #RUNTIME_INFO_ERROR_NOT_SUPPORTED Not supported parameter
*/
int runtime_info_get_value_int(runtime_info_key_e key, int *value);
* @brief Gets the boolean value from the runtime information.
* @details This function gets current state of the given key which represents specific runtime information.
*
- * @since_tizen 2.3
+ * @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif
*
* @param[in] key The runtime information key from which data should be read
* @param[out] value The current value of the given key
* @retval #RUNTIME_INFO_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RUNTIME_INFO_ERROR_IO_ERROR An input/output error occurred when read value from system
* @retval #RUNTIME_INFO_ERROR_PERMISSION_DENIED No permission to use the api
- * @retval #RUNTIME_INFO_ERROR_NOT_SUPPORTED Not supported parameter @if MOBILE (Since 2.3.1) @endif
+ * @retval #RUNTIME_INFO_ERROR_NOT_SUPPORTED Not supported parameter
*/
int runtime_info_get_value_bool(runtime_info_key_e key, bool *value);
* @brief Gets the double value from the runtime information.
* @details This function gets current state of the given key which represents specific runtime information.
*
- * @since_tizen 2.3
+ * @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif
*
* @param[in] key The runtime information key from which data should be read
* @param[out] value The current value of the given key
* @retval #RUNTIME_INFO_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RUNTIME_INFO_ERROR_IO_ERROR An input/output error occurred when read value from system
* @retval #RUNTIME_INFO_ERROR_PERMISSION_DENIED No permission to use the api
- * @retval #RUNTIME_INFO_ERROR_NOT_SUPPORTED Not supported parameter @if MOBILE (Since 2.3.1) @endif
+ * @retval #RUNTIME_INFO_ERROR_NOT_SUPPORTED Not supported parameter
*/
int runtime_info_get_value_double(runtime_info_key_e key, double *value);
* @brief Gets the string value for specified runtime information.
* @details This function gets current state of the given key which represents specific runtime information.
*
- * @since_tizen 2.3
+ * @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif
*
* @remarks You must release @a value using free().
*
* @retval #RUNTIME_INFO_ERROR_IO_ERROR An input/output error occurred when read value from system
* @retval #RUNTIME_INFO_ERROR_OUT_OF_MEMORY Out of memory
* @retval #RUNTIME_INFO_ERROR_PERMISSION_DENIED No permission to use the api
- * @retval #RUNTIME_INFO_ERROR_NOT_SUPPORTED Not supported parameter @if MOBILE (Since 2.3.1) @endif
+ * @retval #RUNTIME_INFO_ERROR_NOT_SUPPORTED Not supported parameter
*/
int runtime_info_get_value_string(runtime_info_key_e key, char **value);
/**
* @brief Registers a change event callback for given runtime information key.
- * @since_tizen 2.3
+ * @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif
*
* @param[in] key The runtime information type
* @param[in] callback The callback function to invoke
* @retval #RUNTIME_INFO_ERROR_NONE Successful
* @retval #RUNTIME_INFO_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RUNTIME_INFO_ERROR_PERMISSION_DENIED No permission to use the api
- * @retval #RUNTIME_INFO_ERROR_NOT_SUPPORTED Not supported parameter @if MOBILE (Since 2.3.1) @endif
+ * @retval #RUNTIME_INFO_ERROR_NOT_SUPPORTED Not supported parameter
* @post runtime_info_changed_cb() will be invoked.
*
* @see runtime_info_unset_changed_cb()
/**
* @brief Unregisters the callback function.
- * @since_tizen 2.3
+ * @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif
*
* @param[in] key The runtime information type
*
* @retval #RUNTIME_INFO_ERROR_NONE Successful
* @retval #RUNTIME_INFO_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RUNTIME_INFO_ERROR_IO_ERROR An I/O error occurred (during file open operation)
+ * @retval #RUNTIME_INFO_ERROR_NO_DATA No data available (Since 3.0)
*/
int runtime_info_get_processor_current_frequency(int core_idx, int *cpu_freq);
* @retval #RUNTIME_INFO_ERROR_NONE Successful
* @retval #RUNTIME_INFO_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #RUNTIME_INFO_ERROR_IO_ERROR An I/O error occurred (during file open operation)
+ * @retval #RUNTIME_INFO_ERROR_NO_DATA No data available (Since 3.0)
*/
int runtime_info_get_processor_max_frequency(int core_idx, int *cpu_freq);