diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2019-04-27 04:22:56 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2019-04-28 22:09:39 +0200 |
commit | 792ac4ec66dd098109a88065420ef95c1a78624f (patch) | |
tree | 4cf068a60006b7691ca1e01ba4f110725e72631d /src/blogc-make/ctx.h | |
parent | 2793a94367e7b163ff3738619a2a764f1c6645b7 (diff) | |
download | blogc-792ac4ec66dd098109a88065420ef95c1a78624f.tar.gz blogc-792ac4ec66dd098109a88065420ef95c1a78624f.tar.bz2 blogc-792ac4ec66dd098109a88065420ef95c1a78624f.zip |
make: support posts autoloading
Diffstat (limited to 'src/blogc-make/ctx.h')
-rw-r--r-- | src/blogc-make/ctx.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/blogc-make/ctx.h b/src/blogc-make/ctx.h index a66d51c..43284a5 100644 --- a/src/blogc-make/ctx.h +++ b/src/blogc-make/ctx.h @@ -63,8 +63,10 @@ typedef struct { bm_filectx_t *listing_entry_fctx; bc_slist_t *posts_fctx; + bool posts_deleted; bc_slist_t *pages_fctx; bc_slist_t *copy_fctx; + } bm_ctx_t; bm_filectx_t* bm_filectx_new(bm_ctx_t *ctx, const char *filename, const char *slug, @@ -76,6 +78,7 @@ void bm_filectx_free(bm_filectx_t *fctx); bm_ctx_t* bm_ctx_new(bm_ctx_t *base, const char *settings_file, const char *argv0, bc_error_t **err); bool bm_ctx_reload(bm_ctx_t **ctx); +void bm_ctx_autoload_posts(bm_ctx_t *ctx); void bm_ctx_free_internal(bm_ctx_t *ctx); void bm_ctx_free(bm_ctx_t *ctx); const char* bm_ctx_settings_lookup(bm_ctx_t *ctx, const char *key); |