diff options
author | Dan Winship <danw@gnome.org> | 2014-10-09 09:12:42 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2014-10-10 13:10:18 -0400 |
commit | 8c3d6f734b3d53bf55cfb6b5d26ca8b3d748fd1c (patch) | |
tree | 070535639f71170a5df6cf576dcd7c53b2bb6eda /libnm/nm-dhcp6-config.h | |
parent | dccaffe143410c9f5379f1d92e2a95d4de2072c0 (diff) | |
download | NetworkManager-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-dhcp6-config.h')
-rw-r--r-- | libnm/nm-dhcp6-config.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libnm/nm-dhcp6-config.h b/libnm/nm-dhcp6-config.h index f5c43017f4..53bd45eeb7 100644 --- a/libnm/nm-dhcp6-config.h +++ b/libnm/nm-dhcp6-config.h @@ -26,9 +26,7 @@ #error "Only <NetworkManager.h> can be included directly." #endif -#include <glib.h> -#include <glib-object.h> -#include "nm-object.h" +#include <nm-object.h> G_BEGIN_DECLS @@ -38,9 +36,9 @@ G_BEGIN_DECLS #define NM_IS_DHCP6_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_DHCP6_CONFIG)) #define NM_IS_DHCP6_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_DHCP6_CONFIG)) -typedef struct { +struct _NMDhcp6Config { NMObject parent; -} NMDhcp6Config; +}; typedef struct { NMObjectClass parent; |