summaryrefslogtreecommitdiff
path: root/libnm-glib/nm-device.h
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-04-26 11:49:57 -0400
committerDan Winship <danw@gnome.org>2013-05-07 12:46:56 -0400
commitae9a389f83db79310991d24c85d766281ee01d19 (patch)
tree4637cec27434fa5d6ba352b0821de3945edcf696 /libnm-glib/nm-device.h
parent4819df28b4006b203471969252a61ae0cfce112b (diff)
downloadNetworkManager-ae9a389f83db79310991d24c85d766281ee01d19.tar.gz
libnm-glib, cli: add nm_device_get_type_description
Add a new libnm-glib method to get the type description for a device, and use it in nmcli. For most types, the type description is based on the class name, but for NMDeviceGeneric, it comes from the :type-description property.
Diffstat (limited to 'libnm-glib/nm-device.h')
-rw-r--r--libnm-glib/nm-device.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libnm-glib/nm-device.h b/libnm-glib/nm-device.h
index 0f0e277629..ed274caa11 100644
--- a/libnm-glib/nm-device.h
+++ b/libnm-glib/nm-device.h
@@ -98,13 +98,14 @@ typedef struct {
NMConnection *connection,
GError **error);
+ const char * (*get_type_description) (NMDevice *device);
+
/* Padding for future expansion */
void (*_reserved1) (void);
void (*_reserved2) (void);
void (*_reserved3) (void);
void (*_reserved4) (void);
void (*_reserved5) (void);
- void (*_reserved6) (void);
} NMDeviceClass;
GType nm_device_get_type (void);
@@ -118,6 +119,7 @@ const char * nm_device_get_udi (NMDevice *device);
const char * nm_device_get_driver (NMDevice *device);
const char * nm_device_get_driver_version (NMDevice *device);
const char * nm_device_get_firmware_version (NMDevice *device);
+const char * nm_device_get_type_description (NMDevice *device);
NMDeviceCapabilities nm_device_get_capabilities (NMDevice *device);
gboolean nm_device_get_managed (NMDevice *device);
gboolean nm_device_get_autoconnect (NMDevice *device);