aboutsummaryrefslogtreecommitdiffstats
path: root/src/debug.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2012-09-25 13:38:26 +0000
committerWerner Koch <[email protected]>2012-09-25 13:38:26 +0000
commitc62b79a1d6e576d94e08cb81c2f5dbcb42ecf8cf (patch)
tree0c659d95d2a93943c65f86e2d8e626ad335081c8 /src/debug.h
parentRemove all trailing whitespace from source files (diff)
downloadgpgme-c62b79a1d6e576d94e08cb81c2f5dbcb42ecf8cf.tar.gz
gpgme-c62b79a1d6e576d94e08cb81c2f5dbcb42ecf8cf.zip
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.
Diffstat (limited to 'src/debug.h')
-rw-r--r--src/debug.h3
1 files changed, 3 insertions, 0 deletions
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);