summaryrefslogtreecommitdiffstats
path: root/tools/gpgconf.h
diff options
context:
space:
mode:
authorMarcus Brinkmann <mb@g10code.com>2008-05-20 00:46:41 +0200
committerMarcus Brinkmann <mb@g10code.com>2008-05-20 00:46:41 +0200
commit7d714a378864eef96cb6f4b4bc3cd2833149f42a (patch)
treead9a5a2c37dc82761ee204b143fa7d6fea27c6b5 /tools/gpgconf.h
parent2008-05-15 Marcus Brinkmann <marcus@g10code.de> (diff)
downloadgnupg2-7d714a378864eef96cb6f4b4bc3cd2833149f42a.tar.xz
gnupg2-7d714a378864eef96cb6f4b4bc3cd2833149f42a.zip
doc/
2008-05-20 Marcus Brinkmann <marcus@g10code.de> * tools.texi (Invoking gpgconf): Add --dry-run and --check-options. (Checking programs): Document --check-options. tools/ 2008-05-20 Marcus Brinkmann <marcus@g10code.de> * gpgconf.h (gc_component_check_programs): Rename to ... (gc_check_programs): ... this. (gc_component_change_options): Add argument OUT. (gc_component_check_options): New function. * gpgconf.c (enum cmd_and_opt_values): New option aCheckOptions. (opts): Add new option aCheckOptions (aka --check-options). (main): Handle new option aCheckOptions. * gpgconf-comp.c (gc_component_check_programs): Rename to ... (gc_check_programs): ... this. Refactor core of it to ... (gc_component_check_options): ... this new function. (gc_component_change_options): Add new argument OUT. Externally verify all changes. Implement option --dry-run.
Diffstat (limited to 'tools/gpgconf.h')
-rw-r--r--tools/gpgconf.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/gpgconf.h b/tools/gpgconf.h
index 2f4bd5216..0a27dd9c3 100644
--- a/tools/gpgconf.h
+++ b/tools/gpgconf.h
@@ -43,7 +43,7 @@ void gc_error (int status, int errnum, const char *fmt, ...);
void gc_component_list_components (FILE *out);
/* List all programs along with their status. */
-void gc_component_check_programs (FILE *out);
+void gc_check_programs (FILE *out);
/* Find the component with the name NAME. Returns -1 if not
found. */
@@ -57,7 +57,12 @@ void gc_component_retrieve_options (int component);
void gc_component_list_options (int component, FILE *out);
/* Read the modifications from IN and apply them. */
-void gc_component_change_options (int component, FILE *in);
+void gc_component_change_options (int component, FILE *in, FILE *out);
+
+/* Check the options of a single component. Returns 0 if everything
+ is OK. */
+int gc_component_check_options (int component, FILE *out,
+ const char *conf_file);
/* Process global configuration file. */
int gc_process_gpgconf_conf (const char *fname, int update, int defaults,