![]() |
![]() |
![]() |
libnm-glib Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#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
);
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. [transfer full] |
const char * nm_ip4_config_get_gateway (NMIP4Config *config
);
Gets the IP4 gateway address.
|
a NMIP4Config |
Returns : |
the IP4 address of the gateway. |
Since 0.9.10
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 NMIP4Addresses. This is the internal copy used by the configuration and must not be modified. [element-type NMIP4Address] |
const GSList * nm_ip4_config_get_routes (NMIP4Config *config
);
Gets the routes.
|
a NMIP4Config |
Returns : |
the GSList containing NMIP4Routes. This is the internal copy used by the configuration, and must not be modified. [element-type NMIP4Route] |
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. [element-type guint32] |
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. [element-type utf8] |
const GPtrArray * nm_ip4_config_get_searches (NMIP4Config *config
);
Gets the dns searches.
|
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
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. [element-type guint32] |