174 |
struct gpg_group_s *grp; |
struct gpg_group_s *grp; |
175 |
}; |
}; |
176 |
typedef struct gpg_optfile_s *gpg_optfile_t; |
typedef struct gpg_optfile_s *gpg_optfile_t; |
177 |
|
typedef struct gpg_optfile_s *config_file_t; |
178 |
|
|
179 |
/* find */ |
/* find */ |
180 |
gpg_group_t find_group( gpg_optfile_t opt, const char *str ); |
gpg_group_t find_group( gpg_optfile_t opt, const char *str ); |
187 |
/* add */ |
/* add */ |
188 |
int modify_entry( gpg_optfile_t opt, int type, const char *name, const char *val ); |
int modify_entry( gpg_optfile_t opt, int type, const char *name, const char *val ); |
189 |
int add_entry( gpg_optfile_t opt, int type, const char *name, const char *val ); |
int add_entry( gpg_optfile_t opt, int type, const char *name, const char *val ); |
190 |
|
int add_entry_int (config_file_t opt, int type, const char *name, int val); |
191 |
int add_member( gpg_optfile_t opt, const char *grp, const char *str ); |
int add_member( gpg_optfile_t opt, const char *grp, const char *str ); |
192 |
int add_group( gpg_optfile_t opt, const char *str ); |
int add_group( gpg_optfile_t opt, const char *str ); |
193 |
/* high-level */ |
/* high-level */ |
194 |
int parse_gpg_options( const char *file, gpg_optfile_t *r_opt ); |
void new_config (config_file_t *r_opt); |
195 |
int commit_gpg_options( const char *file, gpg_optfile_t opt ); |
int parse_config (const char *file, config_file_t *r_opt); |
196 |
void release_gpg_options( gpg_optfile_t opt ); |
int commit_config (const char *file, config_file_t opt); |
197 |
|
void release_config (config_file_t opt); |
198 |
/* memory */ |
/* memory */ |
199 |
void release_group( gpg_group_t grp ); |
void release_group( gpg_group_t grp ); |
200 |
|
|