![]() |
![]() |
![]() |
libnm Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
struct NMDhcpConfig; NMDhcpConfigClass; #define NM_DHCP_CONFIG_FAMILY #define NM_DHCP_CONFIG_OPTIONS int nm_dhcp_config_get_family (NMDhcpConfig *config
); GHashTable * nm_dhcp_config_get_options (NMDhcpConfig *config
); const char * nm_dhcp_config_get_one_option (NMDhcpConfig *config
,const char *option
);
int nm_dhcp_config_get_family (NMDhcpConfig *config
);
Gets the IP address family of the configuration
|
a NMDhcpConfig |
Returns : |
the IP address family; either AF_INET or AF_INET6
|
GHashTable * nm_dhcp_config_get_options (NMDhcpConfig *config
);
Gets all the options contained in the configuration.
|
a NMDhcpConfig |
Returns : |
the GHashTable containing strings for keys and values. This is the internal copy used by the configuration, and must not be modified. [transfer none][element-type utf8 utf8] |
const char * nm_dhcp_config_get_one_option (NMDhcpConfig *config
,const char *option
);
Gets one option by option name.
|
a NMDhcpConfig |
|
the option to retrieve |
Returns : |
the configuration option's value. This is the internal string used by the configuration, and must not be modified. |
"family"
property"family" gint : Read
The IP address family of the configuration; either AF_INET
or AF_INET6
.
Allowed values: [0,255]
Default value: 0
"options"
property"options" GHashTable* : Read
The GHashTable containing options of the configuration.
Type: GLib.HashTable(utf8,utf8)