![]() |
![]() |
![]() |
libnm-util Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#include <nm-setting-team.h> #define NM_SETTING_TEAM_SETTING_NAME enum NMSettingTeamError; #define NM_SETTING_TEAM_ERROR GQuark nm_setting_team_error_quark (void
); #define NM_SETTING_TEAM_INTERFACE_NAME #define NM_SETTING_TEAM_CONFIG NMSettingTeam; NMSettingTeamClass; NMSetting * nm_setting_team_new (void
); const char * nm_setting_team_get_interface_name (NMSettingTeam *setting
); const char * nm_setting_team_get_config (NMSettingTeam *setting
);
The NMSettingTeam object is a NMSetting subclass that describes properties necessary for team connections.
typedef enum { NM_SETTING_TEAM_ERROR_UNKNOWN = 0, /*< nick=UnknownError >*/ NM_SETTING_TEAM_ERROR_INVALID_PROPERTY, /*< nick=InvalidProperty >*/ NM_SETTING_TEAM_ERROR_MISSING_PROPERTY, /*< nick=MissingProperty >*/ } NMSettingTeamError;
GQuark nm_setting_team_error_quark (void
);
Registers an error quark for NMSettingTeam if necessary.
Returns : |
the error quark used for NMSettingTeam errors. |
Since 0.9.10
typedef struct { NMSettingClass parent; /* Padding for future expansion */ void (*_reserved1) (void); void (*_reserved2) (void); void (*_reserved3) (void); void (*_reserved4) (void); } NMSettingTeamClass;
NMSetting * nm_setting_team_new (void
);
Creates a new NMSettingTeam object with default values.
Returns : |
the new empty NMSettingTeam object. [transfer full] |
Since 0.9.10
const char * nm_setting_team_get_interface_name (NMSettingTeam *setting
);
|
the NMSettingTeam |
Returns : |
the "interface-name" property of the setting |
Since 0.9.10
const char * nm_setting_team_get_config (NMSettingTeam *setting
);
|
the NMSettingTeam |
Returns : |
the "config" property of the setting |
Since 0.9.10
"config"
property"config" gchar* : Read / Write
The JSON configuration for the team network interface. The property should contain raw JSON configuration data suitable for teamd, because the value is passed directly to teamd. If not specified, the default configuration is used. See man teamd.conf for the format details.
Default value: NULL
"interface-name"
property"interface-name" gchar* : Read / Write
The name of the virtual in-kernel team network interface
Default value: NULL