145 |
ENTRY_GROUP = 4, |
ENTRY_GROUP = 4, |
146 |
}; |
}; |
147 |
|
|
148 |
struct gpg_option_s { |
struct conf_option_s { |
149 |
struct gpg_option_s *next; |
struct conf_option_s *next; |
150 |
char *name; |
char *name; |
151 |
char *val; |
char *val; |
152 |
unsigned int used:1; |
unsigned int used:1; |
153 |
int type; |
int type; |
154 |
}; |
}; |
155 |
typedef struct gpg_option_s *gpg_option_t; |
typedef struct conf_option_s *conf_option_t; |
156 |
|
|
157 |
struct gpg_member_s { |
struct conf_member_s { |
158 |
struct gpg_member_s * next; |
struct conf_member_s *next; |
159 |
char *name; |
char *name; |
160 |
unsigned int used:1; |
unsigned int used:1; |
161 |
}; |
}; |
162 |
typedef struct gpg_member_s *gpg_member_t; |
typedef struct conf_member_s *conf_member_t; |
163 |
|
|
164 |
struct gpg_group_s { |
struct conf_group_s { |
165 |
struct gpg_group_s *next; |
struct conf_group_s *next; |
166 |
struct gpg_member_s *list; |
struct conf_member_s *list; |
167 |
char *name; |
char *name; |
168 |
unsigned int used:1; |
unsigned int used:1; |
169 |
}; |
}; |
170 |
typedef struct gpg_group_s *gpg_group_t; |
typedef struct conf_group_s *conf_group_t; |
171 |
|
|
172 |
struct gpg_optfile_s { |
struct conf_file_s { |
173 |
struct gpg_option_s *list; |
struct conf_option_s *list; |
174 |
struct gpg_group_s *grp; |
struct conf_group_s *grp; |
175 |
}; |
}; |
176 |
typedef struct gpg_optfile_s *gpg_optfile_t; |
typedef struct conf_file_s *config_file_t; |
|
typedef struct gpg_optfile_s *config_file_t; |
|
177 |
|
|
178 |
/* find */ |
/* find */ |
179 |
gpg_group_t find_group( gpg_optfile_t opt, const char *str ); |
conf_group_t conf_find_group( config_file_t opt, const char *str ); |
180 |
gpg_option_t find_option( gpg_optfile_t opt, const char *str ); |
conf_option_t conf_find_option( config_file_t opt, const char *str ); |
181 |
gpg_member_t find_member( gpg_optfile_t opt, const char *grp, const char *str ); |
conf_member_t conf_find_member( config_file_t opt, const char *grp, const char *str ); |
182 |
/* delete */ |
/* delete */ |
183 |
int delete_group( gpg_optfile_t opt, const char *str ); |
int conf_delete_group( config_file_t opt, const char *str ); |
184 |
int delete_member( gpg_optfile_t opt, const char *grp, const char *str ); |
int conf_delete_member( config_file_t opt, const char *grp, const char *str ); |
185 |
int delete_option( gpg_optfile_t opt, const char *str ); |
int conf_delete_option( config_file_t opt, const char *str ); |
186 |
/* add */ |
/* add */ |
187 |
int modify_entry( gpg_optfile_t opt, int type, const char *name, const char *val ); |
int conf_modify_entry( config_file_t opt, int type, const char *name, const char *val ); |
188 |
int add_entry( gpg_optfile_t opt, int type, const char *name, const char *val ); |
int conf_add_entry( config_file_t opt, int type, const char *name, const char *val ); |
189 |
int add_entry_int (config_file_t opt, int type, const char *name, int val); |
int conf_add_entry_int (config_file_t opt, int type, const char *name, int val); |
190 |
int add_member( gpg_optfile_t opt, const char *grp, const char *str ); |
int conf_add_member( config_file_t opt, const char *grp, const char *str ); |
191 |
int add_group( gpg_optfile_t opt, const char *str ); |
int conf_add_group( config_file_t opt, const char *str ); |
192 |
/* high-level */ |
/* high-level */ |
193 |
void new_config (config_file_t *r_opt); |
void new_config (config_file_t *r_opt); |
194 |
int parse_config (const char *file, config_file_t *r_opt); |
int parse_config (const char *file, config_file_t *r_opt); |
195 |
int commit_config (const char *file, config_file_t opt); |
int commit_config (const char *file, config_file_t opt); |
196 |
void release_config (config_file_t opt); |
void release_config (config_file_t opt); |
197 |
/* memory */ |
/* memory */ |
198 |
void release_group( gpg_group_t grp ); |
void release_group( conf_group_t grp ); |
199 |
|
|
200 |
/*-- wptPassphraseCB.cpp --*/ |
/*-- wptPassphraseCB.cpp --*/ |
201 |
enum passdlg_t { |
enum passdlg_t { |