]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/conf-internal.h
Opt: Earl Grey was not an American :)
[libucw.git] / ucw / conf-internal.h
index ee6d08d4d80c35a0b7ffbaae664094574f6a86ba..72ee7ca8b4a9e2e439c303ba33272eff345c4ecd 100644 (file)
@@ -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