summaryrefslogtreecommitdiffstats
path: root/tools/gpgconf.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2017-12-18 17:46:05 +0100
committerWerner Koch <wk@gnupg.org>2017-12-18 17:46:05 +0100
commit482e000b8a7e336f342a7fac3b7379257e944b6e (patch)
treef96adab119a57a987f6ec0609d23935e923a220f /tools/gpgconf.h
parentgpgconf: Show --compliance in expert mode. (diff)
downloadgnupg2-482e000b8a7e336f342a7fac3b7379257e944b6e.tar.xz
gnupg2-482e000b8a7e336f342a7fac3b7379257e944b6e.zip
conf: New option --status-fd.
* tools/gpgconf.c (oStatusFD): New const. (opts): New option --status-fd. (statusfp): New var. (set_status_fd): New. (gpgconf_write_status): New. (gpgconf_failure): New. (main): Set status fd and replace exit by gpgconf_failure. * tools/gpgconf-comp.c: Repalce exit by gpgconf_failure. (gc_process_gpgconf_conf): Print a few warning status messages. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'tools/gpgconf.h')
-rw-r--r--tools/gpgconf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gpgconf.h b/tools/gpgconf.h
index d6d7627aa..8a061ef68 100644
--- a/tools/gpgconf.h
+++ b/tools/gpgconf.h
@@ -36,6 +36,10 @@ struct
} opt;
+/*-- gpgconf.c --*/
+void gpgconf_write_status (int no, const char *format,
+ ...) GPGRT_ATTR_PRINTF(2,3);
+void gpgconf_failure (gpg_error_t err) GPGRT_ATTR_NORETURN;
/*-- gpgconf-comp.c --*/