X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fconf-internal.h;h=72ee7ca8b4a9e2e439c303ba33272eff345c4ecd;hb=06cac26f0d8895b5cb8fbe03ca96444dc4ac8d51;hp=ee6d08d4d80c35a0b7ffbaae664094574f6a86ba;hpb=5423d3ec7aa3ff3fec105c49f7ec1a122e82561d;p=libucw.git diff --git a/ucw/conf-internal.h b/ucw/conf-internal.h index ee6d08d4..72ee7ca8 100644 --- a/ucw/conf-internal.h +++ b/ucw/conf-internal.h @@ -44,13 +44,13 @@ struct cf_context { int is_active; int config_loaded; // at least one config file was loaded struct cf_parser_state *parser; - uns everything_committed; // after the 1st load, this flag is set on - uns postpone_commit; // used internally by cf_getopt() - uns other_options; + uns everything_committed; // did we already commit each section? + uns postpone_commit; // counter of calls to cf_open_group() + uns other_options; // used internally by cf_getopt() clist conf_entries; // files/strings to reload + struct cf_journal_item *journal; // journalling + int enable_journal; struct old_pools *pools; - struct cf_journal_item *journal; - int need_journal; struct item_stack stack[MAX_STACK_SIZE]; // interpreter stack uns stack_level; struct cf_section sections; // root section @@ -103,4 +103,7 @@ struct cf_item *cf_find_subitem(struct cf_section *sec, const char *name); int cf_commit_all(enum cf_commit_mode cm); void cf_add_dirty(struct cf_section *sec, void *ptr); +/* conf-getopt.c */ +void cf_load_default(struct cf_context *cc); + #endif