From bb600aa8fd2f9575ee7afc64c978e3e7523b1173 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 28 Oct 2015 16:24:30 +0100 Subject: w32: Add new global flag "w32-inst-dir". * src/gpgme.c (gpgme_set_global_flag): Add flag "w32-inst-dir"; * src/posix-util.c (_gpgme_set_override_inst_dir): New stub. * src/w32-util.c (override_inst_dir): New var. (_gpgme_get_inst_dir): Return this var is set. (_gpgme_set_override_inst_dir): New. -- See https://lists.gnupg.org/pipermail/gnupg-devel/2015-September/030267.html for background. Signed-off-by: Werner Koch --- src/posix-util.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/posix-util.c') diff --git a/src/posix-util.c b/src/posix-util.c index f7e0a171..0fce5c29 100644 --- a/src/posix-util.c +++ b/src/posix-util.c @@ -71,6 +71,15 @@ _gpgme_set_default_gpgconf_name (const char *name) } +/* Dummy function - see w32-util.c for the actual code. */ +int +_gpgme_set_override_inst_dir (const char *dir) +{ + (void)dir; + return 0; +} + + /* Find an executable program PGM along the envvar PATH. */ static char * walk_path (const char *pgm) -- cgit v1.2.3