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: e6f95b50c8
This commit is contained in:
Thomas Haller 2019-01-07 16:21:31 +01:00
parent 0fdcbc6bfa
commit e99deb3912

View file

@ -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,