From 7ed39aca6d07b8ca69c0373f5623ffd6a5564412 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Sun, 24 Nov 2024 23:00:33 +0100 Subject: Add other actions to config --- src/action.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/action.h') 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 + #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); -- cgit v1.2.3