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
This commit is contained in:
Andre Heinecke 2019-04-24 12:34:48 +02:00
parent 7673ef7953
commit 7981ec4147
No known key found for this signature in database
GPG Key ID: 2978E9D40CBABA5C
3 changed files with 11 additions and 0 deletions

3
NEWS
View File

@ -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)
-------------------------------------------------

View File

@ -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);
}

View File

@ -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);