return MODES_ERROR_NONE;
}
-//TODO: modes_noti_disconnect(ModesNotiFunc cb, void *user_data)
+//TODO: multi callbacks
API void modes_unsubscribe_mode_changes(modes_h handle)
{
RET_IF(0 == mdsc_noti_signal_ID);
RET_IF(NULL == handle->conn);
g_signal_handler_disconnect(handle->conn, mdsc_noti_signal_ID);
+ mdsc_noti_signal_ID = 0;
mdsc_noti_data.cb = NULL;
mdsc_noti_data.user_data = NULL;
}
*
* @see modes_subscribe_mode_changes()
*/
-void modes_unsubscribe_mode_changes();
+void modes_unsubscribe_mode_changes(modes_h handle);
//TODO:it must be opaque type
typedef struct {