| Liboobs (System configuration management) Reference Manual | ||||
|---|---|---|---|---|
OobsHostsConfig;
OobsObject* oobs_hosts_config_get (void);
const gchar * oobs_hosts_config_get_hostname (OobsHostsConfig *config);
void oobs_hosts_config_set_hostname (OobsHostsConfig *config,
const gchar *hostname);
const gchar * oobs_hosts_config_get_domainname (OobsHostsConfig *config);
void oobs_hosts_config_set_domainname (OobsHostsConfig *config,
const gchar *domainname);
OobsList* oobs_hosts_config_get_static_hosts (OobsHostsConfig *config);
GList * oobs_hosts_config_get_dns_servers (OobsHostsConfig *config);
void oobs_hosts_config_set_dns_servers (OobsHostsConfig *config,
GList *dns_list);
GList * oobs_hosts_config_get_search_domains
(OobsHostsConfig *config);
void oobs_hosts_config_set_search_domains
(OobsHostsConfig *config,
GList *search_domains_list);
OobsObject* oobs_hosts_config_get (void);
Returns the OobsHostsConfig singleton, this object represents the hosts resolution configuration.
Returns : |
the singleton |
constgchar * oobs_hosts_config_get_hostname (OobsHostsConfig *config);
Returns the hostname for the machine.
|
An |
Returns : |
A pointer to the hostname as a string. This string must not be freed, modified or stored. |
void oobs_hosts_config_set_hostname (OobsHostsConfig *config, constgchar *hostname);
Sets a new hostname, overwriting the previous one.
|
An |
|
A new hostname. |
constgchar * oobs_hosts_config_get_domainname (OobsHostsConfig *config);
Returns the domain name for the machine.
|
An |
Returns : |
A pointer to the domain name as a string. This string must not be freed, modified or stored. |
void oobs_hosts_config_set_domainname (OobsHostsConfig *config, constgchar *domainname);
Sets a new domain name, overwriting the previous one.
|
An |
|
A new domain name. |
OobsList* oobs_hosts_config_get_static_hosts (OobsHostsConfig *config);
Returns an OobsList containing objects of type
|
An |
Returns : |
An OobsList containing the static hosts configuration. |
GList * oobs_hosts_config_get_dns_servers (OobsHostsConfig *config);
Returns a g_list_free()
|
An |
Returns : |
a |
void oobs_hosts_config_set_dns_servers (OobsHostsConfig *config,GList *dns_list);
Overwrites the list of DNS servers. The previous list and its contents will be freed, so any merging will have to be done by hand.
|
An |
|
a |
GList * oobs_hosts_config_get_search_domains (OobsHostsConfig *config);
Returns a g_list_free()
|
An |
Returns : |
a |
void oobs_hosts_config_set_search_domains (OobsHostsConfig *config,GList *search_domains_list);
Overwrites the list of search domains. The previous list and its contents will be freed, so any merging will have to be done by hand.
|
An OobsHostsConfig |
|
a |