settings: fix plugin capabilities max value

It's a bitfield, not a single value.
This commit is contained in:
Dan Williams
2011-01-31 21:11:18 -06:00
parent 1f7143b5df
commit ac757766e6
2 changed files with 6 additions and 3 deletions

View File

@@ -53,7 +53,8 @@ interface_init (gpointer g_iface)
"Capabilities", "Capabilities",
"Plugin capabilties", "Plugin capabilties",
NM_SYSTEM_CONFIG_INTERFACE_CAP_NONE, NM_SYSTEM_CONFIG_INTERFACE_CAP_NONE,
NM_SYSTEM_CONFIG_INTERFACE_CAP_LAST - 1, ( NM_SYSTEM_CONFIG_INTERFACE_CAP_MODIFY_CONNECTIONS
| NM_SYSTEM_CONFIG_INTERFACE_CAP_MODIFY_HOSTNAME),
NM_SYSTEM_CONFIG_INTERFACE_CAP_NONE, NM_SYSTEM_CONFIG_INTERFACE_CAP_NONE,
G_PARAM_READABLE)); G_PARAM_READABLE));

View File

@@ -58,9 +58,11 @@ GObject * nm_system_config_factory (void);
typedef enum { typedef enum {
NM_SYSTEM_CONFIG_INTERFACE_CAP_NONE = 0x00000000, NM_SYSTEM_CONFIG_INTERFACE_CAP_NONE = 0x00000000,
NM_SYSTEM_CONFIG_INTERFACE_CAP_MODIFY_CONNECTIONS = 0x00000001, NM_SYSTEM_CONFIG_INTERFACE_CAP_MODIFY_CONNECTIONS = 0x00000001,
NM_SYSTEM_CONFIG_INTERFACE_CAP_MODIFY_HOSTNAME = 0x00000002, NM_SYSTEM_CONFIG_INTERFACE_CAP_MODIFY_HOSTNAME = 0x00000002
NM_SYSTEM_CONFIG_INTERFACE_CAP_LAST = NM_SYSTEM_CONFIG_INTERFACE_CAP_MODIFY_HOSTNAME /* When adding more capabilities, be sure to update the "Capabilities"
* property max value in nm-system-config-interface.c.
*/
} NMSystemConfigInterfaceCapabilities; } NMSystemConfigInterfaceCapabilities;
typedef enum { typedef enum {