From c62b79a1d6e576d94e08cb81c2f5dbcb42ecf8cf Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 25 Sep 2012 15:38:26 +0200 Subject: Add gpgme_set_global_flag to help debugging * src/gpgme.c (gpgme_set_global_flag): New. * src/gpgme.h.in (gpgme_set_global_flag): New. * src/gpgme.def, src/libgpgme.vers: Add new public function. * src/debug.c (envvar_override): New.: (_gpgme_debug_set_debug_envvar): New. (debug_init): Take ENVVAR_OVERRIDE in account. -- On Android envvars can't be used, thus we need another way to enable GPGME debugging. The new function allows this and may be used in the future to implement similar things. --- src/debug.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/debug.h') diff --git a/src/debug.h b/src/debug.h index 7bd9ed78..ead92b24 100644 --- a/src/debug.h +++ b/src/debug.h @@ -54,6 +54,9 @@ _gpgme_debug_srcname (const char *file) return s? s+1:file; } +/* Initialization helper function; see debug.c. */ +int _gpgme_debug_set_debug_envvar (const char *value); + /* Called early to initialize the logging. */ void _gpgme_debug_subsystem_init (void); -- cgit v1.2.3