1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2 of the License, or (at your option) any later version.
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, write to the
15 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 * Boston, MA 02110-1301 USA.
18 * Copyright 2007 - 2008 Novell, Inc.
19 * Copyright 2007 - 2011 Red Hat, Inc.
22 #ifndef NM_ACCESS_POINT_H
23 #define NM_ACCESS_POINT_H
26 #include <glib-object.h>
27 #include <NetworkManager.h>
28 #include <nm-connection.h>
29 #include "nm-object.h"
33 #define NM_TYPE_ACCESS_POINT (nm_access_point_get_type ())
34 #define NM_ACCESS_POINT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_ACCESS_POINT, NMAccessPoint))
35 #define NM_ACCESS_POINT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_ACCESS_POINT, NMAccessPointClass))
36 #define NM_IS_ACCESS_POINT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_ACCESS_POINT))
37 #define NM_IS_ACCESS_POINT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_ACCESS_POINT))
38 #define NM_ACCESS_POINT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_ACCESS_POINT, NMAccessPointClass))
40 #define NM_ACCESS_POINT_FLAGS "flags"
41 #define NM_ACCESS_POINT_WPA_FLAGS "wpa-flags"
42 #define NM_ACCESS_POINT_RSN_FLAGS "rsn-flags"
43 #define NM_ACCESS_POINT_SSID "ssid"
44 #define NM_ACCESS_POINT_BSSID "bssid"
45 #define NM_ACCESS_POINT_FREQUENCY "frequency"
46 #define NM_ACCESS_POINT_MODE "mode"
47 #define NM_ACCESS_POINT_MAX_BITRATE "max-bitrate"
48 #define NM_ACCESS_POINT_STRENGTH "strength"
49 #define NM_ACCESS_POINT_LAST_SEEN "last-seen"
52 #define NM_ACCESS_POINT_HW_ADDRESS "hw-address"
62 /* Padding for future expansion */
63 void (*_reserved1) (void);
64 void (*_reserved2) (void);
65 void (*_reserved3) (void);
66 void (*_reserved4) (void);
67 void (*_reserved5) (void);
68 void (*_reserved6) (void);
71 GType nm_access_point_get_type (void);
73 GObject *nm_access_point_new (DBusGConnection *connection, const char *path);
75 NM80211ApFlags nm_access_point_get_flags (NMAccessPoint *ap);
76 NM80211ApSecurityFlags nm_access_point_get_wpa_flags (NMAccessPoint *ap);
77 NM80211ApSecurityFlags nm_access_point_get_rsn_flags (NMAccessPoint *ap);
78 const GByteArray * nm_access_point_get_ssid (NMAccessPoint *ap);
79 const char * nm_access_point_get_bssid (NMAccessPoint *ap);
80 guint32 nm_access_point_get_frequency (NMAccessPoint *ap);
81 NM80211Mode nm_access_point_get_mode (NMAccessPoint *ap);
82 guint32 nm_access_point_get_max_bitrate (NMAccessPoint *ap);
83 guint8 nm_access_point_get_strength (NMAccessPoint *ap);
85 gint nm_access_point_get_last_seen (NMAccessPoint *ap);
87 GSList * nm_access_point_filter_connections (NMAccessPoint *ap,
88 const GSList *connections);
90 gboolean nm_access_point_connection_valid (NMAccessPoint *ap,
91 NMConnection *connection);
94 NM_DEPRECATED_IN_0_9_10
95 const char * nm_access_point_get_hw_address (NMAccessPoint *ap);
99 #endif /* NM_ACCESS_POINT_H */