[Pkg-gnupg-commit] [gpgme] 308/412: Cpp: Add wrapper for gpgme_get_dirinfo

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Sep 22 21:27:09 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gpgme.

commit abcd9a283ee8f81870622c8e1dbdc7aad38c0358
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Thu Aug 25 10:45:24 2016 +0200

    Cpp: Add wrapper for gpgme_get_dirinfo
    
    * lang/cpp/src/context.cpp (dirInfo): New.
    * lang/cpp/src/global.h (dirInfo): New.
---
 lang/cpp/src/context.cpp | 5 +++++
 lang/cpp/src/global.h    | 9 +++++++++
 2 files changed, 14 insertions(+)

diff --git a/lang/cpp/src/context.cpp b/lang/cpp/src/context.cpp
index 2619084..62cad20 100644
--- a/lang/cpp/src/context.cpp
+++ b/lang/cpp/src/context.cpp
@@ -1489,6 +1489,11 @@ GpgME::EngineInfo GpgME::engineInfo(GpgME::Protocol proto)
     return EngineInfo();
 }
 
+const char *GpgME::dirInfo(const char *what)
+{
+    return gpgme_get_dirinfo(what);
+}
+
 GpgME::Error GpgME::checkEngine(GpgME::Protocol proto)
 {
     const gpgme_protocol_t p = proto == CMS ? GPGME_PROTOCOL_CMS : GPGME_PROTOCOL_OpenPGP ;
diff --git a/lang/cpp/src/global.h b/lang/cpp/src/global.h
index fc01d1e..3f12323 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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git



More information about the Pkg-gnupg-commit mailing list