NMSettingGeneric

## NMSettingGeneric NMSettingGeneric — Describes connection properties for generic devices |

## Synopsis

    #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);

## Object Hierarchy

      GEnum
       +----NMSettingGenericError

      GObject
       +----NMSetting
             +----NMSettingGeneric

## Description

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.

## Details

### NM_SETTING_GENERIC_SETTING_NAME

    #define NM_SETTING_GENERIC_SETTING_NAME "generic"

### enum NMSettingGenericError

    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;

`NM_SETTING_GENERIC_ERROR_UNKNOWN` | unknown or unclassified error
`NM_SETTING_GENERIC_ERROR_INVALID_PROPERTY` | the property was invalid
`NM_SETTING_GENERIC_ERROR_MISSING_PROPERTY` | the property was missing and is required

Since 0.9.10

### NM_SETTING_GENERIC_ERROR

    #define NM_SETTING_GENERIC_ERROR nm_setting_generic_error_quark ()

### nm_setting_generic_error_quark ()

    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

### NMSettingGeneric

    typedef struct _NMSettingGeneric NMSettingGeneric;

### NMSettingGenericClass

    typedef struct {
    	NMSettingClass parent;

    	/* Padding for future expansion */
    	void (*_reserved1) (void);
    	void (*_reserved2) (void);
    	void (*_reserved3) (void);
    	void (*_reserved4) (void);
    } NMSettingGenericClass;

### nm_setting_generic_new ()

    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