diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2017-02-12 23:44:52 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2017-02-12 23:44:52 +0100 |
commit | 4ad218b5710659899ba842da5a597db5052f2d4d (patch) | |
tree | bdcc163184030f05513ab77f8779ea8c6f7d1a86 /src/blogc-make/ctx.h | |
parent | cbeba5720d1b98cd7db013038b741b1a6ac9e48c (diff) | |
download | blogc-4ad218b5710659899ba842da5a597db5052f2d4d.tar.gz blogc-4ad218b5710659899ba842da5a597db5052f2d4d.tar.bz2 blogc-4ad218b5710659899ba842da5a597db5052f2d4d.zip |
blogc-make: implemented automatic reloader for runserver rule
this is not the best implementation possible, but it works for most use
cases
Diffstat (limited to 'src/blogc-make/ctx.h')
-rw-r--r-- | src/blogc-make/ctx.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/blogc-make/ctx.h b/src/blogc-make/ctx.h index 05e85fc..7b68965 100644 --- a/src/blogc-make/ctx.h +++ b/src/blogc-make/ctx.h @@ -38,8 +38,12 @@ typedef struct { } bm_ctx_t; bm_filectx_t* bm_filectx_new(bm_ctx_t *ctx, const char *filename); +bool bm_filectx_changed(bm_filectx_t *ctx, struct timespec *ts); +void bm_filectx_reload(bm_filectx_t *ctx); void bm_filectx_free(bm_filectx_t *fctx); -bm_ctx_t* bm_ctx_new(const char *filename, bc_error_t **err); +bm_ctx_t* bm_ctx_new(bm_ctx_t *base, const char *settings_file, bc_error_t **err); +void bm_ctx_reload(bm_ctx_t *ctx); +void bm_ctx_free_internal(bm_ctx_t *ctx); void bm_ctx_free(bm_ctx_t *ctx); #endif /* _MAKE_CTX_H */ |