2 * (c) Copyright 1992 by Panagiotis Tsirigotis
3 * (c) Sections Copyright 1998-2001 by Rob Braun
4 * All rights reserved. The file named COPYRIGHT specifies the terms
5 * and conditions for redistribution.
16 * $Id: parse.h,v 1.4 2003/07/12 19:17:53 steveg Exp $
19 typedef enum { NO_ENTRY,
27 enum assign_op { SET_EQ, PLUS_EQ, MINUS_EQ } ;
31 const char *a_name ; /* name of attribute */
32 unsigned a_id ; /* attribute id */
33 int a_nvalues ; /* number of values */
34 status_e (*a_parser)() ; /* function that parses the attribute */
38 #define ENTRY_BEGIN '{'
40 #define COMMENT_BEGIN '#'
41 #define KW_SERVICE "service"
42 #define KW_DEFAULTS "defaults"
43 #define KW_INCLUDE "include"
44 #define KW_INCLUDEDIR "includedir"
46 extern int line_count;
47 extern const char *current_file;
49 const char *attr_name_lookup(unsigned int id);
51 void parse_conf_file(int fd,struct configuration *confp, const char *filename);