SettingMatch
Object Hierarchy:
Description:
[ CCode ( type_id = "nm_setting_match_get_type ()" ) ]
[ Version ( since = "1.14" ) ]
public sealed class SettingMatch : Setting
[ Version ( since = "1.14" ) ]
public sealed class SettingMatch : Setting
Match settings
Namespace: NM
Package: libnm
Content:
Constants:
- public const string DRIVER
- public const string INTERFACE_NAME
- public const string KERNEL_COMMAND_LINE
- public const string PATH
- public const string SETTING_NAME
Properties:
- public string[] driver { owned get; set; }
A list of driver names to match.
- public string[] interface_name { owned get; set; }
A list of interface names to match.
- public string[] kernel_command_line { owned get; set; }
A list of kernel command line arguments to match.
- public string[] path { owned get; set; }
A list of paths to match against the ID_PATH udev property of devices.
Creation methods:
- public SettingMatch ()
Creates a new SettingMatch object with default values.
Methods:
- public void add_driver (string driver)
Adds a new driver to the setting.
- public void add_interface_name (string interface_name)
Adds a new interface name to the setting.
- public void add_kernel_command_line (string kernel_command_line)
Adds a new kernel command line argument to the setting.
- public void add_path (string path)
Adds a new path to the setting.
- public void clear_drivers ()
Removes all configured drivers.
- public void clear_interface_names ()
Removes all configured interface names.
- public void clear_kernel_command_lines ()
Removes all configured kernel command line arguments.
- public void clear_paths ()
Removes all configured paths.
- public unowned string get_driver (uint idx)
- public unowned string[] get_drivers ()
Returns all the drivers.
- public unowned string get_interface_name (int idx)
- public unowned string[] get_interface_names ()
Returns all the interface names.
- public unowned string get_kernel_command_line (uint idx)
- public unowned string[] get_kernel_command_lines ()
Returns all the interface names.
- public uint get_num_drivers ()
- public uint get_num_interface_names ()
- public uint get_num_kernel_command_lines ()
- public uint get_num_paths ()
- public unowned string get_path (uint idx)
- public unowned string[] get_paths ()
Returns all the paths.
- public void remove_driver (uint idx)
Removes the driver at index
idx
. - public bool remove_driver_by_value (string driver)
Removes
driver
. - public void remove_interface_name (int idx)
Removes the interface name at index
idx
. - public bool remove_interface_name_by_value (string interface_name)
Removes
interface_name
. - public void remove_kernel_command_line (uint idx)
Removes the kernel command line argument at index
idx
. - public bool remove_kernel_command_line_by_value (string kernel_command_line)
Removes
kernel_command_line
. - public void remove_path (uint idx)
Removes the path at index
idx
. - public bool remove_path_by_value (string path)
Removes
path
.
Inherited Members:
All known members inherited from class NM.Setting
All known members inherited from class GLib.Object