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:
parent
bd24db313d
commit
32baac8cde
@ -56,7 +56,7 @@ public:
|
|||||||
|
|
||||||
/* @enum Validity
|
/* @enum Validity
|
||||||
* @brief The TOFU Validity. */
|
* @brief The TOFU Validity. */
|
||||||
enum Validity {
|
enum Validity : unsigned int {
|
||||||
/*! Unknown (uninitialized).*/
|
/*! Unknown (uninitialized).*/
|
||||||
ValidityUnknown,
|
ValidityUnknown,
|
||||||
/*! TOFU Conflict.*/
|
/*! TOFU Conflict.*/
|
||||||
@ -74,7 +74,7 @@ public:
|
|||||||
|
|
||||||
/* @enum Policy
|
/* @enum Policy
|
||||||
* @brief The TOFU Validity. */
|
* @brief The TOFU Validity. */
|
||||||
enum Policy {
|
enum Policy : unsigned int {
|
||||||
/*! GPGME_TOFU_POLICY_NONE */
|
/*! GPGME_TOFU_POLICY_NONE */
|
||||||
PolicyNone,
|
PolicyNone,
|
||||||
/*! GPGME_TOFU_POLICY_AUTO */
|
/*! GPGME_TOFU_POLICY_AUTO */
|
||||||
|
Loading…
Reference in New Issue
Block a user