2007-09-02 Dan Williams <dcbw@redhat.com>
* include/NetworkManager.h libnm-glib/nm-settings.c - defines for the user settings daemon D-Bus bits * src/NetworkManager.c - Remove stuff that referred to the old NetworkManagerInfo service * src/vpn-manager/nm-dbus-vpn.h - Move old NMI defines to the only place they are used still * libnm-util/nm-connection.c libnm-util/nm-connection.h src/nm-activation-request.c - Make NMConnection a GObject subclass so we can do spiffy stuff with it * src/nm-manager.c src/nm-manager.h - Get connections and their settings from the user settings daemon at the appropriate times git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2763 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -104,24 +104,6 @@ nm_monitor_setup (void)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static void
|
||||
nm_name_owner_changed_handler (NMDBusManager *mgr,
|
||||
const char *name,
|
||||
const char *old,
|
||||
const char *new,
|
||||
gpointer user_data)
|
||||
{
|
||||
gboolean old_owner_good = (old && (strlen (old) > 0));
|
||||
gboolean new_owner_good = (new && (strlen (new) > 0));
|
||||
|
||||
if (strcmp (name, NMI_DBUS_SERVICE) == 0) {
|
||||
if (!old_owner_good && new_owner_good) {
|
||||
/* NMI appeared, update stuff */
|
||||
// FIXME: grab NMConnections from the info-daemon
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
nm_signal_handler (int signo)
|
||||
{
|
||||
@@ -343,11 +325,6 @@ main (int argc, char *argv[])
|
||||
goto done;
|
||||
}
|
||||
|
||||
g_signal_connect (dbus_mgr,
|
||||
"name-owner-changed",
|
||||
G_CALLBACK (nm_name_owner_changed_handler),
|
||||
NULL);
|
||||
|
||||
manager = nm_manager_new ();
|
||||
if (manager == NULL) {
|
||||
nm_error ("Failed to initialize the network manager.");
|
||||
@@ -389,13 +366,6 @@ main (int argc, char *argv[])
|
||||
if (!hal_manager)
|
||||
goto done;
|
||||
|
||||
/* If NMI is running, grab allowed wireless network lists from it ASAP */
|
||||
#if 0
|
||||
// FIXME: grab NMConnections instead
|
||||
if (nm_dbus_manager_name_has_owner (dbus_mgr, NMI_DBUS_SERVICE))
|
||||
nm_policy_schedule_allowed_ap_list_update (nm_data);
|
||||
#endif
|
||||
|
||||
/* Bring up the loopback interface. */
|
||||
nm_system_enable_loopback ();
|
||||
|
||||
|
Reference in New Issue
Block a user