pam_pkcs11  0.6.10
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);
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_parser::config
scconf_context * config
Definition: internal.h:35
_scconf_parser::key
char * key
Definition: internal.h:40
_scconf_block
Definition: scconf.h:77
_scconf_parser::error
unsigned int error
Definition: internal.h:47
_scconf_parser::warnings
unsigned int warnings
Definition: internal.h:48
_scconf_parser
Definition: internal.h:34
scconf_lex_parse
int scconf_lex_parse(scconf_parser *parser, const char *filename)
_scconf_parser::name
scconf_list * name
Definition: internal.h:41
_scconf_item
Definition: scconf.h:66
_scconf_parser::block
scconf_block * block
Definition: internal.h:37
_scconf_parser::current_item
scconf_item * current_item
Definition: internal.h:38
_scconf_list
Definition: scconf.h:57
_scconf_parser::state
int state
Definition: internal.h:43
_scconf_parser::last_token_type
int last_token_type
Definition: internal.h:44
scconf_lex_parse_string
int scconf_lex_parse_string(scconf_parser *parser, const char *config_string)
_scconf_parser::line
int line
Definition: internal.h:45
scconf_parse_token
void scconf_parse_token(scconf_parser *parser, int token_type, const char *token)
_scconf_parser::last_item
scconf_item * last_item
Definition: internal.h:38
scconf_parser
struct _scconf_parser scconf_parser
_scconf_parser::emesg
char emesg[256]
Definition: internal.h:49
scconf_context
Definition: scconf.h:83