#ifndef COMET_ACTION_H #define COMET_ACTION_H #include "config.h" //typedef enum { // ACTION_SET, // ACTION_RUN, //} action_type_t; typedef struct { //action_type_t type; char *key; char *value; } action_part_t; struct action { char *label; action_part_t *parts; size_t length; }; typedef struct action action_t; void action_perform(action_t *action, block_t *block, config_t *config); int action_validate(action_t *action, config_t *config); void action_free(action_t *action); #endif