summaryrefslogtreecommitdiff
path: root/src/NetworkManager.c
diff options
context:
space:
mode:
authorTambet Ingo <tambet@ximian.com>2007-02-09 08:50:35 +0000
committerTambet Ingo <tambet@gmail.com>2007-02-09 08:50:35 +0000
commita8191ddaa3308b004ca2a403f8c6b57e9717dd40 (patch)
tree902ebcb4db2c710b77e2a5aafd12f1c43478ec9c /src/NetworkManager.c
parentda934f960568b2efb16a0815cdb88c2346a0d9d6 (diff)
downloadNetworkManager-a8191ddaa3308b004ca2a403f8c6b57e9717dd40.tar.gz
2007-02-09 Tambet Ingo <tambet@ximian.com>
* src/nm-device-802-11-wireless.c: - Add "network-added" and "network-removed" signals. - Use gobject boilerplate macros to define the GObject. - Implement wireless device activation. - Remove activation_failure_handler and activation_success_handler and instead listen on state-changed signals and run the same code from there. * src/nm-device.c: - Implment NMDeviceInterface::deactivate. - Remove activation_failure_handler and activation_success_handler virtual methods. Each device which is interested in these events can just listen on it's state changed signals. * src/NetworkManagerPolicy.c: - Move a bit more NMData usage to NMManager. - Remove activation scheduling bits. - Add listeners for wireless device's "network-added" and "network-removed" signals. - Listen device changed signals and deactivate currently activated device when another device start activating (for now). - Remove (nm_policy_schedule_device_change_check): There's never a need for calling this, the policy code knows exactly when this should happen, by listening on events from NMManager and NMDevices. * src/nm-device-802-3-ethernet.c (nm_device_802_3_ethernet_activate): Implement. * src/nm-dbus-nm.c (nm_dbus_nm_set_active_device): Call the activation method on the specific device instead of going to through policy code and determining the device type by passed in AP's existance. * src/nm-device-interface.c (nm_device_interface_deactivate): Implement the abstract NMDevice deactivation. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2298 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Diffstat (limited to 'src/NetworkManager.c')
-rw-r--r--src/NetworkManager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/NetworkManager.c b/src/NetworkManager.c
index 354e3d2d78..750520ebe1 100644
--- a/src/NetworkManager.c
+++ b/src/NetworkManager.c
@@ -40,6 +40,7 @@
#include "NetworkManager.h"
#include "nm-utils.h"
#include "NetworkManagerUtils.h"
+#include "nm-device-interface.h"
#include "nm-manager.h"
#include "nm-hal-manager.h"
#include "nm-device.h"
@@ -479,7 +480,6 @@ main (int argc, char *argv[])
nm_data->dialup_list = nm_system_get_dialup_config ();
/* Run the main loop */
- nm_policy_schedule_device_change_check (nm_data);
nm_schedule_state_change_signal_broadcast (nm_data);
exit_status = EXIT_SUCCESS;
g_main_loop_run (nm_data->main_loop);