summaryrefslogtreecommitdiff
path: root/libnm-util/nm-setting-gsm.h
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2012-03-09 09:39:58 -0500
committerDan Winship <danw@gnome.org>2012-03-12 15:29:52 -0400
commit54ef8f3224a02aac76623cfa0a7d38c3b3ff7d3e (patch)
tree802e0373406bbf89a45051fa97f18ec12e610b41 /libnm-util/nm-setting-gsm.h
parent2a1277f0da71257206938efa600c20cded6019f5 (diff)
downloadNetworkManager-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-gsm.h')
-rw-r--r--libnm-util/nm-setting-gsm.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libnm-util/nm-setting-gsm.h b/libnm-util/nm-setting-gsm.h
index 69183d4642..af3efc2cdb 100644
--- a/libnm-util/nm-setting-gsm.h
+++ b/libnm-util/nm-setting-gsm.h
@@ -49,10 +49,10 @@ G_BEGIN_DECLS
* is missing in the connection
*/
typedef enum {
- NM_SETTING_GSM_ERROR_UNKNOWN = 0,
- NM_SETTING_GSM_ERROR_INVALID_PROPERTY,
- NM_SETTING_GSM_ERROR_MISSING_PROPERTY,
- NM_SETTING_GSM_ERROR_MISSING_SERIAL_SETTING
+ NM_SETTING_GSM_ERROR_UNKNOWN = 0, /*< nick=UnknownError >*/
+ NM_SETTING_GSM_ERROR_INVALID_PROPERTY, /*< nick=InvalidProperty >*/
+ NM_SETTING_GSM_ERROR_MISSING_PROPERTY, /*< nick=MissingProperty >*/
+ NM_SETTING_GSM_ERROR_MISSING_SERIAL_SETTING /*< nick=MissingSerialSetting >*/
} NMSettingGsmError;
#define NM_SETTING_GSM_ERROR nm_setting_gsm_error_quark ()