From abcd9a283ee8f81870622c8e1dbdc7aad38c0358 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Thu, 25 Aug 2016 10:45:24 +0200 Subject: Cpp: Add wrapper for gpgme_get_dirinfo * lang/cpp/src/context.cpp (dirInfo): New. * lang/cpp/src/global.h (dirInfo): New. --- lang/cpp/src/global.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lang/cpp/src/global.h') diff --git a/lang/cpp/src/global.h b/lang/cpp/src/global.h index fc01d1ea..3f12323a 100644 --- a/lang/cpp/src/global.h +++ b/lang/cpp/src/global.h @@ -81,6 +81,15 @@ typedef void (*IOCallback)(void *data, int fd); GPGMEPP_EXPORT EngineInfo engineInfo(Protocol proto); GPGMEPP_EXPORT EngineInfo engineInfo(Engine engine); +/** Wrapper around gpgme_get_dirinfo. What can be: +homedir, sysconfdir, bindir, libexecdir, libdir, +datadir, localedir, agent-socket, agent-ssh-socket, +dirmngr-socket, uiserver-socket, gpgconf-name, gpg-name, +gpgsm-name, g13-name + +This may be extended in the future. +*/ +GPGMEPP_EXPORT const char *dirInfo(const char *what); GPGMEPP_EXPORT Error checkEngine(Protocol proto); GPGMEPP_EXPORT Error checkEngine(Engine engine); -- cgit v1.2.3