1
diff --git a/callouts/Makefile.am b/callouts/Makefile.am
2
index 18a7ac6..b302c54 100644
3
--- a/callouts/Makefile.am
4
+++ b/callouts/Makefile.am
5
@@ -65,16 +65,6 @@ nm_dispatcher_action_LDADD = \
2
callouts/Makefile.am | 10
5
src/NetworkManagerPolicy.c | 7
6
src/NetworkManagerUtils.c | 155 ++--
7
src/NetworkManagerUtils.h | 20
8
src/modem-manager/Makefile.am | 41 +
9
src/modem-manager/nm-modem-cdma.c | 209 ++++++
10
src/modem-manager/nm-modem-cdma.h | 36 +
11
src/modem-manager/nm-modem-gsm.c | 342 ++++++++++
12
src/modem-manager/nm-modem-gsm.h | 37 +
13
src/modem-manager/nm-modem-manager.c | 403 +++++++++++
14
src/modem-manager/nm-modem-manager.h | 35 +
15
src/modem-manager/nm-modem-types.h | 93 ++
16
src/modem-manager/nm-modem.c | 639 ++++++++++++++++++
17
src/modem-manager/nm-modem.h | 50 +
18
src/nm-cdma-device.c | 591 -----------------
19
src/nm-cdma-device.h | 59 -
21
src/nm-hal-manager.c | 728 ---------------------
22
src/nm-hso-gsm-device.c | 611 ------------------
23
src/nm-hso-gsm-device.h | 56 -
24
src/nm-manager.c | 150 ++--
25
src/nm-serial-device.c | 1180 -----------------------------------
26
src/nm-serial-device.h | 110 ---
27
25 files changed, 2088 insertions(+), 3501 deletions(-)
29
Index: network-manager-0.7.1~rc4.1.cf199a964/callouts/Makefile.am
30
===================================================================
31
--- network-manager-0.7.1~rc4.1.cf199a964.orig/callouts/Makefile.am
32
+++ network-manager-0.7.1~rc4.1.cf199a964/callouts/Makefile.am
36
$(top_builddir)/libnm-glib/libnm_glib.la \
37
$(top_builddir)/libnm-util/libnm-util.la
6
39
nm-dispatcher-glue.h: nm-dispatcher.xml
7
40
dbus-binding-tool --prefix=nm_dispatcher --mode=glib-server --output=$@ $<
19
52
dbusactivationdir = $(datadir)/dbus-1/system-services
20
53
dbusactivation_in_files = org.freedesktop.nm_dispatcher.service.in
21
54
dbusactivation_DATA = $(dbusactivation_in_files:.service.in=.service)
22
diff --git a/configure.in b/configure.in
23
index a3588e2..619fa4d 100644
26
@@ -488,6 +488,7 @@ src/dhcp-manager/Makefile
56
%.service: %.service.in
60
Index: network-manager-0.7.1~rc4.1.cf199a964/configure.in
61
===================================================================
62
--- network-manager-0.7.1~rc4.1.cf199a964.orig/configure.in
63
+++ network-manager-0.7.1~rc4.1.cf199a964/configure.in
67
src/named-manager/Makefile
68
src/vpn-manager/Makefile
69
src/dhcp-manager/Makefile
27
70
src/supplicant-manager/Makefile
28
71
src/ppp-manager/Makefile
29
72
src/dnsmasq-manager/Makefile
31
74
src/backends/Makefile
32
75
libnm-util/libnm-util.pc
33
76
libnm-util/Makefile
34
diff --git a/src/Makefile.am b/src/Makefile.am
35
index 44911ab..514a581 100644
38
@@ -6,6 +6,7 @@ SUBDIRS= \
77
libnm-util/tests/Makefile
78
libnm-util/tests/certs/Makefile
79
libnm-glib/libnm_glib.pc
80
libnm-glib/libnm_glib_vpn.pc
82
Index: network-manager-0.7.1~rc4.1.cf199a964/src/Makefile.am
83
===================================================================
84
--- network-manager-0.7.1~rc4.1.cf199a964.orig/src/Makefile.am
85
+++ network-manager-0.7.1~rc4.1.cf199a964/src/Makefile.am
82
159
nm-ip4-config-glue.h: $(top_srcdir)/introspection/nm-ip4-config.xml
83
160
dbus-binding-tool --prefix=nm_ip4_config --mode=glib-server --output=$@ $<
85
@@ -141,9 +126,6 @@ BUILT_SOURCES = \
162
nm-active-connection-glue.h: $(top_srcdir)/introspection/nm-active-connection.xml
163
dbus-binding-tool --prefix=nm_active_connection --mode=glib-server --output=$@ $<
165
nm-dhcp4-config-glue.h: $(top_srcdir)/introspection/nm-dhcp4-config.xml
166
dbus-binding-tool --prefix=nm_dhcp4_config --mode=glib-server --output=$@ $<
169
nm-access-point-glue.h \
86
171
nm-device-interface-glue.h \
87
172
nm-device-ethernet-glue.h \
88
173
nm-device-wifi-glue.h \
92
177
nm-ip4-config-glue.h \
93
178
nm-active-connection-glue.h \
94
179
nm-dhcp4-config-glue.h
95
@@ -180,6 +162,7 @@ NetworkManager_LDADD = \
181
NetworkManager_CPPFLAGS = \
185
@@ -175,16 +157,17 @@
187
$(top_builddir)/marshallers/libmarshallers.la \
188
./named-manager/libnamed-manager.la \
189
./vpn-manager/libvpn-manager.la \
190
./dhcp-manager/libdhcp-manager.la \
96
191
./supplicant-manager/libsupplicant-manager.la \
97
192
./dnsmasq-manager/libdnsmasq-manager.la \
98
193
./ppp-manager/libppp-manager.la \
100
195
./backends/libnmbackend.la \
101
196
$(top_builddir)/libnm-util/libnm-util.la
103
diff --git a/src/NetworkManagerPolicy.c b/src/NetworkManagerPolicy.c
104
index 6bba92f..9d40025 100644
105
--- a/src/NetworkManagerPolicy.c
106
+++ b/src/NetworkManagerPolicy.c
198
NetworkManager_LDFLAGS = -rdynamic
200
libexec_PROGRAMS = nm-crash-logger
201
nm_crash_logger_SOURCES = nm-crash-logger.c
202
nm_crash_logger_CPPFLAGS = \
203
Index: network-manager-0.7.1~rc4.1.cf199a964/src/NetworkManagerPolicy.c
204
===================================================================
205
--- network-manager-0.7.1~rc4.1.cf199a964.orig/src/NetworkManagerPolicy.c
206
+++ network-manager-0.7.1~rc4.1.cf199a964/src/NetworkManagerPolicy.c
208
#include "NetworkManagerUtils.h"
209
#include "NetworkManagerAP.h"
210
#include "nm-activation-request.h"
211
#include "nm-utils.h"
212
#include "nm-device-interface.h"
108
213
#include "nm-device.h"
109
214
#include "nm-device-wifi.h"
110
215
#include "nm-device-ethernet.h"
133
248
/* 'never-default' devices can't ever be the default */
134
diff --git a/src/NetworkManagerUtils.c b/src/NetworkManagerUtils.c
135
index 519e57d..1e3d328 100644
136
--- a/src/NetworkManagerUtils.c
137
+++ b/src/NetworkManagerUtils.c
138
@@ -345,48 +345,6 @@ nm_utils_merge_ip4_config (NMIP4Config *ip4_config, NMSettingIP4Config *setting)
249
if (s_ip4 && nm_setting_ip4_config_get_never_default (s_ip4))
252
prio = nm_device_get_priority (dev);
253
if (prio > 0 && prio < best_prio) {
254
Index: network-manager-0.7.1~rc4.1.cf199a964/src/NetworkManagerUtils.c
255
===================================================================
256
--- network-manager-0.7.1~rc4.1.cf199a964.orig/src/NetworkManagerUtils.c
257
+++ network-manager-0.7.1~rc4.1.cf199a964/src/NetworkManagerUtils.c
258
@@ -340,58 +340,16 @@
260
nm_ip4_config_add_route (ip4_config, setting_route);
263
if (nm_setting_ip4_config_get_never_default (setting))
139
264
nm_ip4_config_set_never_default (ip4_config, TRUE);
263
398
dbus_g_proxy_call_no_reply (proxy, "Action",
264
@@ -488,3 +437,69 @@ nm_utils_call_dispatcher (const char *action,
399
G_TYPE_STRING, action,
400
DBUS_TYPE_G_MAP_OF_MAP_OF_VARIANT, connection_hash,
401
DBUS_TYPE_G_MAP_OF_VARIANT, connection_props,
402
DBUS_TYPE_G_MAP_OF_VARIANT, device_props,
405
g_object_unref (proxy);
406
g_hash_table_destroy (connection_hash);
407
g_hash_table_destroy (connection_props);
408
g_hash_table_destroy (device_props);
265
409
g_object_unref (dbus_mgr);
332
476
+ value_hash_add (hash, key, value);
334
diff --git a/src/NetworkManagerUtils.h b/src/NetworkManagerUtils.h
335
index 147a972..437bf2e 100644
336
--- a/src/NetworkManagerUtils.h
337
+++ b/src/NetworkManagerUtils.h
338
@@ -48,5 +48,23 @@ void nm_utils_call_dispatcher (const char *action,
478
Index: network-manager-0.7.1~rc4.1.cf199a964/src/NetworkManagerUtils.h
479
===================================================================
480
--- network-manager-0.7.1~rc4.1.cf199a964.orig/src/NetworkManagerUtils.h
481
+++ network-manager-0.7.1~rc4.1.cf199a964/src/NetworkManagerUtils.h
484
void nm_utils_merge_ip4_config (NMIP4Config *ip4_config, NMSettingIP4Config *setting);
486
void nm_utils_call_dispatcher (const char *action,
487
NMConnection *connection,
339
488
NMDevice *device,
340
489
const char *vpn_iface);
2969
3106
-#endif /* NM_CDMA_DEVICE_H */
2970
diff --git a/src/nm-device.c b/src/nm-device.c
2971
index 1ea77b2..c1c7d36 100644
2972
--- a/src/nm-device.c
2973
+++ b/src/nm-device.c
2974
@@ -887,6 +887,9 @@ real_act_stage3_ip_config_start (NMDevice *self, NMDeviceStateReason *reason)
3107
Index: network-manager-0.7.1~rc4.1.cf199a964/src/nm-device.c
3108
===================================================================
3109
--- network-manager-0.7.1~rc4.1.cf199a964.orig/src/nm-device.c
3110
+++ network-manager-0.7.1~rc4.1.cf199a964/src/nm-device.c
3111
@@ -879,16 +879,19 @@
3113
if (!s_ip4 || !method || !strcmp (method, NM_SETTING_IP4_CONFIG_METHOD_AUTO)) {
3114
NMDevicePrivate *priv = NM_DEVICE_GET_PRIVATE (self);
2975
3117
/* Begin a DHCP transaction on the interface */
2976
3118
nm_device_set_use_dhcp (self, TRUE);
2981
3123
/* DHCP manager will cancel any transaction already in progress and we do not
2982
3124
want to cancel this activation if we get "down" state from that. */
2983
3125
g_signal_handler_block (priv->dhcp_manager, priv->dhcp_state_sigid);
2984
diff --git a/src/nm-hal-manager.c b/src/nm-hal-manager.c
2985
index 647fe21..2e72291 100644
2986
--- a/src/nm-hal-manager.c
2987
+++ b/src/nm-hal-manager.c
3126
success = nm_dhcp_manager_begin_transaction (priv->dhcp_manager, ip_iface, s_ip4, 45);
3127
g_signal_handler_unblock (priv->dhcp_manager, priv->dhcp_state_sigid);
3130
/* DHCP devices will be notified by the DHCP manager when
3131
Index: network-manager-0.7.1~rc4.1.cf199a964/src/nm-hal-manager.c
3132
===================================================================
3133
--- network-manager-0.7.1~rc4.1.cf199a964.orig/src/nm-hal-manager.c
3134
+++ network-manager-0.7.1~rc4.1.cf199a964/src/nm-hal-manager.c
3137
#include "nm-glib-compat.h"
3138
#include "nm-hal-manager.h"
3139
#include "nm-marshal.h"
3140
#include "nm-dbus-manager.h"
2989
3141
#include "nm-utils.h"
2990
3142
#include "nm-device-wifi.h"
2991
3143
#include "nm-device-ethernet.h"
3035
3207
-get_hso_netdev (LibHalContext *ctx, const char *udi)
3037
- char *serial_od = NULL, *serial_od_parent = NULL, *netdev = NULL, *bus;
3038
- char **netdevs = NULL;
3209
- char *serial_parent, *netdev = NULL;
3041
3213
- /* Get the serial interface's originating device UDI, used to find the
3042
3214
- * originating device's netdev.
3044
- serial_od = libhal_device_get_property_string (ctx, udi, "serial.originating_device", NULL);
3046
- serial_od = libhal_device_get_property_string (ctx, udi, "serial.physical_device", NULL);
3050
- serial_od_parent = libhal_device_get_property_string (ctx, serial_od, "info.parent", NULL);
3051
- if (!serial_od_parent)
3054
- /* Check to ensure we've got the actual "USB Device" */
3055
- bus = libhal_device_get_property_string (ctx, serial_od_parent, "info.bus", NULL);
3056
- if (!bus || strcmp (bus, "usb_device")) {
3057
- libhal_free_string (bus);
3060
- libhal_free_string (bus);
3216
- serial_parent = libhal_device_get_property_string (ctx, udi, "serial.originating_device", NULL);
3217
- if (!serial_parent)
3218
- serial_parent = libhal_device_get_property_string (ctx, udi, "info.parent", NULL);
3219
- if (!serial_parent)
3062
3222
- /* Look for the originating device's netdev */
3063
3223
- netdevs = libhal_find_device_by_capability (ctx, "net", &num, NULL);
3064
3224
- for (i = 0; netdevs && !netdev && (i < num); i++) {
3065
- char *net_od = NULL, *net_od_parent = NULL, *tmp;
3067
- net_od = libhal_device_get_property_string (ctx, netdevs[i], "net.originating_device", NULL);
3069
- net_od = libhal_device_get_property_string (ctx, netdevs[i], "net.physical_device", NULL);
3073
- net_od_parent = libhal_device_get_property_string (ctx, net_od, "info.parent", NULL);
3074
- if (!net_od_parent)
3077
- /* Check to ensure we've got the actual "USB Device" */
3078
- bus = libhal_device_get_property_string (ctx, net_od_parent, "info.bus", NULL);
3079
- if (!bus || strcmp (bus, "usb_device")) {
3080
- libhal_free_string (bus);
3083
- libhal_free_string (bus);
3085
- if (!strcmp (net_od_parent, serial_od_parent)) {
3225
- char *netdev_parent, *tmp;
3227
- netdev_parent = libhal_device_get_property_string (ctx, netdevs[i], "net.originating_device", NULL);
3228
- if (!netdev_parent)
3229
- netdev_parent = libhal_device_get_property_string (ctx, netdevs[i], "net.physical_device", NULL);
3230
- if (!netdev_parent)
3233
- if (!strcmp (netdev_parent, serial_parent)) {
3086
3234
- /* We found it */
3087
3235
- tmp = libhal_device_get_property_string (ctx, netdevs[i], "net.interface", NULL);
3089
3237
- netdev = g_strdup (tmp);
3090
- libhal_free_string (tmp);
3238
- libhal_free_string (tmp);
3094
- libhal_free_string (net_od_parent);
3095
- libhal_free_string (net_od);
3242
- libhal_free_string (netdev_parent);
3099
3244
- libhal_free_string_array (netdevs);
3100
- libhal_free_string (serial_od);
3101
- libhal_free_string (serial_od_parent);
3245
- libhal_free_string (serial_parent);
3103
3247
- return netdev;
3744
3883
register_built_in_creators (NMHalManager *self)
3746
@@ -1023,16 +286,6 @@ register_built_in_creators (NMHalManager *self)
3885
NMHalManagerPrivate *priv = NM_HAL_MANAGER_GET_PRIVATE (self);
3886
DeviceCreator *creator;
3889
creator = g_slice_new0 (DeviceCreator);
3890
@@ -985,26 +281,16 @@
3891
/* Wireless device */
3892
creator = g_slice_new0 (DeviceCreator);
3893
creator->device_type = NM_TYPE_DEVICE_WIFI;
3894
creator->capability_str = g_strdup ("net.80211");
3895
creator->category = g_strdup ("net");
3747
3896
creator->is_device_fn = is_wireless_device;
3748
3897
creator->creator_fn = wireless_device_creator;
3749
3898
priv->device_creators = g_slist_append (priv->device_creators, creator);
3763
@@ -1124,14 +377,6 @@ static void
3912
emit_udi_added (NMHalManager *self, const char *udi, DeviceCreator *creator)
3914
NMHalManagerPrivate *priv = NM_HAL_MANAGER_GET_PRIVATE (self);
3915
char *od = NULL, *tmp, *parent, *bus = NULL;
3917
@@ -1086,24 +372,16 @@
3919
emit_udi_added (self, udi, creator);
3764
3923
device_removed (LibHalContext *ctx, const char *udi)
3766
3925
NMHalManager *self = NM_HAL_MANAGER (libhal_ctx_get_user_data (ctx));
3775
3934
g_signal_emit (self, signals[UDI_REMOVED], 0, udi);
3778
@@ -1574,12 +819,6 @@ dispose (GObject *object)
3938
device_new_capability (LibHalContext *ctx, const char *udi, const char *capability)
3940
NMHalManager *self = NM_HAL_MANAGER (libhal_ctx_get_user_data (ctx));
3941
DeviceCreator *creator;
3942
@@ -1536,22 +814,16 @@
3944
priv->disposed = TRUE;
3946
g_object_unref (priv->dbus_mgr);
3779
3948
g_slist_foreach (priv->device_creators, destroy_creator, NULL);
3780
3949
g_slist_free (priv->device_creators);
4469
4641
-#endif /* NM_HSO_GSM_DEVICE_H */
4470
diff --git a/src/nm-manager.c b/src/nm-manager.c
4471
index 5621d86..78323c3 100644
4472
--- a/src/nm-manager.c
4473
+++ b/src/nm-manager.c
4642
Index: network-manager-0.7.1~rc4.1.cf199a964/src/nm-manager.c
4643
===================================================================
4644
--- network-manager-0.7.1~rc4.1.cf199a964.orig/src/nm-manager.c
4645
+++ network-manager-0.7.1~rc4.1.cf199a964/src/nm-manager.c
4647
#include <dbus/dbus-glib-lowlevel.h>
4648
#include <dbus/dbus-glib.h>
4650
#include "nm-glib-compat.h"
4651
#include "nm-manager.h"
4475
4652
#include "nm-utils.h"
4476
4653
#include "nm-dbus-manager.h"
4477
4654
#include "nm-vpn-manager.h"
4484
4661
#include "NetworkManagerSystem.h"
4485
4662
#include "nm-properties-changed-signal.h"
4486
4663
#include "nm-setting-connection.h"
4487
@@ -99,6 +99,9 @@ static void system_settings_properties_changed_cb (DBusGProxy *proxy,
4664
#include "nm-setting-wireless.h"
4665
#include "nm-setting-vpn.h"
4666
#include "nm-marshal.h"
4667
#include "nm-dbus-glib-types.h"
4668
#include "nm-hal-manager.h"
4671
static void hal_manager_hal_reappeared_cb (NMHalManager *hal_mgr,
4672
gpointer user_data);
4674
static void system_settings_properties_changed_cb (DBusGProxy *proxy,
4488
4675
GHashTable *properties,
4489
4676
gpointer user_data);
4505
4702
DBusGProxy *aipd_proxy;
4507
4704
gboolean disposed;
4508
@@ -246,6 +253,36 @@ vpn_manager_connection_deactivated_cb (NMVPNManager *manager,
4707
#define NM_MANAGER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), NM_TYPE_MANAGER, NMManagerPrivate))
4709
G_DEFINE_TYPE (NMManager, nm_manager, G_TYPE_OBJECT)
4710
@@ -241,16 +248,46 @@
4711
NMVPNConnectionState state,
4712
NMVPNConnectionStateReason reason,
4715
g_object_notify (G_OBJECT (user_data), NM_MANAGER_ACTIVE_CONNECTIONS);
4555
4772
priv->vpn_manager = nm_vpn_manager_get ();
4556
4773
id = g_signal_connect (G_OBJECT (priv->vpn_manager), "connection-deactivated",
4557
4774
G_CALLBACK (vpn_manager_connection_deactivated_cb), manager);
4558
@@ -507,6 +550,16 @@ dispose (GObject *object)
4775
priv->vpn_manager_id = id;
4777
g_connection = nm_dbus_manager_get_connection (priv->dbus_mgr);
4779
/* avahi-autoipd stuff */
4780
@@ -502,16 +545,26 @@
4783
if (priv->vpn_manager_id) {
4784
g_source_remove (priv->vpn_manager_id);
4785
priv->vpn_manager_id = 0;
4560
4787
g_object_unref (priv->vpn_manager);
4572
4799
g_object_unref (priv->dbus_mgr);
4573
4800
g_object_unref (priv->hal_mgr);
4575
@@ -1160,20 +1213,6 @@ nm_manager_get_device_by_udi (NMManager *manager, const char *udi)
4802
G_OBJECT_CLASS (nm_manager_parent_class)->dispose (object);
4806
set_property (GObject *object, guint prop_id,
4807
@@ -1155,47 +1208,24 @@
4809
for (iter = NM_MANAGER_GET_PRIVATE (manager)->devices; iter; iter = iter->next) {
4810
if (!strcmp (nm_device_get_udi (NM_DEVICE (iter->data)), udi))
4811
return NM_DEVICE (iter->data);
4580
-nm_manager_get_devices_by_originating_device (NMManager *manager, const char *od)
4817
-nm_manager_get_device_by_originating_device (NMManager *manager, const char *od)
4582
- GSList *iter, *devs = NULL;
4584
4821
- for (iter = NM_MANAGER_GET_PRIVATE (manager)->devices; iter; iter = iter->next) {
4585
4822
- const char *candidate_od = g_object_get_data (G_OBJECT (iter->data), ORIGDEV_TAG);
4587
4824
- if (candidate_od && !strcmp (candidate_od, od))
4588
- devs = g_slist_append (devs, G_OBJECT (iter->data));
4825
- return NM_DEVICE (iter->data);
4593
4830
static const char *
4594
4831
nm_manager_get_originating_device (NMDevice *device)
4596
@@ -1182,15 +1221,6 @@ nm_manager_get_originating_device (NMDevice *device)
4833
g_return_val_if_fail (device != NULL, NULL);
4597
4835
return (const char *) g_object_get_data (G_OBJECT (device), ORIGDEV_TAG);
4637
4885
- /* Ignore multiple ports for serial devices */
4638
4886
- if (general_type == NM_TYPE_SERIAL_DEVICE) {
4639
- GSList *devices, *iter;
4641
- devices = nm_manager_get_devices_by_originating_device (self, originating_device);
4642
- for (iter = devices; iter; iter = g_slist_next (iter)) {
4643
- NMDevice *candidate = NM_DEVICE (iter->data);
4645
- if (candidate && NM_IS_SERIAL_DEVICE (candidate)) {
4646
- g_slist_free (devices);
4650
- g_slist_free (devices);
4887
- if (nm_manager_get_device_by_originating_device (self, originating_device))
4653
4891
- device = creator_fn (hal_mgr, udi, originating_device, nm_manager_udi_is_managed (self, udi));
4677
4915
/* Set initial rfkill state */
4678
4916
nm_device_wifi_set_enabled (NM_DEVICE_WIFI (device), priv->wireless_enabled);
4679
@@ -1751,20 +1745,44 @@ hal_manager_udi_added_cb (NMHalManager *hal_mgr,
4919
iface = nm_device_get_iface (NM_DEVICE (device));
4920
driver = nm_device_get_driver (NM_DEVICE (device));
4924
if (general_type == NM_TYPE_DEVICE_ETHERNET)
4680
4925
nm_info ("(%s): new Ethernet device (driver: '%s')", iface, driver);
4681
4926
else if (general_type == NM_TYPE_DEVICE_WIFI)
4682
4927
nm_info ("(%s): new 802.11 WiFi device (driver: '%s')", iface, driver);
4726
4971
hal_manager_udi_removed_cb (NMHalManager *manager,
4727
4972
const char *udi,
4728
4973
gpointer user_data)
4729
@@ -1785,6 +1803,8 @@ hal_manager_udi_removed_cb (NMHalManager *manager,
4975
NMManager *self = NM_MANAGER (user_data);
4976
NMManagerPrivate *priv = NM_MANAGER_GET_PRIVATE (self);
4977
GSList *keep = NULL, *gone = NULL, *iter;
4979
@@ -1770,16 +1798,18 @@
4980
* emit the remove event for the same device (fdo #20703). But it's a
4981
* good bet that if an NMDevice's originating device got removed, then
4982
* the NMDevice itself got removed as well.
4984
for (iter = priv->devices; iter; iter = iter->next) {
4730
4985
NMDevice *device = NM_DEVICE (iter->data);
4731
4986
const char *origdev = nm_manager_get_originating_device (device);
4735
4990
if ( !strcmp (nm_device_get_udi (device), udi)
4736
4991
|| (origdev && !strcmp (udi, origdev)))
4737
4992
gone = g_slist_prepend (gone, device);
4738
diff --git a/src/nm-serial-device.c b/src/nm-serial-device.c
4739
deleted file mode 100644
4740
index 1cba1ca..0000000
4741
--- a/src/nm-serial-device.c
4994
keep = g_slist_append (keep, device);
4996
g_slist_free (priv->devices);
4997
priv->devices = keep;
4998
Index: network-manager-0.7.1~rc4.1.cf199a964/src/nm-serial-device.c
4999
===================================================================
5000
--- network-manager-0.7.1~rc4.1.cf199a964.orig/src/nm-serial-device.c
4743
5002
@@ -1,1180 +0,0 @@
4744
5003
-/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */