diff options
author | Dan Winship <danw@redhat.com> | 2015-04-06 16:42:31 -0400 |
---|---|---|
committer | Dan Winship <danw@redhat.com> | 2015-07-24 13:25:47 -0400 |
commit | 3452ee2a0e3d04a324e7b9cd153323a353d5c182 (patch) | |
tree | f87c48e6b2d2777ee893f9d6aeabd95ee97bd8ca /src/nm-dhcp6-config.c | |
parent | dd0e19895532504e6de615d18a761457ec685b58 (diff) |
all: rename nm-glib-compat.h to nm-glib.h, use everywhere
Rather than randomly including one or more of <glib.h>,
<glib-object.h>, and <gio/gio.h> everywhere (and forgetting to include
"nm-glib-compat.h" most of the time), rename nm-glib-compat.h to
nm-glib.h, include <gio/gio.h> from there, and then change all .c
files in NM to include "nm-glib.h" rather than including the glib
headers directly.
(Public headers files still have to include the real glib headers,
since nm-glib.h isn't installed...)
Also, remove glib includes from header files that are already
including a base object header file (which must itself already include
the glib headers).
Diffstat (limited to 'src/nm-dhcp6-config.c')
-rw-r--r-- | src/nm-dhcp6-config.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nm-dhcp6-config.c b/src/nm-dhcp6-config.c index f93e9644c..f96807cab 100644 --- a/src/nm-dhcp6-config.c +++ b/src/nm-dhcp6-config.c @@ -20,9 +20,9 @@ #include "config.h" -#include <glib.h> #include <string.h> +#include "nm-glib.h" #include "nm-dbus-interface.h" #include "nm-dbus-manager.h" #include "nm-dhcp6-config.h" @@ -30,7 +30,6 @@ #include "nm-dbus-glib-types.h" #include "nm-utils.h" - G_DEFINE_TYPE (NMDhcp6Config, nm_dhcp6_config, G_TYPE_OBJECT) #define NM_DHCP6_CONFIG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), NM_TYPE_DHCP6_CONFIG, NMDhcp6ConfigPrivate)) |