예제 #1
0
파일: powersavemode.c 프로젝트: guhl/mce
void g_module_unload(GModule *module)
{
	(void)module;

	/* Remove gconf notifications  */
	mce_gconf_notifier_remove(psm_gconf_cb_id),
		psm_gconf_cb_id = 0;

	mce_gconf_notifier_remove(force_psm_gconf_cb_id),
		force_psm_gconf_cb_id = 0;

	mce_gconf_notifier_remove(psm_threshold_gconf_cb_id),
		psm_threshold_gconf_cb_id = 0;

	/* Remove dbus handlers */
	mce_psm_quit_dbus();

	/* Remove triggers/filters from datapipes */
	remove_output_trigger_from_datapipe(&thermal_state_pipe,
					    thermal_state_trigger);
	remove_output_trigger_from_datapipe(&battery_level_pipe,
					    battery_level_trigger);
	remove_output_trigger_from_datapipe(&charger_state_pipe,
					    charger_state_trigger);

	return;
}
예제 #2
0
파일: memnotify.c 프로젝트: kimmoli/mce
/** Remove GConf change notifiers
 */
static void memnotify_gconf_quit(void)
{
    mce_gconf_notifier_remove(memnotify_gconf_warning_used_id),
        memnotify_gconf_warning_used_id = 0;

    mce_gconf_notifier_remove(memnotify_gconf_warning_active_id),
        memnotify_gconf_warning_active_id = 0;

    mce_gconf_notifier_remove(memnotify_gconf_critical_used_id),
        memnotify_gconf_critical_used_id = 0;

    mce_gconf_notifier_remove(memnotify_gconf_critical_active_id),
        memnotify_gconf_critical_active_id = 0;
}
예제 #3
0
파일: doubletap.c 프로젝트: kimmoli/mce
void g_module_unload(GModule *module)
{
        (void)module;

        /* Remove gconf notifications  */
        mce_gconf_notifier_remove(dbltap_mode_gconf_id),
                dbltap_mode_gconf_id = 0;

        /* Remove triggers/filters from datapipes */
        remove_output_trigger_from_datapipe(&proximity_sensor_pipe,
                                            dbltap_proximity_trigger);
        remove_output_trigger_from_datapipe(&proximity_blank_pipe,
                                            dbltap_proximity_blank_trigger);
        remove_output_trigger_from_datapipe(&lid_cover_policy_pipe,
                                            dbltap_lid_cover_policy_trigger);

        /* Free config strings */
        g_free(dbltap_ctrl_path);
        g_free(dbltap_enable_val);
        g_free(dbltap_disable_val);

        g_free(sleep_mode_ctrl_path);
        g_free(sleep_mode_allow_val);
        g_free(sleep_mode_deny_val);

        return;
}
예제 #4
0
/** Remove gconf notification callbacks
 */
static void fba_gconf_quit(void)
{
	mce_gconf_notifier_remove(use_als_gconf_id),
		use_als_gconf_id = 0;

	mce_gconf_notifier_remove(als_input_filter_gconf_id),
		als_input_filter_gconf_id = 0;

	mce_gconf_notifier_remove(als_sample_time_gconf_id),
		als_sample_time_gconf_id = 0;

	mce_gconf_notifier_remove(color_profile_gconf_id),
		color_profile_gconf_id = 0;

	quit_color_profiles();
}
예제 #5
0
파일: proximity.c 프로젝트: g7/mce
void g_module_unload(GModule *module)
{
	(void)module;

	/* Remove gconf notifications  */
	mce_gconf_notifier_remove(use_ps_conf_id),
		use_ps_conf_id = 0;

	/* Remove triggers/filters from datapipes */
	remove_output_trigger_from_datapipe(&display_state_pipe,
					    display_state_trigger);
	remove_input_trigger_from_datapipe(&alarm_ui_state_pipe,
					   alarm_ui_state_trigger);
	remove_input_trigger_from_datapipe(&call_state_pipe,
					   call_state_trigger);
	remove_output_trigger_from_datapipe(&submode_pipe,
					    submode_trigger);

	/* Disable proximity monitoring to remove callbacks
	 * to unloaded module */
	disable_proximity_monitor();
	return;
}