blob: 70464a8bca3a0576c713fab20b62c8e6b8123054 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 */
|