static void _on_changed_mode(mdsDbus *mdsc_dbus, const char *mode, int state, gpointer user_data)
{
- RET_IF(NULL == user_data);
+ //TODO:: should support multi callback
+ //RET_IF(NULL == user_data);
mdsc_noti_data.cb(mode, state, mdsc_noti_data.user_data);
}
* @see modes_subscribe_mode_changes()
* @see modes_unsubscribe_mode_changes()
*/
-typedef int(*modes_noti_fn) (const char *mode_name, int state, void *user_data);
-
+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.