aboutsummaryrefslogtreecommitdiffstats
path: root/src/posix-util.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-10-28 15:24:30 +0000
committerWerner Koch <[email protected]>2015-10-28 15:28:48 +0000
commitbb600aa8fd2f9575ee7afc64c978e3e7523b1173 (patch)
treee266bea2dccd3dcabe2080a5bf2096ca6b061d06 /src/posix-util.c
parentcleanup: Fix type mismatch around gpgme_error_t. (diff)
downloadgpgme-bb600aa8fd2f9575ee7afc64c978e3e7523b1173.tar.gz
gpgme-bb600aa8fd2f9575ee7afc64c978e3e7523b1173.zip
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 <[email protected]>
Diffstat (limited to 'src/posix-util.c')
-rw-r--r--src/posix-util.c9
1 files changed, 9 insertions, 0 deletions
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)