revise API headers
authorYoungjae Shin <yj99.shin@samsung.com>
Thu, 16 Apr 2020 09:20:45 +0000 (18:20 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Tue, 21 Apr 2020 01:35:48 +0000 (10:35 +0900)
include/modes.h
include/modes_types.h

index 50d0536ef9e064342c05e841527af933297bb587..1b27f88ce99fbbbfa34512eb09b1cfbbd69ae285 100644 (file)
@@ -194,19 +194,6 @@ int modes_register_mode(modes_h handle, modes_mode_h mode);
  */
 void modes_destroy_mode(modes_mode_h mode);
 
-/**
- * @brief Specifies the type of function passed to modes_noti_connect().
- * @details When the Modes apply/undo a mode, it is called, immediately.
- * @since_tizen 6.0
- * @param[in] mode_name The name of mode which was changed state
- * @param[in] user_data The user data to pass to the function
- *
- * @pre The callback must be registered using modes_noti_connect()
- *
- * @see modes_subscribe_mode_changes()
- * @see modes_unsubscribe_mode_changes()
- */
-typedef int (*modes_noti_fn) (const char *mode_name, int state, void *user_data);
 /**
  * @brief Adds callback for recognizing the changed of mode.
  * @details Sets a function to be called when the mode is changed.
index 06e4355311144f7f30a18b8dbfa244c07e3fdb4d..fc0c9bf33cac1517af71fdfac3859cb893071208 100644 (file)
@@ -70,6 +70,20 @@ typedef struct mds_action_handle* modes_action_h;
  * @since_tizen 6.0
  */
 typedef struct mds_list_data_handle* mode_list_data_h;
+
+/**
+ * @brief Specifies the type of function passed to modes_noti_connect().
+ * @details When the Modes apply/undo a mode, it is called, immediately.
+ * @since_tizen 6.0
+ * @param[in] mode_name The name of mode which was changed state
+ * @param[in] user_data The user data to pass to the function
+ *
+ * @pre The callback must be registered using modes_noti_connect()
+ *
+ * @see modes_subscribe_mode_changes()
+ * @see modes_unsubscribe_mode_changes()
+ */
+typedef int (*modes_noti_fn) (const char *mode_name, int state, void *user_data);
 /**
  * @}
  */