Esempio n. 1
0
int
efx_vi_filter_stop(struct efx_vi_state *vih, struct filter_resource_t *fh)
{
	struct efx_vi_state *efx_state = vih;
	struct filter_resource *frs = (struct filter_resource *)fh;
	int rc;

	rc = efrm_filter_resource_clear(frs);
	release_filter(efx_state, frs);

	return rc;
}
Esempio n. 2
0
static void cleanup (void)
{
    HotkeyConfiguration* hotkey;
    if (!loaded) return;
    ungrab_keys ();
    release_filter();
    hotkey = &(plugin_cfg.first);
    hotkey = hotkey->next;
    while (hotkey)
    {
        HotkeyConfiguration * old;
        old = hotkey;
        hotkey = hotkey->next;
        free(old);
    }
    plugin_cfg.first.next = NULL;
    plugin_cfg.first.key = 0;
    plugin_cfg.first.event = 0;
    plugin_cfg.first.mask = 0;
    loaded = FALSE;
}