summaryrefslogtreecommitdiff
path: root/libnm/nm-object.h
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2014-10-09 09:12:42 -0400
committerDan Winship <danw@gnome.org>2014-10-10 13:10:18 -0400
commit8c3d6f734b3d53bf55cfb6b5d26ca8b3d748fd1c (patch)
tree070535639f71170a5df6cf576dcd7c53b2bb6eda /libnm/nm-object.h
parentdccaffe143410c9f5379f1d92e2a95d4de2072c0 (diff)
downloadNetworkManager-8c3d6f734b3d53bf55cfb6b5d26ca8b3d748fd1c.tar.gz
libnm: add nm-types.h, to avoid include loops
Add nm-types.h defining all the type structs, to avoid future include loops. Clean up the includes in all of the installed headers.
Diffstat (limited to 'libnm/nm-object.h')
-rw-r--r--libnm/nm-object.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/libnm/nm-object.h b/libnm/nm-object.h
index 69232364f4..829c539229 100644
--- a/libnm/nm-object.h
+++ b/libnm/nm-object.h
@@ -26,9 +26,7 @@
#error "Only <NetworkManager.h> can be included directly."
#endif
-#include <gio/gio.h>
-
-#include <nm-version.h>
+#include <nm-types.h>
G_BEGIN_DECLS
@@ -58,9 +56,9 @@ GQuark nm_object_error_quark (void);
#define NM_OBJECT_PATH "path"
#define NM_OBJECT_DBUS_CONNECTION "dbus-connection"
-typedef struct {
+struct _NMObject {
GObject parent;
-} NMObject;
+};
typedef struct {
GObjectClass parent;