summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-01-07 16:21:31 +0100
committerThomas Haller <thaller@redhat.com>2019-01-07 16:25:26 +0100
commite99deb3912eae5ffae180c26e8807efb7664ade4 (patch)
tree527d69a875fc115c3572a83fade62e7c778d290d
parent0fdcbc6bfa9744f4c5fe40815d1f51cd64289ebe (diff)
downloadNetworkManager-e99deb3912eae5ffae180c26e8807efb7664ade4.tar.gz
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
-rw-r--r--libnm-core/nm-setting-wireless-security.h5
1 files changed, 4 insertions, 1 deletions
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,