From e99deb3912eae5ffae180c26e8807efb7664ade4 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 7 Jan 2019 16:21:31 +0100 Subject: [PATCH] libnm: fix introspection for NMSettingWirelessSecurityWpsMethod This is a flags type, not an enum. This affects the generated glib-mkenums type, changing it from GEnum to GFlags. That is possibly a change in behavior for language bindings, but hopefully nobody is badly affected by this. Fixes: e6f95b50c83fae1deb76483bdc5f0652a62a28e1 --- libnm-core/nm-setting-wireless-security.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libnm-core/nm-setting-wireless-security.h b/libnm-core/nm-setting-wireless-security.h index 519353b043..2f4b4084e7 100644 --- a/libnm-core/nm-setting-wireless-security.h +++ b/libnm-core/nm-setting-wireless-security.h @@ -99,9 +99,12 @@ typedef enum { * * Configure the use of WPS by a connection while it activates. * + * Note: prior to 1.16, this was a GEnum type instead of a GFlags type + * altough, with the same numeric values. + * * Since: 1.10 **/ -typedef enum { +typedef enum { /*< flags >*/ NM_SETTING_WIRELESS_SECURITY_WPS_METHOD_DEFAULT = 0x00000000, NM_SETTING_WIRELESS_SECURITY_WPS_METHOD_DISABLED = 0x00000001, NM_SETTING_WIRELESS_SECURITY_WPS_METHOD_AUTO = 0x00000002,