NetworkManager/gnome/applet/nm-device.h
Dan Williams 567b5e3d31 2005-05-03 Dan Williams <dcbw@redhat.com>
* Kill dhcpcd.  We now use "dhcdbd", a dbus daemon that controls dhclient.
	  This means that NetworkManager shouldn't have DHCP issues anymore.  It also
	  means you need dhcdbd, which you can get here (get the latest one):

		http://people.redhat.com/jvdias/dhcdbd/

	  Technically NetworkManager can use any DHCP daemon that uses the same DBUS
	  interface as dhcdbd.

	* Rewrite device activation to facilitate the new DHCP infrastructure and
	  future improvements.  Its now "activation request" based, ie there is a single
	  activation request composed of the device, access point, and other info which
	  follows the entire activation process.  There are 5 stages of the activation
	  process which correspond to:

		1) Device preparation
		2) Device configuration (bring it up, set ESSID/Key/etc)
		3) IP Config Start (fire off DHCP if we're using it)
		4) IP Config Get (grab config from DHCP or static config files)
		5) IP Config Commit (set device's IP address, DNS, etc)

	  Note that there is no longer a "scanning" step, since the access point must
	  be known _before_ activation starts.  If the access point drops out or does
	  not exist for some reason, the entire activation process fails and must be
	  restarted for a different access point or device.

	Patch from Bill Moss:
	* gnome/applet/applet.c
		- Fix type of vpn_failure dialog -> vpn_banner dialog


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@597 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2005-05-03 20:41:36 +00:00

82 lines
3.5 KiB
C

/* -*- Mode: C; tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */
/* 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-2005 Red Hat, Inc.
*/
#ifndef NM_DEVICE_H
#define NM_DEVICE_H
#include "NetworkManager.h"
#include "wireless-network.h"
typedef struct NetworkDevice NetworkDevice;
typedef void (*WirelessNetworkForeach) (NetworkDevice *dev, WirelessNetwork *net, gpointer user_data);
NetworkDevice * network_device_new (const char *iface, NMDeviceType type, const char *nm_path);
NetworkDevice * network_device_copy (NetworkDevice *src);
void network_device_ref (NetworkDevice *dev);
void network_device_unref (NetworkDevice *dev);
NMDeviceType network_device_get_type (NetworkDevice *dev);
WirelessNetwork * network_device_get_wireless_network_by_essid (NetworkDevice *dev, const char *essid);
WirelessNetwork * network_device_get_wireless_network_by_nm_path(NetworkDevice *dev, const char *essid);
WirelessNetwork * network_device_get_active_wireless_network (NetworkDevice *dev);
void network_device_foreach_wireless_network (NetworkDevice *dev, WirelessNetworkForeach func, gpointer user_data);
void network_device_add_wireless_network (NetworkDevice *dev, WirelessNetwork *net);
void network_device_remove_wireless_network (NetworkDevice *dev, WirelessNetwork *net);
void network_device_clear_wireless_networks (NetworkDevice *dev);
guint network_device_get_num_wireless_networks (NetworkDevice *dev);
const char * network_device_get_address (NetworkDevice *dev);
void network_device_set_address (NetworkDevice *dev, const char *addr);
NMDriverSupportLevel network_device_get_driver_support_level (NetworkDevice *dev);
void network_device_set_driver_support_level (NetworkDevice *dev, NMDriverSupportLevel level);
const char * network_device_get_iface (NetworkDevice *dev);
const char * network_device_get_nm_path (NetworkDevice *dev);
gint network_device_get_strength (NetworkDevice *dev);
void network_device_set_strength (NetworkDevice *dev, gint strength);
const char * network_device_get_iface (NetworkDevice *dev);
const char * network_device_get_hal_udi (NetworkDevice *dev);
void network_device_set_hal_udi (NetworkDevice *dev, const char *hal_udi);
gboolean network_device_get_link (NetworkDevice *dev);
void network_device_set_link (NetworkDevice *dev, gboolean link);
gboolean network_device_get_active (NetworkDevice *dev);
void network_device_set_active (NetworkDevice *dev, gboolean active);
const char * network_device_get_desc (NetworkDevice *dev);
void network_device_set_desc (NetworkDevice *dev, const char *desc);
#endif