pam_pkcs11  0.6.11
internal.h
Go to the documentation of this file.
1 /*
2  * $Id$
3  *
4  * Copyright (C) 2002
5  * Antti Tapaninen <aet@cc.hut.fi>
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20  */
21 
22 #ifndef _SCCONF_INTERNAL_H
23 #define _SCCONF_INTERNAL_H
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 #define TOKEN_TYPE_COMMENT 0
30 #define TOKEN_TYPE_NEWLINE 1
31 #define TOKEN_TYPE_STRING 2
32 #define TOKEN_TYPE_PUNCT 3
33 
34 typedef struct _scconf_parser {
36 
39 
40  char *key;
42 
43  int state;
45  int line;
46 
47  unsigned int error:1;
48  unsigned int warnings:1;
49  char emesg[256];
51 
52 extern int scconf_lex_parse(scconf_parser * parser, const char *filename);
53 extern int scconf_lex_parse_string(scconf_parser * parser,
54  const char *config_string);
55 extern void scconf_parse_token(scconf_parser * parser, int token_type, const char *token);
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 #endif
scconf_context * config
Definition: internal.h:35
void scconf_parse_token(scconf_parser *parser, int token_type, const char *token)
unsigned int error
Definition: internal.h:47
int scconf_lex_parse_string(scconf_parser *parser, const char *config_string)
char * key
Definition: internal.h:40
unsigned int warnings
Definition: internal.h:48
int scconf_lex_parse(scconf_parser *parser, const char *filename)
scconf_list * name
Definition: internal.h:41
scconf_block * block
Definition: internal.h:37
scconf_item * current_item
Definition: internal.h:38
struct _scconf_parser scconf_parser
int last_token_type
Definition: internal.h:44
scconf_item * last_item
Definition: internal.h:38
char emesg[256]
Definition: internal.h:49