From bc70dead7fb518f073fecb21a04fa374e9ad6dd0 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Thu, 12 Sep 2024 19:19:45 +0200 Subject: Start working on actions --- src/action.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/action.h (limited to 'src/action.h') diff --git a/src/action.h b/src/action.h new file mode 100644 index 0000000..1990de6 --- /dev/null +++ b/src/action.h @@ -0,0 +1,25 @@ +#ifndef COMET_ACTION_H +#define COMET_ACTION_H + +#include "event.h" + +// TODO + +typedef enum { + ACTION_SCRIPT +} action_type_t; + +typedef struct action action_t; + +typedef struct layout layout_t; + +struct action { + action_type_t type; + char *label; +}; + +void action_perform(action_t *action, const layout_t *layout, event_t event); + +void action_free(action_t *action); + +#endif -- cgit v1.2.3