aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/global.h
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-07-13 09:56:18 +0000
committerAndre Heinecke <[email protected]>2016-07-13 09:56:18 +0000
commit537cb871fd59f3a20c697a046715e6339ff6633b (patch)
tree41178b6bd72f78cbe794fc1a33a325c1cfbba244 /lang/cpp/src/global.h
parentpython: Port more tests. (diff)
downloadgpgme-537cb871fd59f3a20c697a046715e6339ff6633b.tar.gz
gpgme-537cb871fd59f3a20c697a046715e6339ff6633b.zip
Cpp: Add feature enum for new identify
* lang/cpp/src/context.cpp (supported_features2): Add BinaryAndFineGrainedIdentify * lang/cpp/src/global.h (Feature2): ditto. -- This is mostly for compatible code with KF5::Gpgmepp where there is no hard requirement against gpgme 1.7. With 1.7 a version check would also suffice.
Diffstat (limited to '')
-rw-r--r--lang/cpp/src/global.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lang/cpp/src/global.h b/lang/cpp/src/global.h
index 9be5202c..508e1d76 100644
--- a/lang/cpp/src/global.h
+++ b/lang/cpp/src/global.h
@@ -131,8 +131,10 @@ enum Feature {
FeatureMaxValue = 0x80000000
};
enum Feature2 {
+ BinaryAndFineGrainedIdentify = 0x00000001, // gpgme >= 1.7.0
Feature2MaxValue = 0x80000000
};
+
// use hasFeature( unsigned long, unsigned long ) instead
GPGMEPP_DEPRECATED_EXPORT bool hasFeature(unsigned long feature);
GPGMEPP_EXPORT bool hasFeature(unsigned long feature, unsigned long feature2);