diff options
| author | Federico Angelilli <code@fedang.net> | 2024-09-12 19:19:45 +0200 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-09-12 19:19:45 +0200 |
| commit | bc70dead7fb518f073fecb21a04fa374e9ad6dd0 (patch) | |
| tree | ae26af52759cd63310a965a8e2bfe0f3b4083f62 /src/action.h | |
| parent | bd8dbe03ead6c73f28df517f8873675108277bf5 (diff) | |
Start working on actions
Diffstat (limited to 'src/action.h')
| -rw-r--r-- | src/action.h | 25 |
1 files changed, 25 insertions, 0 deletions
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 |
