2005-01-12 Dan Williams <dcbw@redhat.com>
* libnm_glib/ - Client library for applications using glib * configure.in various Makefiles - Split NM_CFLAGS and NM_LIBS into separate variables like DBUS_*, HAL_* and GLIB_* * src/NetworkManager.c src/NetworkManagerMain.h - (nm_schedule_status_signal_broadcast): at the earliest convenience, broadcast a status changed signal over DBUS from the main thread. Still unused anywhere for the moment. Patch from j@bootlab.org * panel_applet/NMWirelessAppletDbus.c src/NetworkManagerDbus.c - Correct INT32->UINT32 mistmatch between NM and the panel applet for the "getMode" method call git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@368 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -394,6 +394,39 @@ static void nm_add_initial_devices (NMData *data)
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* nm_status_signal_broadcast
|
||||
*
|
||||
*/
|
||||
static gboolean nm_status_signal_broadcast (gpointer user_data)
|
||||
{
|
||||
NMData *data = (NMData *)user_data;
|
||||
|
||||
g_return_val_if_fail (data != NULL, FALSE);
|
||||
|
||||
nm_dbus_signal_network_status_change (data->dbus_connection, data);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* nm_schedule_status_signal_broadcast
|
||||
*
|
||||
*/
|
||||
void nm_schedule_status_signal_broadcast (NMData *data)
|
||||
{
|
||||
guint id = 0;
|
||||
GSource *source;
|
||||
|
||||
g_return_if_fail (data != NULL);
|
||||
|
||||
source = g_idle_source_new ();
|
||||
g_source_set_callback (source, nm_status_signal_broadcast, data, NULL);
|
||||
id = g_source_attach (source, data->main_context);
|
||||
g_source_unref (source);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* nm_link_state_monitor
|
||||
*
|
||||
|
Reference in New Issue
Block a user