mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-12 06:50:19 +01:00
* refactor NMDevice into a GObject-based framework with separate objects for wired and wireless. The following files are no longer used but should stick around for a bit so we don't loose code through the cracks: NetworkManagerDevice.c NetworkManagerDevice.h NetworkManagerWireless.c NetworkManagerWireless.h The intent here is to allow each device type to manage its own connection & activation life-cycle, ie to allow wireless devices to interface with wpa_supplicant, etc. There's a fair bit of encapsulation breakage right now that should gradually get pulled back into each device, along with things like periodic property updates and link probing. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1244 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
69 lines
3 KiB
C
69 lines
3 KiB
C
/* NetworkManager -- Network link manager
|
|
*
|
|
* 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 NETWORK_MANAGER_AP_LIST_H
|
|
#define NETWORK_MANAGER_AP_LIST_H
|
|
|
|
#include <glib.h>
|
|
#include "NetworkManager.h"
|
|
#include "NetworkManagerMain.h"
|
|
#include "NetworkManagerAP.h"
|
|
#include "nm-device.h"
|
|
#include "nm-device-802-11-wireless.h"
|
|
|
|
typedef struct NMAccessPointList NMAccessPointList;
|
|
typedef struct NMAPListIter NMAPListIter;
|
|
|
|
NMAccessPointList * nm_ap_list_new (NMNetworkType type);
|
|
void nm_ap_list_ref (NMAccessPointList *list);
|
|
void nm_ap_list_unref (NMAccessPointList *list);
|
|
|
|
guint nm_ap_list_size (NMAccessPointList *list);
|
|
gboolean nm_ap_list_is_empty (NMAccessPointList *list);
|
|
|
|
void nm_ap_list_append_ap (NMAccessPointList *list, NMAccessPoint *ap);
|
|
void nm_ap_list_remove_ap (NMAccessPointList *list, NMAccessPoint *ap);
|
|
void nm_ap_list_remove_ap_by_essid (NMAccessPointList *list, const char *network);
|
|
void nm_ap_list_remove_duplicate_essids (NMAccessPointList *list);
|
|
|
|
NMAccessPoint * nm_ap_list_get_ap_by_essid (NMAccessPointList *list, const char *network);
|
|
NMAccessPoint * nm_ap_list_get_ap_by_address (NMAccessPointList *list, const struct ether_addr *addr);
|
|
|
|
void nm_ap_list_copy_properties (NMAccessPointList *dest, NMAccessPointList *source);
|
|
void nm_ap_list_copy_essids_by_address (NMAccessPointList *dest, NMAccessPointList *source);
|
|
void nm_ap_list_copy_one_essid_by_address (NMAccessPoint *ap, NMAccessPointList *search_list);
|
|
|
|
void nm_ap_list_diff (NMData *data, NMDevice80211Wireless *dev, NMAccessPointList *old, NMAccessPointList *new);
|
|
gboolean nm_ap_list_merge_scanned_ap (NMAccessPointList *list, NMAccessPoint *merge_ap, gboolean *new, gboolean *strength_changed);
|
|
|
|
NMNetworkType nm_ap_list_get_type (NMAccessPointList *list);
|
|
|
|
gboolean nm_ap_list_lock (NMAccessPointList *list);
|
|
void nm_ap_list_unlock (NMAccessPointList *list);
|
|
|
|
NMAPListIter * nm_ap_list_iter_new (NMAccessPointList *list);
|
|
NMAccessPoint * nm_ap_list_iter_get_ap (NMAPListIter *iter);
|
|
NMAccessPoint * nm_ap_list_iter_next (NMAPListIter *iter);
|
|
void nm_ap_list_iter_free (NMAPListIter *iter);
|
|
|
|
void nm_ap_list_print_members (NMAccessPointList *list, const char *name);
|
|
|
|
#endif
|