X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fconf.h;h=0ff991309f146bfb1505c77ed7fa9a2d23219239;hb=7cc9c555b0ef228f93a9f06b7c4b126b05688f79;hp=4254f05c6426549402367e7fda2b9aab4beeac91;hpb=731e7fbc3e2a8c1b03a4657002a6a701b502ff07;p=libucw.git diff --git a/ucw/conf.h b/ucw/conf.h index 4254f05c..0ff99130 100644 --- a/ucw/conf.h +++ b/ucw/conf.h @@ -488,8 +488,17 @@ void cf_journal_rollback_transaction(uns new_pool, struct cf_journal_item *oldj) * If @allow_unknown is set to 0 and a variable not described in @sec * is found in the configuration file, it produces an error. * If you set it to 1, all such variables are ignored. + * + * Please note that a single section definition cannot be used in multiple + * 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),