diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2017-03-04 19:00:26 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2017-03-04 19:00:26 +0100 |
commit | 2c69eb0aec46e2332fb985f5acf961d2dc0edcd6 (patch) | |
tree | 141514e6efc8ad148e098be48d3fd40b8761ff71 /src/blogc-make/reloader.h | |
parent | 9ba9a5919f6f87700d14a9125359b2bca0d86f58 (diff) | |
download | blogc-2c69eb0aec46e2332fb985f5acf961d2dc0edcd6.tar.gz blogc-2c69eb0aec46e2332fb985f5acf961d2dc0edcd6.tar.bz2 blogc-2c69eb0aec46e2332fb985f5acf961d2dc0edcd6.zip |
make: splitted reloader
Diffstat (limited to 'src/blogc-make/reloader.h')
-rw-r--r-- | src/blogc-make/reloader.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/blogc-make/reloader.h b/src/blogc-make/reloader.h new file mode 100644 index 0000000..70464a8 --- /dev/null +++ b/src/blogc-make/reloader.h @@ -0,0 +1,25 @@ +/* + * blogc: A blog compiler. + * Copyright (C) 2014-2017 Rafael G. Martins <rafael@rafaelmartins.eng.br> + * + * This program can be distributed under the terms of the BSD License. + * See the file LICENSE. + */ + +#ifndef _MAKE_RELOADER_H +#define _MAKE_RELOADER_H + +#include <stdbool.h> +#include "ctx.h" +#include "rules.h" + +typedef struct { + bm_ctx_t *ctx; + bm_rule_exec_func_t rule_exec; + bool running; +} bm_reloader_t; + +bm_reloader_t* bm_reloader_new(bm_ctx_t *ctx, bm_rule_exec_func_t rule_exec); +void bm_reloader_stop(bm_reloader_t *reloader); + +#endif /* _MAKE_RELOADER_H */ |