mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 20:20:17 +01:00
Functionality to differentiate Ad-Hoc networks from infrastructure networks in the applet, by displaying a special icon: * gnome/applet/applet-dbus-devices.c: Set the mode for new networks. * gnome/applet/applet.c: Pass 'applet' to network_menu_item_update(). * gnome/applet/menu-items.c: Set a special icon in the scan list for ad-hoc networks. TODO: Add a third icon representing "encrypted and Ad-Hoc". Right now, we display the same icon for all Ad-Hoc wireless networks, encrypted or not. * gnome/applet/wireless-network.c, gnome/applet/wireless-network.h: New accessor functions to get and set the mode of a given network, wireless_network_get_mode() and wireless_network_set_mode(). git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1741 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
50 lines
2 KiB
C
50 lines
2 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 WIRELESS_NETWORK_H
|
|
#define WIRELESS_NETWORK_H
|
|
|
|
typedef struct WirelessNetwork WirelessNetwork;
|
|
|
|
WirelessNetwork * wireless_network_new (const char *essid, const char *nm_path);
|
|
WirelessNetwork * wireless_network_copy (WirelessNetwork *src);
|
|
|
|
void wireless_network_ref (WirelessNetwork *net);
|
|
void wireless_network_unref (WirelessNetwork *net);
|
|
|
|
gboolean wireless_network_get_active (WirelessNetwork *net);
|
|
void wireless_network_set_active (WirelessNetwork *net, gboolean active);
|
|
|
|
const char * wireless_network_get_essid (WirelessNetwork *net);
|
|
|
|
const char * wireless_network_get_nm_path (WirelessNetwork *net);
|
|
|
|
int wireless_network_get_capabilities (WirelessNetwork *net);
|
|
void wireless_network_set_capabilities (WirelessNetwork *net, int capabilities);
|
|
|
|
int wireless_network_get_mode (WirelessNetwork *net);
|
|
void wireless_network_set_mode (WirelessNetwork *net, int mode);
|
|
|
|
gint8 wireless_network_get_strength (WirelessNetwork *net);
|
|
void wireless_network_set_strength (WirelessNetwork *net, gint8 strength);
|
|
|
|
#endif
|