
Massive fixup of libnm-glib to: a) have all objects (with the exception of VPN) cache their properties and update them asynchronously on PropertiesChanged signals from NM b) return internal const data for most attributes/properties instead of allocated values that the caller must free c) cache wrapped objects such that a given D-Bus path will always map to the same GObject returned by libnm-glib d) remove a few signals and move them to GObject property notifications e) match recent NM D-Bus API changes for activation/deactivation f) remove some private functions from libnm-glib headers git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3491 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
38 lines
1.6 KiB
C
38 lines
1.6 KiB
C
#ifndef NM_DEVICE_802_3_ETHERNET_H
|
|
#define NM_DEVICE_802_3_ETHERNET_H
|
|
|
|
#include "nm-device.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define NM_TYPE_DEVICE_802_3_ETHERNET (nm_device_802_3_ethernet_get_type ())
|
|
#define NM_DEVICE_802_3_ETHERNET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_DEVICE_802_3_ETHERNET, NMDevice8023Ethernet))
|
|
#define NM_DEVICE_802_3_ETHERNET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_DEVICE_802_3_ETHERNET, NMDevice8023EthernetClass))
|
|
#define NM_IS_DEVICE_802_3_ETHERNET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_DEVICE_802_3_ETHERNET))
|
|
#define NM_IS_DEVICE_802_3_ETHERNET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NM_TYPE_DEVICE_802_3_ETHERNET))
|
|
#define NM_DEVICE_802_3_ETHERNET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_DEVICE_802_3_ETHERNET, NMDevice8023EthernetClass))
|
|
|
|
#define NM_DEVICE_802_3_ETHERNET_HW_ADDRESS "hw-address"
|
|
#define NM_DEVICE_802_3_ETHERNET_SPEED "speed"
|
|
#define NM_DEVICE_802_3_ETHERNET_CARRIER "carrier"
|
|
|
|
typedef struct {
|
|
NMDevice parent;
|
|
} NMDevice8023Ethernet;
|
|
|
|
typedef struct {
|
|
NMDeviceClass parent;
|
|
} NMDevice8023EthernetClass;
|
|
|
|
GType nm_device_802_3_ethernet_get_type (void);
|
|
|
|
GObject *nm_device_802_3_ethernet_new (DBusGConnection *connection, const char *path);
|
|
|
|
const char * nm_device_802_3_ethernet_get_hw_address (NMDevice8023Ethernet *device);
|
|
guint32 nm_device_802_3_ethernet_get_speed (NMDevice8023Ethernet *device);
|
|
gboolean nm_device_802_3_ethernet_get_carrier (NMDevice8023Ethernet *device);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* NM_DEVICE_802_3_ETHERNET_H */
|