static void unsubscribe_from_service(void) { profile_track_remove_profile_cb(profile_name_change, NULL); profile_track_remove_active_cb(profile_value_change, NULL); profile_tracker_quit(); }
ProfileControl::~ProfileControl() { s_instanceCounter--; if (s_instanceCounter == 0) { profile_tracker_quit(); } profile_track_remove_profile_cb((profile_track_profile_fn_data) currentProfileChangedCallback, this); profile_track_remove_active_cb((profile_track_value_fn_data) &updateStateCallBackTrampoline, this); profile_track_remove_change_cb((profile_track_value_fn_data) &updateStateCallBackTrampoline, this); }