diff options
| author | Federico Angelilli <code@fedang.net> | 2024-11-24 23:00:33 +0100 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-11-24 23:00:33 +0100 |
| commit | 7ed39aca6d07b8ca69c0373f5623ffd6a5564412 (patch) | |
| tree | b640cf38ade176b6c1ad22608fed87dc83b18c63 /src/action.h | |
| parent | b5c06f76b9a7cbc64590ec247778704459efb3ea (diff) | |
Add other actions to config
Diffstat (limited to 'src/action.h')
| -rw-r--r-- | src/action.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/action.h b/src/action.h index d1ca4b3..712bf81 100644 --- a/src/action.h +++ b/src/action.h @@ -1,12 +1,15 @@ #ifndef COMET_ACTION_H #define COMET_ACTION_H +#include <stdbool.h> + #include "config.h" typedef enum { ACTION_TARGET, ACTION_SET_PAIR, - ACTION_RUN_SCRIPT, + ACTION_RUN_SYNC, + ACTION_RUN_ASYNC, } action_type_t; typedef struct { @@ -23,7 +26,7 @@ struct action { typedef struct action action_t; -void action_perform(action_t *action, block_t *block, config_t *config); +bool action_perform(action_t *action, block_t *block, config_t *config); int action_validate(action_t *action, config_t *config); |
