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-client.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-client.h')
-rw-r--r-- | libnm/nm-client.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/libnm/nm-client.h b/libnm/nm-client.h index 99de7e003a..64bd0a0d32 100644 --- a/libnm/nm-client.h +++ b/libnm/nm-client.h @@ -26,15 +26,7 @@ #error "Only <NetworkManager.h> can be included directly." #endif -#include <glib.h> -#include <glib-object.h> -#include <gio/gio.h> - -#include <nm-dbus-interface.h> -#include "nm-device.h" -#include "nm-active-connection.h" -#include "nm-remote-connection.h" -#include "nm-vpn-connection.h" +#include <nm-types.h> G_BEGIN_DECLS @@ -159,9 +151,9 @@ typedef enum { #define NM_CLIENT_ERROR nm_client_error_quark () GQuark nm_client_error_quark (void); -typedef struct { +struct _NMClient { GObject parent; -} NMClient; +}; typedef struct { GObjectClass parent; |