## NMIP4Config NMIP4Config |

## Synopsis

                        NMIP4Config;
                        NMIP4ConfigClass;
    #define             NM_IP4_CONFIG_GATEWAY
    #define             NM_IP4_CONFIG_ADDRESSES
    #define             NM_IP4_CONFIG_ROUTES
    #define             NM_IP4_CONFIG_NAMESERVERS
    #define             NM_IP4_CONFIG_DOMAINS
    #define             NM_IP4_CONFIG_SEARCHES
    #define             NM_IP4_CONFIG_WINS_SERVERS
    GObject *           nm_ip4_config_new                   (DBusGConnection *connection,
                                                             const char *object_path);
    const char *        nm_ip4_config_get_gateway           (NMIP4Config *config);
    const GSList *      nm_ip4_config_get_addresses         (NMIP4Config *config);
    const GSList *      nm_ip4_config_get_routes            (NMIP4Config *config);
    const GArray *      nm_ip4_config_get_nameservers       (NMIP4Config *config);
    const GPtrArray *   nm_ip4_config_get_domains           (NMIP4Config *config);
    const GPtrArray *   nm_ip4_config_get_searches          (NMIP4Config *config);
    const GArray *      nm_ip4_config_get_wins_servers      (NMIP4Config *config);

## Object Hierarchy

      GObject
       +----NMObject
             +----NMIP4Config

## Implemented Interfaces

NMIP4Config implements GInitable and GAsyncInitable.

## Properties

      "addresses"                gpointer              : Read
      "domains"                  NMStringArray*        : Read
      "gateway"                  gchar*                : Read
      "nameservers"              NMUintArray*          : Read
      "routes"                   gpointer              : Read
      "searches"                 NMStringArray*        : Read
      "wins-servers"             NMUintArray*          : Read

## Description

## Details

### NMIP4Config

    typedef struct _NMIP4Config NMIP4Config;

### NMIP4ConfigClass

    typedef struct {
    	NMObjectClass parent;

    	/* Padding for future expansion */
    	void (*_reserved1) (void);
    	void (*_reserved2) (void);
    	void (*_reserved3) (void);
    	void (*_reserved4) (void);
    	void (*_reserved5) (void);
    	void (*_reserved6) (void);
    } NMIP4ConfigClass;

### NM_IP4_CONFIG_GATEWAY

    #define NM_IP4_CONFIG_GATEWAY "gateway"

### NM_IP4_CONFIG_ADDRESSES

    #define NM_IP4_CONFIG_ADDRESSES "addresses"

### NM_IP4_CONFIG_ROUTES

    #define NM_IP4_CONFIG_ROUTES "routes"

### NM_IP4_CONFIG_NAMESERVERS

    #define NM_IP4_CONFIG_NAMESERVERS "nameservers"

### NM_IP4_CONFIG_DOMAINS

    #define NM_IP4_CONFIG_DOMAINS "domains"

### NM_IP4_CONFIG_SEARCHES

    #define NM_IP4_CONFIG_SEARCHES "searches"

### NM_IP4_CONFIG_WINS_SERVERS

    #define NM_IP4_CONFIG_WINS_SERVERS "wins-servers"

### nm_ip4_config_new ()

    GObject *           nm_ip4_config_new                   (DBusGConnection *connection,
                                                             const char *object_path);

Creates a new NMIP4Config.

`connection` : | the DBusGConnection
`object_path` : | the DBus object path of the device
Returns : | a new IP4 configuration. [transfer full]

### nm_ip4_config_get_gateway ()

    const char *        nm_ip4_config_get_gateway           (NMIP4Config *config);

Gets the IP4 gateway address.

`config` : | a NMIP4Config
Returns : | the IP4 address of the gateway.

Since 0.9.10

### nm_ip4_config_get_addresses ()

    const GSList *      nm_ip4_config_get_addresses         (NMIP4Config *config);

Gets the IP4 addresses (containing the address, prefix, and gateway).

`config` : | a NMIP4Config
Returns : | the GSList containing NMIP4Addresses. This is the internal copy used by the configuration and must not be modified. [element-type NetworkManager.IP4Address]

### nm_ip4_config_get_routes ()

    const GSList *      nm_ip4_config_get_routes            (NMIP4Config *config);

Gets the routes.

`config` : | a NMIP4Config
Returns : | the GSList containing NMIP4Routes. This is the internal copy used by the configuration, and must not be modified. [element-type NetworkManager.IP4Route]

### nm_ip4_config_get_nameservers ()

    const GArray *      nm_ip4_config_get_nameservers       (NMIP4Config *config);

Gets the domain name servers (DNS).

`config` : | a NMIP4Config
Returns : | the GArray containing guint32s. This is the internal copy used by the configuration and must not be modified. [element-type guint32]

### nm_ip4_config_get_domains ()

    const GPtrArray *   nm_ip4_config_get_domains           (NMIP4Config *config);

Gets the domain names.

`config` : | a NMIP4Config
Returns : | the GPtrArray containing domains as strings. This is the internal copy used by the configuration, and must not be modified. [element-type utf8]

### nm_ip4_config_get_searches ()

    const GPtrArray *   nm_ip4_config_get_searches          (NMIP4Config *config);

Gets the dns searches.

`config` : | a NMIP4Config
Returns : | the GPtrArray containing dns searches as strings. This is the internal copy used by the configuration, and must not be modified. [element-type utf8]

Since 0.9.10

### nm_ip4_config_get_wins_servers ()

    const GArray *      nm_ip4_config_get_wins_servers      (NMIP4Config *config);

Gets the Windows Internet Name Service servers (WINS).

`config` : | a NMIP4Config
Returns : | the GArray containing guint32s. This is the internal copy used by the configuration and must not be modified. [element-type guint32]

## Property Details

### The `"addresses"` property

      "addresses"                gpointer              : Read

The GPtrArray containing NMIP4Addresses of the configuration.

### The `"domains"` property

      "domains"                  NMStringArray*        : Read

The GPtrArray containing domain strings of the configuration.

### The `"gateway"` property

      "gateway"                  gchar*                : Read

The IP4 gateway address of the configuration as string.

Default value: NULL

Since 0.9.10

### The `"nameservers"` property

      "nameservers"              NMUintArray*          : Read

The GArray containing name servers (guint32s) of the configuration.

### The `"routes"` property

      "routes"                   gpointer              : Read

The GPtrArray containing NMSettingIP4Routes of the configuration.

### The `"searches"` property

      "searches"                 NMStringArray*        : Read

The GPtrArray containing dns search strings of the configuration.

Since 0.9.10

### The `"wins-servers"` property

      "wins-servers"             NMUintArray*          : Read

The GArray containing WINS servers (guint32s) of the configuration.