mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 23:00:07 +01:00
* panel-applet/NMWirelessApplet.c panel-applet/NMWirelessAppletDbus.c - Start using NetworkDevice/WirelessNetwork structures in more places - Update for unified device/network forcing in NetworkManager * src/NetworkManager.c - some code consolidation * src/NetworkManagerDbus.c - (nm_dbus_nm_set_active_device): "setActiveDevice" now takes either one or two arguments: the first is the NM ID of the device to switch to, and the second (optional) argument is the ESSID of a wireless network to use as well. - Get rid of "setNetwork" method due to above change * src/NetworkManagerDevice.c - (nm_device_new): perform scan and update best AP on device creation - nm_device_activation_cancel_if_needed()->nm_device_activation_should_cancel() - nm_device_activation_signal_cancel()->nm_device_activation_cancel(), and spin waiting for cancellation to finish before returning * src/NetworkManagerPolicy.c - Changes here clarify the situations in which a device switch occurs, and make sure to keep using a forced device and network if the user gives us one - Remove old unused code git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@149 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
50 lines
1.5 KiB
C
50 lines
1.5 KiB
C
/* NetworkManager Wireless Applet -- Display wireless access points and allow user control
|
|
*
|
|
* Dan Williams <dcbw@redhat.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*
|
|
* (C) Copyright 2004 Red Hat, Inc.
|
|
*/
|
|
|
|
#ifndef NM_WIRELESS_APPLET_DBUS_H
|
|
#define NM_WIRELESS_APPLET_DBUS_H
|
|
|
|
#include <dbus/dbus.h>
|
|
#include <dbus/dbus-glib.h>
|
|
#include "NMWirelessApplet.h"
|
|
|
|
/* Return codes for functions that use dbus */
|
|
enum
|
|
{
|
|
RETURN_SUCCESS = 1,
|
|
RETURN_FAILURE = 0,
|
|
RETURN_NO_NM = -1
|
|
};
|
|
|
|
/* Must match NetworkManager device types */
|
|
enum
|
|
{
|
|
DEVICE_TYPE_DONT_KNOW = 0,
|
|
DEVICE_TYPE_WIRED_ETHERNET,
|
|
DEVICE_TYPE_WIRELESS_ETHERNET
|
|
};
|
|
|
|
gpointer nmwa_dbus_worker (gpointer user_data);
|
|
|
|
void nmwa_dbus_set_device (DBusConnection *connection, const NetworkDevice *dev,
|
|
const WirelessNetwork *network);
|
|
|
|
#endif
|