mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-23 19:24:38 +00:00
libnm-glib: remove deprecated nm_ip4_config_get_hostname() function
Deprecated since 0.7 days; it always returned NULL anyway.
This commit is contained in:
parent
c74dd8b0b7
commit
0ae870bf09
|
@ -118,7 +118,6 @@ global:
|
|||
nm_dhcp6_config_new;
|
||||
nm_ip4_config_get_addresses;
|
||||
nm_ip4_config_get_domains;
|
||||
nm_ip4_config_get_hostname;
|
||||
nm_ip4_config_get_nameservers;
|
||||
nm_ip4_config_get_wins_servers;
|
||||
nm_ip4_config_get_routes;
|
||||
|
|
|
@ -47,7 +47,6 @@ typedef struct {
|
|||
enum {
|
||||
PROP_0,
|
||||
PROP_ADDRESSES,
|
||||
PROP_HOSTNAME,
|
||||
PROP_NAMESERVERS,
|
||||
PROP_DOMAINS,
|
||||
PROP_ROUTES,
|
||||
|
@ -201,9 +200,6 @@ get_property (GObject *object,
|
|||
case PROP_ADDRESSES:
|
||||
nm_utils_ip4_addresses_to_gvalue (priv->addresses, value);
|
||||
break;
|
||||
case PROP_HOSTNAME:
|
||||
g_value_set_string (value, NULL);
|
||||
break;
|
||||
case PROP_NAMESERVERS:
|
||||
g_value_set_boxed (value, nm_ip4_config_get_nameservers (self));
|
||||
break;
|
||||
|
@ -248,19 +244,6 @@ nm_ip4_config_class_init (NMIP4ConfigClass *config_class)
|
|||
"Addresses",
|
||||
G_PARAM_READABLE));
|
||||
|
||||
/**
|
||||
* NMIP4Config:hostname:
|
||||
*
|
||||
* DEPRECATED. Don't use.
|
||||
**/
|
||||
g_object_class_install_property
|
||||
(object_class, PROP_HOSTNAME,
|
||||
g_param_spec_string (NM_IP4_CONFIG_HOSTNAME,
|
||||
"Hostname",
|
||||
"Hostname",
|
||||
NULL,
|
||||
G_PARAM_READABLE));
|
||||
|
||||
/**
|
||||
* NMIP4Config:nameservers:
|
||||
*
|
||||
|
@ -366,20 +349,6 @@ nm_ip4_config_get_addresses (NMIP4Config *config)
|
|||
return priv->addresses;
|
||||
}
|
||||
|
||||
/**
|
||||
* nm_ip4_config_get_hostname: (skip):
|
||||
* @config: a #NMIP4Config
|
||||
*
|
||||
* DEPRECATED. Don't use.
|
||||
*
|
||||
* Returns: NULL
|
||||
**/
|
||||
const char *
|
||||
nm_ip4_config_get_hostname (NMIP4Config *config)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* nm_ip4_config_get_nameservers:
|
||||
* @config: a #NMIP4Config
|
||||
|
|
|
@ -55,7 +55,6 @@ typedef struct {
|
|||
} NMIP4ConfigClass;
|
||||
|
||||
#define NM_IP4_CONFIG_ADDRESSES "addresses"
|
||||
#define NM_IP4_CONFIG_HOSTNAME "hostname" /* DEPRECATED */
|
||||
#define NM_IP4_CONFIG_NAMESERVERS "nameservers"
|
||||
#define NM_IP4_CONFIG_DOMAINS "domains"
|
||||
#define NM_IP4_CONFIG_ROUTES "routes"
|
||||
|
@ -66,7 +65,6 @@ GType nm_ip4_config_get_type (void);
|
|||
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); /* DEPRECATED */
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue