power: rename callback function
[platform/core/api/device.git] / include / power-internal.h
index ed85e41..48051b8 100644 (file)
@@ -78,12 +78,12 @@ struct device_change_state_info {
 
 /**
  * @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
@@ -101,12 +101,12 @@ typedef void (*change_state_wait_callback) (const struct device_change_state_inf
  * @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,
@@ -125,14 +125,14 @@ void device_power_remove_change_state_wait_callback(uint64_t state_bits);
 
 /**
  * @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.
@@ -146,7 +146,7 @@ typedef void (*change_state_callback) (uint64_t state, int retval, void *user_da
  * @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