mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-23 11:14:29 +00:00
![Tambet Ingo](/assets/img/avatar_default.png)
[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
44 lines
1.6 KiB
C
44 lines
1.6 KiB
C
#ifndef NM_IP4_CONFIG_H
|
|
#define NM_IP4_CONFIG_H
|
|
|
|
#include <glib/gtypes.h>
|
|
#include <glib-object.h>
|
|
#include <dbus/dbus-glib.h>
|
|
#include "nm-object.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define NM_TYPE_IP4_CONFIG (nm_ip4_config_get_type ())
|
|
#define NM_IP4_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_IP4_CONFIG, NMIP4Config))
|
|
#define NM_IP4_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_IP4_CONFIG, NMIP4ConfigClass))
|
|
#define NM_IS_IP4_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_IP4_CONFIG))
|
|
#define NM_IS_IP4_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NM_TYPE_IP4_CONFIG))
|
|
#define NM_IP4_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_IP4_CONFIG, NMIP4ConfigClass))
|
|
|
|
typedef struct {
|
|
NMObject parent;
|
|
} NMIP4Config;
|
|
|
|
typedef struct {
|
|
NMObjectClass parent;
|
|
} NMIP4ConfigClass;
|
|
|
|
GType nm_ip4_config_get_type (void);
|
|
|
|
NMIP4Config *nm_ip4_config_new (DBusGConnection *connection,
|
|
const char *object_path);
|
|
|
|
guint32 nm_ip4_config_get_address (NMIP4Config *config);
|
|
guint32 nm_ip4_config_get_gateway (NMIP4Config *config);
|
|
guint32 nm_ip4_config_get_netmask (NMIP4Config *config);
|
|
guint32 nm_ip4_config_get_broadcast (NMIP4Config *config);
|
|
char *nm_ip4_config_get_hostname (NMIP4Config *config);
|
|
GArray *nm_ip4_config_get_nameservers (NMIP4Config *config);
|
|
char **nm_ip4_config_get_domains (NMIP4Config *config);
|
|
char *nm_ip4_config_get_nis_domain (NMIP4Config *config);
|
|
GArray *nm_ip4_config_get_nis_servers (NMIP4Config *config);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* NM_IP4_CONFIG_H */
|