From 227c401a10a930af6fd5f123aef345fcd130d6aa Mon Sep 17 00:00:00 2001 From: Sebastien Bacher Date: Mon, 10 Dec 2018 21:58:18 +0100 Subject: Import Upstream version 1.12.6 --- libnm/libnm.ver | 5 +++++ libnm/nm-access-point.c | 2 +- libnm/nm-client.c | 4 ++++ libnm/nm-device.c | 2 +- libnm/nm-manager.c | 12 +++++------- libnm/nm-object.c | 2 +- libnm/nm-property-docs.xml | 12 ++++++------ libnm/nm-remote-connection.c | 2 +- libnm/nm-settings-docs.xml | 12 ++++++------ libnm/nm-settings-ifcfg-rh-docs.xml | 2 +- libnm/nm-wimax-nsp.c | 2 +- 11 files changed, 32 insertions(+), 25 deletions(-) (limited to 'libnm') diff --git a/libnm/libnm.ver b/libnm/libnm.ver index d937f531..7fb55fb8 100644 --- a/libnm/libnm.ver +++ b/libnm/libnm.ver @@ -1332,6 +1332,11 @@ global: nm_utils_tc_tfilter_to_str; } libnm_1_10_0; +libnm_1_10_14 { + #nm_setting_connection_get_mdns@libnm_1_10_14; + #nm_setting_connection_mdns_get_type@libnm_1_10_14; +} libnm_1_10_2; + libnm_1_12_0 { global: nm_checkpoint_create_flags_get_type; diff --git a/libnm/nm-access-point.c b/libnm/nm-access-point.c index 75ea5570..92b89689 100644 --- a/libnm/nm-access-point.c +++ b/libnm/nm-access-point.c @@ -367,7 +367,7 @@ nm_access_point_connection_valid (NMAccessPoint *ap, NMConnection *connection) * #NMDevice using nm_device_filter_connections() and finally filter that list * with this function. * - * Returns: (transfer container) (element-type NMConnection): an array of + * Returns: (transfer full) (element-type NMConnection): an array of * #NMConnections that could be activated with the given @ap. The array should * be freed with g_ptr_array_unref() when it is no longer required. **/ diff --git a/libnm/nm-client.c b/libnm/nm-client.c index 18d3e318..a360df2d 100644 --- a/libnm/nm-client.c +++ b/libnm/nm-client.c @@ -3793,3 +3793,7 @@ NM_BACKPORT_SYMBOL (libnm_1_0_6, gboolean, nm_utils_enum_from_str, (type, str, out_value, err_token)); NM_BACKPORT_SYMBOL (libnm_1_2_4, gint, nm_setting_ip_config_get_dns_priority, (NMSettingIPConfig *setting), (setting)); + +NM_BACKPORT_SYMBOL (libnm_1_10_14, NMSettingConnectionMdns, nm_setting_connection_get_mdns, + (NMSettingConnection *setting), (setting)); +NM_BACKPORT_SYMBOL (libnm_1_10_14, GType, nm_setting_connection_mdns_get_type, (void), ()); diff --git a/libnm/nm-device.c b/libnm/nm-device.c index d841ca37..4bf3a404 100644 --- a/libnm/nm-device.c +++ b/libnm/nm-device.c @@ -2524,7 +2524,7 @@ nm_device_connection_compatible (NMDevice *device, NMConnection *connection, GEr * incompatible with the device. To get the full list of connections see * nm_client_get_connections(). * - * Returns: (transfer container) (element-type NMConnection): an array of + * Returns: (transfer full) (element-type NMConnection): an array of * #NMConnections that could be activated with the given @device. The array * should be freed with g_ptr_array_unref() when it is no longer required. **/ diff --git a/libnm/nm-manager.c b/libnm/nm-manager.c index aac120c6..a5425127 100644 --- a/libnm/nm-manager.c +++ b/libnm/nm-manager.c @@ -885,22 +885,20 @@ activate_info_complete (ActivateInfo *info, NMActiveConnection *active, GError *error) { + nm_clear_g_signal_handler (info->cancellable, &info->cancelled_id); + + c_list_unlink_stale (&info->lst); + if (active) g_simple_async_result_set_op_res_gpointer (info->simple, g_object_ref (active), g_object_unref); else g_simple_async_result_set_from_error (info->simple, error); g_simple_async_result_complete (info->simple); - c_list_unlink_stale (&info->lst); - g_free (info->active_path); g_free (info->new_connection_path); g_object_unref (info->simple); - if (info->cancellable) { - if (info->cancelled_id) - g_signal_handler_disconnect (info->cancellable, info->cancelled_id); - g_object_unref (info->cancellable); - } + nm_g_object_unref (info->cancellable); g_slice_free (ActivateInfo, info); } diff --git a/libnm/nm-object.c b/libnm/nm-object.c index da2fbb79..85db80a8 100644 --- a/libnm/nm-object.c +++ b/libnm/nm-object.c @@ -1292,7 +1292,7 @@ nm_object_class_init (NMObjectClass *nm_object_class) /* Properties */ /** - * NMObject:path: (skip) + * NMObject:path: * * The D-Bus object path. **/ diff --git a/libnm/nm-property-docs.xml b/libnm/nm-property-docs.xml index 78d62e87..3d9ef0d3 100644 --- a/libnm/nm-property-docs.xml +++ b/libnm/nm-property-docs.xml @@ -14,7 +14,7 @@ - + @@ -128,14 +128,14 @@ - + - + - + - + @@ -435,7 +435,7 @@ - + diff --git a/libnm/nm-remote-connection.c b/libnm/nm-remote-connection.c index 6c1e0924..08faa77e 100644 --- a/libnm/nm-remote-connection.c +++ b/libnm/nm-remote-connection.c @@ -918,7 +918,7 @@ get_property (GObject *object, guint prop_id, g_value_set_boolean (value, NM_REMOTE_CONNECTION_GET_PRIVATE (object)->unsaved); break; case PROP_FLAGS: - g_value_set_boolean (value, NM_REMOTE_CONNECTION_GET_PRIVATE (object)->flags); + g_value_set_uint (value, NM_REMOTE_CONNECTION_GET_PRIVATE (object)->flags); break; case PROP_FILENAME: g_value_set_string (value, NM_REMOTE_CONNECTION_GET_PRIVATE (object)->filename); diff --git a/libnm/nm-settings-docs.xml b/libnm/nm-settings-docs.xml index ab70aa7b..bf24ccd5 100644 --- a/libnm/nm-settings-docs.xml +++ b/libnm/nm-settings-docs.xml @@ -14,7 +14,7 @@ - + @@ -130,14 +130,14 @@ - + - + - + - + @@ -445,7 +445,7 @@ - + diff --git a/libnm/nm-settings-ifcfg-rh-docs.xml b/libnm/nm-settings-ifcfg-rh-docs.xml index bf041ab2..7e8b9de6 100644 --- a/libnm/nm-settings-ifcfg-rh-docs.xml +++ b/libnm/nm-settings-ifcfg-rh-docs.xml @@ -109,7 +109,7 @@ pinging the gateway and waiting for the specified timeout (in seconds)."/> - + diff --git a/libnm/nm-wimax-nsp.c b/libnm/nm-wimax-nsp.c index f8c8ca42..90c2c2bb 100644 --- a/libnm/nm-wimax-nsp.c +++ b/libnm/nm-wimax-nsp.c @@ -151,7 +151,7 @@ nm_wimax_nsp_connection_valid (NMWimaxNsp *nsp, NMConnection *connection) * return connections which may be activated with the NSP. Any returned * connections will match the @nsp's network name and other attributes. * - * Returns: (transfer container) (element-type NMConnection): an array of + * Returns: (transfer full) (element-type NMConnection): an array of * #NMConnections that could be activated with the given @nsp. The array should * be freed with g_ptr_array_unref() when it is no longer required. **/ -- cgit 1.3.0-6-gf8a5