From 4e51e844d9ac4a2a7f556891c24170a2808eb71e Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 9 Aug 2019 08:52:45 +0200 Subject: [PATCH] libnm: fix NMSetting8021xAuthFlags to be a flags type This is an API break, but probably not too bad. A lot of things when using the type will work as before. --- libnm-core/nm-setting-8021x.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libnm-core/nm-setting-8021x.h b/libnm-core/nm-setting-8021x.h index 5a5ae65042..f811c60ec7 100644 --- a/libnm-core/nm-setting-8021x.h +++ b/libnm-core/nm-setting-8021x.h @@ -84,9 +84,12 @@ typedef enum { /*< underscore_name=nm_setting_802_1x_ck_scheme >*/ * #NMSetting8021xAuthFlags values indicate which authentication settings * should be used. * + * Before 1.22, this was wrongly marked as a enum and not as a flags + * type. + * * Since: 1.8 */ -typedef enum { /*< underscore_name=nm_setting_802_1x_auth_flags >*/ +typedef enum { /*< flags, underscore_name=nm_setting_802_1x_auth_flags >*/ NM_SETTING_802_1X_AUTH_FLAGS_NONE = 0, NM_SETTING_802_1X_AUTH_FLAGS_TLS_1_0_DISABLE = 0x1, NM_SETTING_802_1X_AUTH_FLAGS_TLS_1_1_DISABLE = 0x2,