diff options
author | Dan Winship <danw@gnome.org> | 2012-09-19 10:36:47 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2012-09-27 13:57:20 -0400 |
commit | de0163fc5c46eb9d04eb97075557012f81cd7567 (patch) | |
tree | 29d9f02c71014c26308af272035a59d398eb5822 /libnm-util/nm-setting-vlan.h | |
parent | 6878d20ac430207b49f46c6fafe705747c02e199 (diff) |
libnm-util: Improve NMSettingVlan's verify()
Do slightly more validation if NMSettingVlan properties, and make sure
that at least one method of specifying a parent is used.
Remove the check that id is in range, since gobject will not allow you
to set the property to a value outside its declared range anyway.
Diffstat (limited to 'libnm-util/nm-setting-vlan.h')
-rw-r--r-- | libnm-util/nm-setting-vlan.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libnm-util/nm-setting-vlan.h b/libnm-util/nm-setting-vlan.h index 9d2d728b3c..019c6da071 100644 --- a/libnm-util/nm-setting-vlan.h +++ b/libnm-util/nm-setting-vlan.h @@ -43,12 +43,15 @@ G_BEGIN_DECLS * @NM_SETTING_VLAN_ERROR_UNKNOWN: unknown or unclassified error * @NM_SETTING_VLAN_ERROR_INVALID_PROPERTY: the property was invalid * @NM_SETTING_VLAN_ERROR_MISSING_PROPERTY: the property was missing and is - * required + * required + * @NM_SETTING_VLAN_ERROR_INVALID_PARENT: the VLAN parent was specified + * inconsistently */ typedef enum { NM_SETTING_VLAN_ERROR_UNKNOWN = 0, /*< nick=Unknown >*/ NM_SETTING_VLAN_ERROR_INVALID_PROPERTY, /*< nick=InvalidProperty >*/ - NM_SETTING_VLAN_ERROR_MISSING_PROPERTY /*< nick=MissingProperty >*/ + NM_SETTING_VLAN_ERROR_MISSING_PROPERTY, /*< nick=MissingProperty >*/ + NM_SETTING_VLAN_ERROR_INVALID_PARENT /*< nick=InvalidParent >*/ } NMSettingVlanError; #define NM_SETTING_VLAN_ERROR nm_setting_vlan_error_quark () |