/**
* @brief Called when a device power state is changed
- * @details If both change_state_wait_callback and change_state_callback have registered to the same power state, \n
- * then the change_state_wait_callback will be invoked first and the change_state_callback will follow.
+ * @details If both power_change_state_wait_callback and power_change_state_callback have registered to the same power state, \n
+ * then the power_change_state_wait_callback will be invoked first and the power_change_state_callback will follow.
* @param[out] info Information about state change
* @param[out] user_data User data passed from the callback registration
*/
-typedef void (*change_state_wait_callback) (const struct device_change_state_info *info, void *user_data);
+typedef void (*power_change_state_wait_callback) (const struct device_change_state_info *info, void *user_data);
/**
* @brief Add a callback to observe power state change
* @retval #DEVICE_ERROR_NONE Successful
* @retval #DEVICE_ERROR_OPERATION_FAILED Operation failed
*/
-int device_power_add_change_state_wait_callback(uint64_t state_bits, change_state_wait_callback cb, void *user_data);
+int device_power_add_change_state_wait_callback(uint64_t state_bits, power_change_state_wait_callback cb, void *user_data);
/**
* @brief Notify the deviced that it is ready for the actual action.
* @details Notify the deviced that it is ok to take an actual action of change state. \n
- * This API only works on the id received from change_state_wait_callback.
+ * This API only works on the id received from power_change_state_wait_callback.
* @since_tizen 6.5
* @param[in] id Id of a state change
* @return 0 on success,
/**
* @brief Async callback of device_power_change_state().
- * @details If both change_state_wait_callback and change_state_callback have registered to the same power state, \n
- * then the change_state_wait_callback will be invoked first and the change_state_callback will follow.
+ * @details If both power_change_state_wait_callback and power_change_state_callback have registered to the same power state, \n
+ * then the power_change_state_wait_callback will be invoked first and the power_change_state_callback will follow.
* @since_tizen 6.5
* @param[out] state State to be changed
* @param[out] retval Return of change state
* @param[out] user_data The user data passed from the change state function
*/
-typedef void (*change_state_callback) (uint64_t state, int retval, void *user_data);
+typedef void (*power_change_state_callback) (uint64_t state, int retval, void *user_data);
/**
* @brief Send request for changing power state asynchronously.
* @retval #DEVICE_ERROR_NONE Successful
* @retval #DEVICE_ERROR_OPERATION_FAILED Operation failed
*/
-int device_power_change_state(uint64_t state, int timeout_sec, change_state_callback cb, void *user_data);
+int device_power_change_state(uint64_t state, int timeout_sec, power_change_state_callback cb, void *user_data);
/**
* @brief Check if reboot is possible on the current device state