summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Heinecke <aheinecke@gnupg.org>2019-04-24 12:34:48 +0200
committerAndre Heinecke <aheinecke@gnupg.org>2019-04-24 12:36:14 +0200
commit7981ec4147f3058d5b56905903456247993dc6f7 (patch)
tree1e5f8eaa3f226f8bff5335e0c454918317b8f5e7
parent7673ef7953482f42cab50dca1810e5c9d10f461e (diff)
downloadgpgme-7981ec4147f3058d5b56905903456247993dc6f7.tar.gz
cpp: Add wrapper for gpgme_set_global_flag
* lang/cpp/src/context.cpp (setGlobalFlag): New. * lang/cpp/src/global.h (setGlobalFlag): Export it. -- GnuPG-Bug-Id: T4471
-rw-r--r--NEWS3
-rw-r--r--lang/cpp/src/context.cpp5
-rw-r--r--lang/cpp/src/global.h3
3 files changed, 11 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 07f4efb3..86fdba01 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,9 @@
Noteworthy changes in version 1.13.1 (unreleased)
-------------------------------------------------
+ * Interface changes relative to the 1.13.0 release:
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ cpp: setGlobalFlag NEW.
Noteworthy changes in version 1.13.0 (2019-03-26)
-------------------------------------------------
diff --git a/lang/cpp/src/context.cpp b/lang/cpp/src/context.cpp
index 444809af..c0a1dc21 100644
--- a/lang/cpp/src/context.cpp
+++ b/lang/cpp/src/context.cpp
@@ -1791,3 +1791,8 @@ bool GpgME::hasFeature(unsigned long features, unsigned long features2)
&& features2 == (features2 & supported_features2)
;
}
+
+int GpgME::setGlobalFlag(const char *name, const char *value)
+{
+ return gpgme_set_global_flag(name, value);
+}
diff --git a/lang/cpp/src/global.h b/lang/cpp/src/global.h
index 9760e215..d5c2e135 100644
--- a/lang/cpp/src/global.h
+++ b/lang/cpp/src/global.h
@@ -98,6 +98,9 @@ GPGMEPP_EXPORT const char *dirInfo(const char *what);
GPGMEPP_EXPORT Error checkEngine(Protocol proto);
GPGMEPP_EXPORT Error checkEngine(Engine engine);
+/* Wrapper for gpgme_set_global_flag */
+GPGMEPP_EXPORT int setGlobalFlag(const char *name, const char *value);
+
GPGMEPP_EXPORT GIOChannel *getGIOChannel(int fd);
GPGMEPP_EXPORT QIODevice *getQIODevice(int fd);