diff options
author | Dan Winship <danw@gnome.org> | 2012-03-09 09:39:58 -0500 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2012-03-12 15:29:52 -0400 |
commit | 54ef8f3224a02aac76623cfa0a7d38c3b3ff7d3e (patch) | |
tree | 802e0373406bbf89a45051fa97f18ec12e610b41 /libnm-util/nm-setting-ip6-config.h | |
parent | 2a1277f0da71257206938efa600c20cded6019f5 (diff) | |
download | NetworkManager-54ef8f3224a02aac76623cfa0a7d38c3b3ff7d3e.tar.gz |
Fix names of error enum values
When NM was registering all of its enum types by hand, it was using
NamesLikeThis rather than the default names-like-this for the "nick"
values. When we switched to using glib-mkenums, this resulted in
dbus-glib using different strings for the D-Bus error names, causing
compatibility problems.
Fix this by using glib-mkenums annotations to manually fix all the
enum values back to what they were before. (This can't be done in a
more automated way, because the old names aren't 100% consistent. Eg,
"UNKNOWN" frequently becomes "UnknownError" rather than just
"Unknown".)
Diffstat (limited to 'libnm-util/nm-setting-ip6-config.h')
-rw-r--r-- | libnm-util/nm-setting-ip6-config.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libnm-util/nm-setting-ip6-config.h b/libnm-util/nm-setting-ip6-config.h index 57f9fdc828..55b48b2def 100644 --- a/libnm-util/nm-setting-ip6-config.h +++ b/libnm-util/nm-setting-ip6-config.h @@ -50,10 +50,10 @@ G_BEGIN_DECLS * not valid with the given IPv6 method */ typedef enum { - NM_SETTING_IP6_CONFIG_ERROR_UNKNOWN = 0, - NM_SETTING_IP6_CONFIG_ERROR_INVALID_PROPERTY, - NM_SETTING_IP6_CONFIG_ERROR_MISSING_PROPERTY, - NM_SETTING_IP6_CONFIG_ERROR_NOT_ALLOWED_FOR_METHOD + NM_SETTING_IP6_CONFIG_ERROR_UNKNOWN = 0, /*< nick=UnknownError >*/ + NM_SETTING_IP6_CONFIG_ERROR_INVALID_PROPERTY, /*< nick=InvalidProperty >*/ + NM_SETTING_IP6_CONFIG_ERROR_MISSING_PROPERTY, /*< nick=MissingProperty >*/ + NM_SETTING_IP6_CONFIG_ERROR_NOT_ALLOWED_FOR_METHOD /*< nick=NotAllowedForMethod >*/ } NMSettingIP6ConfigError; #define NM_SETTING_IP6_CONFIG_ERROR nm_setting_ip6_config_error_quark () |