certmanager/lib
config_data.h
00001 #ifndef __KLEO__CHIASMUS_CONFIG_DATA_H__ 00002 #define __KLEO__CHIASMUS_CONFIG_DATA_H__ 00003 00004 #ifdef __cplusplus 00005 extern "C" { 00006 #endif 00007 00008 struct kleo_chiasmus_config_data { 00009 const char * name; 00010 const char * description; 00011 int level; 00012 int type; 00013 union { 00014 const char * path; /* must be first, see config_data.c */ 00015 const char * string; 00016 const char * url; 00017 struct { unsigned int value : 1; unsigned int numTimesSet : 31; } boolean; 00018 int integer; 00019 unsigned int unsigned_integer; 00020 } defaults; 00021 unsigned int is_optional : 1; 00022 unsigned int is_list : 1; 00023 unsigned int is_runtime : 1; 00024 }; 00025 00026 extern const struct kleo_chiasmus_config_data kleo_chiasmus_config_entries[]; 00027 extern const unsigned int kleo_chiasmus_config_entries_dim; 00028 00029 #ifdef __cplusplus 00030 } 00031 #endif 00032 00033 #endif /* __KLEO__CHIASMUS_CONFIG_DATA_H__ */ 00034