diff options
Diffstat (limited to 'lang/cpp/src')
-rw-r--r-- | lang/cpp/src/context.cpp | 5 | ||||
-rw-r--r-- | lang/cpp/src/global.h | 3 |
2 files changed, 8 insertions, 0 deletions
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); |