summaryrefslogtreecommitdiff
path: root/libnm-glib/nm-device-olpc-mesh.h
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2012-03-14 14:10:03 +0100
committerJiří Klimeš <jklimes@redhat.com>2012-03-16 09:54:36 +0100
commita11067f5846e3effe2f653b8babdfbabf7d2254d (patch)
tree0de8df6221fad934fb9539976af5af9b29131b5b /libnm-glib/nm-device-olpc-mesh.h
parent43ba4eb04bc1d651f79a138a8ecdc7491d2bece1 (diff)
downloadNetworkManager-a11067f5846e3effe2f653b8babdfbabf7d2254d.tar.gz
libnm-glib: add errors to device classes and nm_device_connection_compatible()
Add nm_device_connection_compatible() that returns an error when it fails. nm_device_connection_valid() does the same work except it doesn't set GError.
Diffstat (limited to 'libnm-glib/nm-device-olpc-mesh.h')
-rw-r--r--libnm-glib/nm-device-olpc-mesh.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/libnm-glib/nm-device-olpc-mesh.h b/libnm-glib/nm-device-olpc-mesh.h
index 0b04b76f1c..7945d0c78d 100644
--- a/libnm-glib/nm-device-olpc-mesh.h
+++ b/libnm-glib/nm-device-olpc-mesh.h
@@ -36,6 +36,21 @@ G_BEGIN_DECLS
#define NM_IS_DEVICE_OLPC_MESH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NM_TYPE_DEVICE_OLPC_MESH))
#define NM_DEVICE_OLPC_MESH_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_DEVICE_OLPC_MESH, NMDeviceOlpcMeshClass))
+/**
+ * NMDeviceOlpcMeshError:
+ * @NM_DEVICE_OLPC_MESH_ERROR_UNKNOWN: unknown or unclassified error
+ * @NM_DEVICE_OLPC_MESH_ERROR_NOT_OLPC_MESH_CONNECTION: the connection was not of Olpc Mesh type
+ * @NM_DEVICE_OLPC_MESH_ERROR_INVALID_OLPC_MESH_CONNECTION: the Olpc Mesh connection was invalid
+ */
+typedef enum {
+ NM_DEVICE_OLPC_MESH_ERROR_UNKNOWN = 0, /*< nick=UnknownError >*/
+ NM_DEVICE_OLPC_MESH_ERROR_NOT_OLPC_MESH_CONNECTION, /*< nick=NotOlpcMeshConnection >*/
+ NM_DEVICE_OLPC_MESH_ERROR_INVALID_OLPC_MESH_CONNECTION, /*< nick=InvalidOlpcMeshConnection >*/
+} NMDeviceOlpcMeshError;
+
+#define NM_DEVICE_OLPC_MESH_ERROR nm_device_olpc_mesh_error_quark ()
+GQuark nm_device_olpc_mesh_error_quark (void);
+
#define NM_DEVICE_OLPC_MESH_HW_ADDRESS "hw-address"
#define NM_DEVICE_OLPC_MESH_COMPANION "companion"
#define NM_DEVICE_OLPC_MESH_ACTIVE_CHANNEL "active-channel"