labwc/include/action.h
Consolatis f0a3f365e5 Centralize freeing of action lists
Reduces some code duplication and makes it easier to extend struct action
2022-01-23 10:36:04 -05: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