feat: inject pipeline env and dont use system

This commit is contained in:
2024-08-06 18:38:42 +02:00
parent 1bcdca9e21
commit d8b8b7b729
6 changed files with 47 additions and 8 deletions

View File

@ -13,7 +13,10 @@ typedef optional_type(pipeline_conf*) optional_pipeline_conf;
typedef struct {
const struct inotify_event* event;
const char* command;
char* name;
char* url;
char* trigger;
char* command;
} pipeline_event;
// create a new pipeline_conf struct instance based on a configuration line.

View File

@ -22,4 +22,6 @@ char* trim(const char* const str);
typedef void(*line_handler)(const char*);
void per_line(const char* file, line_handler handler);
char* join(const char* a, const char* b);
#endif