mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 02:50:10 +01:00
settings: fix plugin capabilities max value
It's a bitfield, not a single value.
This commit is contained in:
parent
1f7143b5df
commit
ac757766e6
2 changed files with 6 additions and 3 deletions
|
|
@ -53,7 +53,8 @@ interface_init (gpointer g_iface)
|
|||
"Capabilities",
|
||||
"Plugin capabilties",
|
||||
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,
|
||||
G_PARAM_READABLE));
|
||||
|
||||
|
|
|
|||
|
|
@ -58,9 +58,11 @@ GObject * nm_system_config_factory (void);
|
|||
typedef enum {
|
||||
NM_SYSTEM_CONFIG_INTERFACE_CAP_NONE = 0x00000000,
|
||||
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;
|
||||
|
||||
typedef enum {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue