mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 23:00:07 +01:00
[Based on patch by Helmut Schaa <hschaa@suse.de>]
* libnm-glib/nm-client.h:
* libnm-glib/nm-object.h:
* libnm-glib/nm-vpn-connection.h:
* libnm-glib/nm-settings.h:
* libnm-glib/nm-device.h:
* libnm-glib/nm-ip4-config.h:
* libnm-glib/nm-access-point.h:
* libnm-glib/nm-device-802-3-ethernet.h:
* libnm-util/nm-setting.h:
* libnm-util/nm-connection.h: Add G_BEGIN_DECLS / G_END_DECLS to
* support C++.
* libnm-glib/nm-object.c (nm_object_get_byte_property):
* Implement.
* libnm-glib/nm-access-point.c: Strength has type char.
* gnome/vpn-properties/Makefile.am: Remove
* GNOME_DISABLE_DEPRECTATED for now
to fix build. GnomeDruid is deprecated in recent libgnomeui.
* introspection/nm-access-point.xml: Strength property is char,
* not int.
* src/NetworkManagerAP.c (set_property): Set strength from char.
(get_property): Handle hidden APs (with empty SSID).
Get strength value from char.
(nm_ap_class_init): Strength property has char type.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2659 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
43 lines
1.6 KiB
C
43 lines
1.6 KiB
C
#ifndef NM_ACCESS_POINT_H
|
|
#define NM_ACCESS_POINT_H
|
|
|
|
#include <glib/gtypes.h>
|
|
#include <glib-object.h>
|
|
#include "nm-object.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define NM_TYPE_ACCESS_POINT (nm_access_point_get_type ())
|
|
#define NM_ACCESS_POINT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_ACCESS_POINT, NMAccessPoint))
|
|
#define NM_ACCESS_POINT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_ACCESS_POINT, NMAccessPointClass))
|
|
#define NM_IS_ACCESS_POINT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_ACCESS_POINT))
|
|
#define NM_IS_ACCESS_POINT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NM_TYPE_ACCESS_POINT))
|
|
#define NM_ACCESS_POINT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_ACCESS_POINT, NMAccessPointClass))
|
|
|
|
typedef struct {
|
|
NMObject parent;
|
|
} NMAccessPoint;
|
|
|
|
typedef struct {
|
|
NMObjectClass parent;
|
|
|
|
/* Signals */
|
|
void (*strength_changed) (NMAccessPoint *ap, gint8 strength);
|
|
} NMAccessPointClass;
|
|
|
|
GType nm_access_point_get_type (void);
|
|
|
|
NMAccessPoint *nm_access_point_new (DBusGConnection *connection, const char *path);
|
|
|
|
guint32 nm_access_point_get_capabilities (NMAccessPoint *ap);
|
|
gboolean nm_access_point_is_encrypted (NMAccessPoint *ap);
|
|
GByteArray * nm_access_point_get_ssid (NMAccessPoint *ap);
|
|
gdouble nm_access_point_get_frequency (NMAccessPoint *ap);
|
|
char * nm_access_point_get_hw_address (NMAccessPoint *ap);
|
|
int nm_access_point_get_mode (NMAccessPoint *ap);
|
|
guint32 nm_access_point_get_rate (NMAccessPoint *ap);
|
|
gint8 nm_access_point_get_strength (NMAccessPoint *ap);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* NM_ACCESS_POINT_H */
|