| libnm-util Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
#include <nm-setting-generic.h> #define NM_SETTING_GENERIC_SETTING_NAME enum NMSettingGenericError; #define NM_SETTING_GENERIC_ERROR GQuark nm_setting_generic_error_quark (void); NMSettingGeneric; NMSettingGenericClass; NMSetting * nm_setting_generic_new (void);
The NMSettingGeneric object is a NMSetting subclass that describes optional properties that apply to "generic" devices (ie, devices that NetworkManager does not specifically recognize).
There are currently no properties on this object; it exists only to be the "connection type" setting on NMConnections for generic devices.
typedef enum {
NM_SETTING_GENERIC_ERROR_UNKNOWN = 0, /*< nick=UnknownError >*/
NM_SETTING_GENERIC_ERROR_INVALID_PROPERTY, /*< nick=InvalidProperty >*/
NM_SETTING_GENERIC_ERROR_MISSING_PROPERTY, /*< nick=MissingProperty >*/
} NMSettingGenericError;
| unknown or unclassified error | |
| the property was invalid | |
| the property was missing and is required |
Since 0.9.10
GQuark nm_setting_generic_error_quark (void);
Registers an error quark for NMSettingGeneric if necessary.
Returns : |
the error quark used for NMSettingGeneric 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);
} NMSettingGenericClass;
NMSetting * nm_setting_generic_new (void);
Creates a new NMSettingGeneric object with default values.
Returns : |
the new empty NMSettingGeneric object. [transfer full] |
Since 0.9.10