]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/conf-internal.h
Redblack: Added search_up
[libucw.git] / ucw / conf-internal.h
index 0acbd54812c46b76da3ce26ada7a5cbcd7260884..7ac490fbed4fd58bfc0804c48a67ad7e6fce8398 100644 (file)
@@ -22,6 +22,7 @@
 #define cf_interpret_line ucw_cf_interpret_line
 #define cf_journal_delete ucw_cf_journal_delete
 #define cf_journal_swap ucw_cf_journal_swap
+#define cf_load_default ucw_cf_load_default
 #define cf_obtain_context ucw_cf_obtain_context
 #define cf_op_names ucw_cf_op_names
 #define cf_sections ucw_cf_sections
@@ -60,19 +61,19 @@ struct cf_context {
   int is_active;
   int config_loaded;                   // at least one config file was loaded
   struct cf_parser_state *parser;
-  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()
+  uint everything_committed;           // did we already commit each section?
+  uint postpone_commit;                        // counter of calls to cf_open_group()
+  uint 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 item_stack stack[MAX_STACK_SIZE];     // interpreter stack
-  uns stack_level;
+  uint stack_level;
   struct cf_section sections;          // root section
-  uns sections_initialized;
+  uint sections_initialized;
   dirtsec_t dirty;                     // dirty sections
-  uns dirties;
+  uint dirties;
 };
 
 /* conf-ctxt.c */
@@ -97,7 +98,7 @@ enum cf_operation;
 extern char *cf_op_names[];
 extern char *cf_type_names[];
 
-uns cf_type_size(enum cf_type type, struct cf_user_type *utype);
+uint cf_type_size(enum cf_type type, struct cf_user_type *utype);
 char *cf_interpret_line(struct cf_context *cc, char *name, enum cf_operation op, int number, char **pars);
 void cf_init_stack(struct cf_context *cc);
 int cf_done_stack(struct cf_context *cc);
@@ -118,4 +119,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