mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 04:10:14 +01:00
trivial: IP6Config object cleanups
This commit is contained in:
parent
9f85d3533e
commit
398b41a61d
2 changed files with 3 additions and 3 deletions
|
|
@ -183,7 +183,7 @@ const struct in6_addr *nm_ip6_config_get_ptp_address (NMIP6Config *config)
|
|||
return &NM_IP6_CONFIG_GET_PRIVATE (config)->ptp_address;
|
||||
}
|
||||
|
||||
void nm_ip6_config_set_ptp_address (NMIP6Config *config, struct in6_addr *ptp_addr)
|
||||
void nm_ip6_config_set_ptp_address (NMIP6Config *config, const struct in6_addr *ptp_addr)
|
||||
{
|
||||
g_return_if_fail (NM_IS_IP6_CONFIG (config));
|
||||
|
||||
|
|
@ -197,7 +197,7 @@ void nm_ip6_config_add_nameserver (NMIP6Config *config, const struct in6_addr *n
|
|||
int i;
|
||||
|
||||
g_return_if_fail (NM_IS_IP6_CONFIG (config));
|
||||
g_return_if_fail (nameserver > 0);
|
||||
g_return_if_fail (nameserver != NULL);
|
||||
|
||||
priv = NM_IP6_CONFIG_GET_PRIVATE (config);
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ NMIP6Address *nm_ip6_config_get_address (NMIP6Config *config, guint32 i)
|
|||
guint32 nm_ip6_config_get_num_addresses (NMIP6Config *config);
|
||||
|
||||
const struct in6_addr *nm_ip6_config_get_ptp_address (NMIP6Config *config);
|
||||
void nm_ip6_config_set_ptp_address (NMIP6Config *config, struct in6_addr *ptp_addr);
|
||||
void nm_ip6_config_set_ptp_address (NMIP6Config *config, const struct in6_addr *ptp_addr);
|
||||
|
||||
void nm_ip6_config_add_nameserver (NMIP6Config *config, const struct in6_addr *nameserver);
|
||||
const struct in6_addr *nm_ip6_config_get_nameserver (NMIP6Config *config, guint i);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue