Initial revision
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@298 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
55
config_file.h
Normal file
55
config_file.h
Normal file
@@ -0,0 +1,55 @@
|
||||
#ifndef __CONF_H__
|
||||
#define __CONF_H__
|
||||
|
||||
enum {
|
||||
krb5_config_value_string,
|
||||
krb5_config_value_list
|
||||
};
|
||||
|
||||
struct krb5_config_relation;
|
||||
|
||||
typedef struct krb5_config_value{
|
||||
int type;
|
||||
union {
|
||||
char *string;
|
||||
struct krb5_config_relation *relations;
|
||||
}data;
|
||||
}krb5_config_value;
|
||||
|
||||
typedef struct krb5_config_relation{
|
||||
char *tag;
|
||||
struct krb5_config_value value;
|
||||
struct krb5_config_relation *next;
|
||||
}krb5_config_relation;
|
||||
|
||||
typedef struct krb5_config_section{
|
||||
char *name;
|
||||
struct krb5_config_relation *relations;
|
||||
struct krb5_config_section *next;
|
||||
}krb5_config_section;
|
||||
|
||||
typedef struct krb5_config_file{
|
||||
char *filename;
|
||||
struct krb5_config_section *sections;
|
||||
}krb5_config_file;
|
||||
|
||||
|
||||
|
||||
/*
|
||||
static char *gettoken(FILE *F);
|
||||
static void
|
||||
free_config_file(krb5_config_file *cf);
|
||||
static krb5_error_code
|
||||
new_config_file(krb5_config_file **cf, const char *filename);
|
||||
static void
|
||||
free_config_section(krb5_config_section *sec);
|
||||
static krb5_error_code
|
||||
new_config_section(krb5_config_section **sec, const char *name);
|
||||
static void
|
||||
free_config_relation(krb5_config_relation *rel);
|
||||
static void
|
||||
free_config_value(krb5_config_value val);
|
||||
static krb5_error_code
|
||||
parse_config_file(krb5_config_file **cf, const char *filename);
|
||||
*/
|
||||
#endif /* __CONF_H__ */
|
Reference in New Issue
Block a user