X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fconf-internal.h;h=aeb44721702d860766c55f94de4fa68f7627b708;hb=e4c695d49529d03352d241872493a5161e646288;hp=fbcdc03cbd2c572e2d54a4f8579dc652e8128289;hpb=62960fb405a1ec443797e64c8ee34adb01924917;p=libucw.git diff --git a/lib/conf-internal.h b/lib/conf-internal.h index fbcdc03c..aeb44721 100644 --- a/lib/conf-internal.h +++ b/lib/conf-internal.h @@ -1,3 +1,16 @@ +/* + * UCW Library -- Configuration files: only for internal use of conf-*.c + * + * (c) 2001--2006 Robert Spalek + * (c) 2003--2006 Martin Mares + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. + */ + +#ifndef _UCW_CONF_INTERNAL_H +#define _UCW_CONF_INTERNAL_H + /* conf-intr.c */ #define OP_MASK 0xff // only get the operation #define OP_OPEN 0x100 // here we only get an opening brace instead of parameters @@ -5,6 +18,7 @@ #define OP_2ND 0x400 // in the 2nd phase real data are entered enum cf_operation; extern byte *cf_op_names[]; +extern byte *cf_type_names[]; uns cf_type_size(enum cf_type type, struct cf_user_type *utype); byte *cf_interpret_line(byte *name, enum cf_operation op, int number, byte **pars); @@ -26,3 +40,5 @@ extern struct cf_section cf_sections; struct cf_item *cf_find_subitem(struct cf_section *sec, byte *name); int cf_commit_all(enum cf_commit_mode cm); void cf_add_dirty(struct cf_section *sec, void *ptr); + +#endif