diff options
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); |
