]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/conf.h
Opt: Introduced contexts
[libucw.git] / ucw / conf.h
index 23c9c5cc9849ec7e683ece65f8550e6724d31f8e..0ff991309f146bfb1505c77ed7fa9a2d23219239 100644 (file)
@@ -493,6 +493,12 @@ void cf_journal_rollback_transaction(uns new_pool, struct cf_journal_item *oldj)
  * configuration contexts simultaneously.
  **/
 void cf_declare_section(const char *name, struct cf_section *sec, uns allow_unknown);
+/**
+ * Like @cf_declare_section(), but instead of item pointers, the section
+ * contains offsets relative to @ptr. In other words, it does the same
+ * as `CF_SECTION`, but for top-level sections.
+ **/
+void cf_declare_rel_section(const char *name, struct cf_section *sec, void *ptr, uns allow_unknown);
 /**
  * If you have a section in a structure and you want to initialize it
  * (eg. if you want a copy of default values outside the configuration),