aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-make/reloader.h
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2017-03-04 22:28:12 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2017-03-04 22:28:12 +0100
commitbda4570a0273cffb60ff63743110bc7a8026216b (patch)
tree236799fc528b2c8027852b07029790235115430e /src/blogc-make/reloader.h
parent6f497276ca155173b4679e069de5b148af2905c0 (diff)
downloadblogc-bda4570a0273cffb60ff63743110bc7a8026216b.tar.gz
blogc-bda4570a0273cffb60ff63743110bc7a8026216b.tar.bz2
blogc-bda4570a0273cffb60ff63743110bc7a8026216b.zip
make: make the reloader interface generic
this way it can run any rule, even if we don't need this feature now
Diffstat (limited to 'src/blogc-make/reloader.h')
-rw-r--r--src/blogc-make/reloader.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/blogc-make/reloader.h b/src/blogc-make/reloader.h
index 70464a8..d688ccf 100644
--- a/src/blogc-make/reloader.h
+++ b/src/blogc-make/reloader.h
@@ -16,10 +16,13 @@
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);
+bm_reloader_t* bm_reloader_new(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);
#endif /* _MAKE_RELOADER_H */