summaryrefslogtreecommitdiff
path: root/src/config/tests/nm-test-device.h
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2014-07-17 16:24:17 -0400
committerDan Winship <danw@gnome.org>2014-07-23 10:56:26 -0400
commit7da97fc6fece2b462d420e01bc3ab1c9ea6b351e (patch)
treef63ed573ecc79f1b0073573f9f1408ef659e2a36 /src/config/tests/nm-test-device.h
parent2b2faf9c28a0a3442942681ecf4ad9b31b7a49ae (diff)
downloadNetworkManager-7da97fc6fece2b462d420e01bc3ab1c9ea6b351e.tar.gz
config: drop NMConfigDevice, use NMDevice directly
NMConfigDevice was added because in the 0.9.8 days, when each subdir of src/ was compiled separately, it was impossible to make src/config/ depend on src/devices/ because of circular dependencies. Since now everything gets compiled into a single libNetworkManager.la, this is no longer a problem, and so NMConfigDevice is just an unnecessary complication.
Diffstat (limited to 'src/config/tests/nm-test-device.h')
-rw-r--r--src/config/tests/nm-test-device.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/config/tests/nm-test-device.h b/src/config/tests/nm-test-device.h
index ad63bf5fd2..5c4f28b51e 100644
--- a/src/config/tests/nm-test-device.h
+++ b/src/config/tests/nm-test-device.h
@@ -21,7 +21,7 @@
#ifndef NM_TEST_DEVICE_H
#define NM_TEST_DEVICE_H
-#include <glib-object.h>
+#include <nm-device.h>
G_BEGIN_DECLS
@@ -33,19 +33,17 @@ G_BEGIN_DECLS
#define NM_TEST_DEVICE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_TEST_DEVICE, NMTestDeviceClass))
typedef struct {
- GObject parent;
+ NMDevice parent;
- char *hwaddr;
- guint8 *hwaddr_bytes;
} NMTestDevice;
typedef struct {
- GObjectClass parent;
+ NMDeviceClass parent;
} NMTestDeviceClass;
GType nm_test_device_get_type (void);
-NMTestDevice *nm_test_device_new (const char *hwaddr);
+NMDevice *nm_test_device_new (const char *hwaddr);
G_END_DECLS