|  |  |  | libnm-glib Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
NMIP4Config; NMIP4ConfigClass; #define NM_IP4_CONFIG_ADDRESSES #define NM_IP4_CONFIG_HOSTNAME #define NM_IP4_CONFIG_NAMESERVERS #define NM_IP4_CONFIG_DOMAINS #define NM_IP4_CONFIG_ROUTES #define NM_IP4_CONFIG_WINS_SERVERS GObject * nm_ip4_config_new (DBusGConnection *connection,const char *object_path); const GSList * nm_ip4_config_get_addresses (NMIP4Config *config); const char * nm_ip4_config_get_hostname (NMIP4Config *config); const GArray * nm_ip4_config_get_nameservers (NMIP4Config *config); const GPtrArray * nm_ip4_config_get_domains (NMIP4Config *config); const GSList * nm_ip4_config_get_routes (NMIP4Config *config); const GArray * nm_ip4_config_get_wins_servers (NMIP4Config *config);
"addresses" gpointer : Read "domains" nm-string-array* : Read "hostname" gchar* : Read "nameservers" nm-uint-array* : Read "routes" gpointer : Read "wins-servers" nm-uint-array* : Read
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;
GObject * nm_ip4_config_new (DBusGConnection *connection,const char *object_path);
Creates a new NMIP4Config.
| 
 | the DBusGConnection | 
| 
 | the DBus object path of the device | 
| Returns : | a new IP4 configuration | 
const GSList *      nm_ip4_config_get_addresses         (NMIP4Config *config);
Gets the IP4 addresses (containing the address, prefix, and gateway).
| 
 | a NMIP4Config | 
| Returns : | the GSList containing NMSettingIP4Addresses. This is the internal copy used by the configuration and must not be modified. | 
const char *        nm_ip4_config_get_hostname          (NMIP4Config *config);
DEPRECATED. Don't use.
| 
 | a NMIP4Config | 
| Returns : | NULL | 
const GArray *      nm_ip4_config_get_nameservers       (NMIP4Config *config);
Gets the domain name servers (DNS).
| 
 | a NMIP4Config | 
| Returns : | the GArray containing guint32s. This is the internal copy used by the
configuration and must not be modified. | 
const GPtrArray *   nm_ip4_config_get_domains           (NMIP4Config *config);
Gets the domain names.
| 
 | a NMIP4Config | 
| Returns : | the GPtrArray containing domains as strings. This is the internal copy used by the configuration, and must not be modified. | 
const GSList *      nm_ip4_config_get_routes            (NMIP4Config *config);
Gets the routes.
| 
 | a NMIP4Config | 
| Returns : | the GSList containing NMSettingIP4Routes. This is the internal copy used by the configuration, and must not be modified. | 
const GArray *      nm_ip4_config_get_wins_servers      (NMIP4Config *config);
Gets the Windows Internet Name Service servers (WINS).
| 
 | a NMIP4Config | 
| Returns : | the GArray containing guint32s. This is the internal copy used by the
configuration and must not be modified. | 
"addresses" property"addresses" gpointer : Read
The GPtrArray containing NMSettingIP4Addresses of the configuration.
"domains" property  "domains"                  nm-string-array*      : Read
The GPtrArray containing domain strings of the configuration.
"nameservers" property  "nameservers"              nm-uint-array*        : Read
The GArray containing name servers (guint32es) of the configuration.
"routes" property"routes" gpointer : Read
The GPtrArray containing NMSettingIP4Routes of the configuration.