labwc/include/action.h
Consolatis 26e025efa1 Centralize freeing of action lists
Reduces some code duplication and makes it easier to extend struct action
2022-01-23 13:46:46 +01:00

20 lines
419 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __LABWC_ACTION_H
#define __LABWC_ACTION_H
struct server;
struct view;
struct action {
uint32_t type;
char *arg;
struct wl_list link;
};
struct action *action_create(const char *action_name);
void action_list_free(struct wl_list *action_list);
void action(struct view *activator, struct server *server,
struct wl_list *actions, uint32_t resize_edges);
#endif