diff options
Diffstat (limited to 'src/blogc-make/reloader.h')
-rw-r--r-- | src/blogc-make/reloader.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/blogc-make/reloader.h b/src/blogc-make/reloader.h index 40d2fe9..cafd67c 100644 --- a/src/blogc-make/reloader.h +++ b/src/blogc-make/reloader.h @@ -9,21 +9,12 @@ #ifndef _MAKE_RELOADER_H #define _MAKE_RELOADER_H -#include <stdbool.h> #include "../common/utils.h" #include "ctx.h" #include "rules.h" -typedef struct { - bm_ctx_t *ctx; - bm_rule_exec_func_t rule_exec; - bc_slist_t *outputs; - bc_trie_t *args; - bool running; -} bm_reloader_t; - -bm_reloader_t* bm_reloader_new(bm_ctx_t *ctx, bm_rule_exec_func_t rule_exec, +int bm_reloader_run(bm_ctx_t **ctx, bm_rule_exec_func_t rule_exec, bc_slist_t *outputs, bc_trie_t *args); -void bm_reloader_stop(bm_reloader_t *reloader); +void bm_reloader_stop(int signum); #endif /* _MAKE_RELOADER_H */ |