cpp: Declare sizes of tofu-info enums

* lang/cpp/src/tofuinfo.h (Policy, Validity): Declare sizes.

--
This is a quick ABI break before the release so that we can
easier extend them in the future. All new enums in public API
should be declared with a size from now on.
This commit is contained in:
Andre Heinecke 2016-09-16 16:52:03 +02:00
parent bd24db313d
commit 32baac8cde

View File

@ -56,7 +56,7 @@ public:
/* @enum Validity
* @brief The TOFU Validity. */
enum Validity {
enum Validity : unsigned int {
/*! Unknown (uninitialized).*/
ValidityUnknown,
/*! TOFU Conflict.*/
@ -74,7 +74,7 @@ public:
/* @enum Policy
* @brief The TOFU Validity. */
enum Policy {
enum Policy : unsigned int {
/*! GPGME_TOFU_POLICY_NONE */
PolicyNone,
/*! GPGME_TOFU_POLICY_AUTO */