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/devices/bluetooth | |
parent | dd0e19895532504e6de615d18a761457ec685b58 (diff) | |
download | NetworkManager-3452ee2a0e3d04a324e7b9cd153323a353d5c182.tar.gz |
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/devices/bluetooth')
-rw-r--r-- | src/devices/bluetooth/nm-bluez-device.c | 3 | ||||
-rw-r--r-- | src/devices/bluetooth/nm-bluez-device.h | 4 | ||||
-rw-r--r-- | src/devices/bluetooth/nm-bluez-manager.c | 2 | ||||
-rw-r--r-- | src/devices/bluetooth/nm-bluez-manager.h | 3 | ||||
-rw-r--r-- | src/devices/bluetooth/nm-bluez4-adapter.c | 2 | ||||
-rw-r--r-- | src/devices/bluetooth/nm-bluez4-adapter.h | 3 | ||||
-rw-r--r-- | src/devices/bluetooth/nm-bluez4-manager.h | 7 | ||||
-rw-r--r-- | src/devices/bluetooth/nm-bluez5-dun.h | 3 | ||||
-rw-r--r-- | src/devices/bluetooth/nm-bluez5-manager.c | 2 | ||||
-rw-r--r-- | src/devices/bluetooth/nm-bluez5-manager.h | 7 | ||||
-rw-r--r-- | src/devices/bluetooth/nm-bt-error.c | 2 | ||||
-rw-r--r-- | src/devices/bluetooth/nm-device-bt.c | 3 |
12 files changed, 14 insertions, 27 deletions
diff --git a/src/devices/bluetooth/nm-bluez-device.c b/src/devices/bluetooth/nm-bluez-device.c index 419339aca3..2cebefa869 100644 --- a/src/devices/bluetooth/nm-bluez-device.c +++ b/src/devices/bluetooth/nm-bluez-device.c @@ -21,11 +21,10 @@ #include "config.h" -#include <glib.h> #include <glib/gi18n.h> -#include <gio/gio.h> #include <string.h> +#include "nm-glib.h" #include "nm-core-internal.h" #include "nm-bt-error.h" diff --git a/src/devices/bluetooth/nm-bluez-device.h b/src/devices/bluetooth/nm-bluez-device.h index 92d99fa75a..5d89556082 100644 --- a/src/devices/bluetooth/nm-bluez-device.h +++ b/src/devices/bluetooth/nm-bluez-device.h @@ -21,11 +21,9 @@ #ifndef __NETWORKMANAGER_BLUEZ_DEVICE_H__ #define __NETWORKMANAGER_BLUEZ_DEVICE_H__ -#include <glib.h> -#include <glib-object.h> -#include <gio/gio.h> #include <config.h> +#include "nm-glib.h" #include "nm-connection.h" #include "nm-connection-provider.h" diff --git a/src/devices/bluetooth/nm-bluez-manager.c b/src/devices/bluetooth/nm-bluez-manager.c index 2e1c46b13c..193d9f7186 100644 --- a/src/devices/bluetooth/nm-bluez-manager.c +++ b/src/devices/bluetooth/nm-bluez-manager.c @@ -24,8 +24,8 @@ #include <string.h> #include <stdlib.h> #include <gmodule.h> -#include <gio/gio.h> +#include "nm-glib.h" #include "nm-logging.h" #include "nm-bluez-manager.h" #include "nm-device-factory.h" diff --git a/src/devices/bluetooth/nm-bluez-manager.h b/src/devices/bluetooth/nm-bluez-manager.h index 8320b2987f..97b9ac66cf 100644 --- a/src/devices/bluetooth/nm-bluez-manager.h +++ b/src/devices/bluetooth/nm-bluez-manager.h @@ -22,8 +22,7 @@ #ifndef __NETWORKMANAGER_BLUEZ_MANAGER_H__ #define __NETWORKMANAGER_BLUEZ_MANAGER_H__ -#include <glib.h> -#include <glib-object.h> +#include "nm-glib.h" G_BEGIN_DECLS diff --git a/src/devices/bluetooth/nm-bluez4-adapter.c b/src/devices/bluetooth/nm-bluez4-adapter.c index f0aa42ae85..f31c600e73 100644 --- a/src/devices/bluetooth/nm-bluez4-adapter.c +++ b/src/devices/bluetooth/nm-bluez4-adapter.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-bluez4-adapter.h" #include "nm-bluez-device.h" diff --git a/src/devices/bluetooth/nm-bluez4-adapter.h b/src/devices/bluetooth/nm-bluez4-adapter.h index a62564127a..98d19b22ef 100644 --- a/src/devices/bluetooth/nm-bluez4-adapter.h +++ b/src/devices/bluetooth/nm-bluez4-adapter.h @@ -21,9 +21,8 @@ #ifndef __NETWORKMANAGER_BLUEZ4_ADAPTER_H__ #define __NETWORKMANAGER_BLUEZ4_ADAPTER_H__ -#include <glib.h> -#include <glib-object.h> +#include "nm-glib.h" #include "nm-bluez-device.h" #include "nm-connection-provider.h" diff --git a/src/devices/bluetooth/nm-bluez4-manager.h b/src/devices/bluetooth/nm-bluez4-manager.h index 13cfef9398..e5f526461b 100644 --- a/src/devices/bluetooth/nm-bluez4-manager.h +++ b/src/devices/bluetooth/nm-bluez4-manager.h @@ -22,11 +22,8 @@ #ifndef __NETWORKMANAGER_BLUEZ4_MANAGER_H__ #define __NETWORKMANAGER_BLUEZ4_MANAGER_H__ -#include <glib.h> -#include <glib-object.h> - -#include <config.h> -#include "nm-connection-provider.h" +#include "nm-glib.h" +#include "nm-connection-provider.h" G_BEGIN_DECLS diff --git a/src/devices/bluetooth/nm-bluez5-dun.h b/src/devices/bluetooth/nm-bluez5-dun.h index 7e25972551..bc2f6c7aa2 100644 --- a/src/devices/bluetooth/nm-bluez5-dun.h +++ b/src/devices/bluetooth/nm-bluez5-dun.h @@ -21,8 +21,7 @@ #ifndef _NM_BLUEZ5_UTILS_H_ #define _NM_BLUEZ5_UTILS_H_ -#include <glib.h> -#include <gio/gio.h> +#include "nm-glib.h" typedef struct _NMBluez5DunContext NMBluez5DunContext; diff --git a/src/devices/bluetooth/nm-bluez5-manager.c b/src/devices/bluetooth/nm-bluez5-manager.c index 148fe3cbe9..cbbe111753 100644 --- a/src/devices/bluetooth/nm-bluez5-manager.c +++ b/src/devices/bluetooth/nm-bluez5-manager.c @@ -25,8 +25,8 @@ #include <signal.h> #include <string.h> #include <stdlib.h> -#include <gio/gio.h> +#include "nm-glib.h" #include "nm-logging.h" #include "nm-bluez-manager.h" #include "nm-bluez5-manager.h" diff --git a/src/devices/bluetooth/nm-bluez5-manager.h b/src/devices/bluetooth/nm-bluez5-manager.h index 8152976dc4..faf6ce6692 100644 --- a/src/devices/bluetooth/nm-bluez5-manager.h +++ b/src/devices/bluetooth/nm-bluez5-manager.h @@ -22,11 +22,8 @@ #ifndef __NETWORKMANAGER_BLUEZ5_MANAGER_H__ #define __NETWORKMANAGER_BLUEZ5_MANAGER_H__ -#include <glib.h> -#include <glib-object.h> - -#include <config.h> -#include "nm-connection-provider.h" +#include "nm-glib.h" +#include "nm-connection-provider.h" G_BEGIN_DECLS diff --git a/src/devices/bluetooth/nm-bt-error.c b/src/devices/bluetooth/nm-bt-error.c index e3b8e7f583..11aabbdb57 100644 --- a/src/devices/bluetooth/nm-bt-error.c +++ b/src/devices/bluetooth/nm-bt-error.c @@ -20,7 +20,7 @@ #include "config.h" -#include <glib.h> +#include "nm-glib.h" #include "nm-bt-error.h" GQuark diff --git a/src/devices/bluetooth/nm-device-bt.c b/src/devices/bluetooth/nm-device-bt.c index 88033e2e8e..1de5bed104 100644 --- a/src/devices/bluetooth/nm-device-bt.c +++ b/src/devices/bluetooth/nm-device-bt.c @@ -24,9 +24,8 @@ #include <string.h> #include <glib/gi18n.h> -#include <gio/gio.h> -#include "nm-glib-compat.h" +#include "nm-glib.h" #include "nm-bluez-common.h" #include "nm-bluez-device.h" #include "nm-dbus-manager.h" |