diff options
author | Dan Winship <danw@gnome.org> | 2014-11-13 10:07:02 -0500 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2014-11-13 17:18:42 -0500 |
commit | 3bfb163a74fb98698b03d8a605b0164869a2ed4a (patch) | |
tree | 9aff34e20cafdfdce5fed6dc98e2e1a1b07e7a3c /examples | |
parent | 125f7c4d40b7048209d031b3322e46e081d7c328 (diff) | |
download | NetworkManager-3bfb163a74fb98698b03d8a605b0164869a2ed4a.tar.gz |
all: consistently include config.h
config.h should be included from every .c file, and it should be
included before any other include. Fix that.
(As a side effect of how I did this, this also changes us to
consistently use "config.h" rather than <config.h>. To the extent that
it matters [which is not much], quotes are more correct anyway, since
we're talking about a file in our own build tree, not a system
include.)
Diffstat (limited to 'examples')
-rw-r--r-- | examples/C/glib/add-connection-gdbus.c | 2 | ||||
-rw-r--r-- | examples/C/glib/add-connection-libnm.c | 2 | ||||
-rw-r--r-- | examples/C/glib/get-active-connections-gdbus.c | 2 | ||||
-rw-r--r-- | examples/C/glib/get-ap-info-libnm.c | 2 | ||||
-rw-r--r-- | examples/C/glib/list-connections-gdbus.c | 2 | ||||
-rw-r--r-- | examples/C/glib/list-connections-libnm.c | 2 | ||||
-rw-r--r-- | examples/C/glib/monitor-nm-running-gdbus.c | 2 | ||||
-rw-r--r-- | examples/C/glib/monitor-nm-state-gdbus.c | 2 |
8 files changed, 16 insertions, 0 deletions
diff --git a/examples/C/glib/add-connection-gdbus.c b/examples/C/glib/add-connection-gdbus.c index 7a4d593945..d390327399 100644 --- a/examples/C/glib/add-connection-gdbus.c +++ b/examples/C/glib/add-connection-gdbus.c @@ -27,6 +27,8 @@ * gcc -Wall `pkg-config --cflags libnm` `pkg-config --cflags --libs gio-2.0` -luuid add-connection-gdbus.c -o add-connection-gdbus */ +#include "config.h" + #include <gio/gio.h> #include <uuid/uuid.h> #include <NetworkManager.h> diff --git a/examples/C/glib/add-connection-libnm.c b/examples/C/glib/add-connection-libnm.c index f206340e0c..75048bd8f1 100644 --- a/examples/C/glib/add-connection-libnm.c +++ b/examples/C/glib/add-connection-libnm.c @@ -27,6 +27,8 @@ * gcc -Wall `pkg-config --libs --cflags glib-2.0 libnm` add-connection-libnm.c -o add-connection-libnm */ +#include "config.h" + #include <glib.h> #include <NetworkManager.h> diff --git a/examples/C/glib/get-active-connections-gdbus.c b/examples/C/glib/get-active-connections-gdbus.c index 6a19bf895e..9b34f6b210 100644 --- a/examples/C/glib/get-active-connections-gdbus.c +++ b/examples/C/glib/get-active-connections-gdbus.c @@ -26,6 +26,8 @@ * gcc -Wall `pkg-config --cflags libnm` `pkg-config --cflags --libs gio-2.0` get-active-connections-gdbus.c -o get-active-connections-gdbus */ +#include "config.h" + #include <string.h> #include <gio/gio.h> #include <NetworkManager.h> diff --git a/examples/C/glib/get-ap-info-libnm.c b/examples/C/glib/get-ap-info-libnm.c index 5868c27904..90bc2d5e78 100644 --- a/examples/C/glib/get-ap-info-libnm.c +++ b/examples/C/glib/get-ap-info-libnm.c @@ -25,6 +25,8 @@ * gcc -Wall `pkg-config --libs --cflags glib-2.0 libnm` get-ap-info-libnm.c -o get-ap-info-libnm */ +#include "config.h" + #include <glib.h> #include <stdio.h> #include <stdlib.h> diff --git a/examples/C/glib/list-connections-gdbus.c b/examples/C/glib/list-connections-gdbus.c index f5922582ea..634bd90c82 100644 --- a/examples/C/glib/list-connections-gdbus.c +++ b/examples/C/glib/list-connections-gdbus.c @@ -27,6 +27,8 @@ * gcc -Wall `pkg-config --cflags libnm` `pkg-config --cflags --libs gio-2.0` list-connections-gdbus.c -o list-connections-gdbus */ +#include "config.h" + #include <gio/gio.h> #include <NetworkManager.h> diff --git a/examples/C/glib/list-connections-libnm.c b/examples/C/glib/list-connections-libnm.c index f09c028b6b..d5cdf361d7 100644 --- a/examples/C/glib/list-connections-libnm.c +++ b/examples/C/glib/list-connections-libnm.c @@ -26,6 +26,8 @@ * gcc -Wall `pkg-config --libs --cflags glib-2.0 libnm` list-connections-libnm.c -o list-connections-libnm */ +#include "config.h" + #include <glib.h> #include <stdio.h> #include <stdlib.h> diff --git a/examples/C/glib/monitor-nm-running-gdbus.c b/examples/C/glib/monitor-nm-running-gdbus.c index 2e1a11c0c8..e4b3bbbfc9 100644 --- a/examples/C/glib/monitor-nm-running-gdbus.c +++ b/examples/C/glib/monitor-nm-running-gdbus.c @@ -28,6 +28,8 @@ * gcc -Wall `pkg-config --libs --cflags glib-2.0 gio-2.0` monitor-nm-running-gdbus.c -o monitor-nm-running-gdbus */ +#include "config.h" + #include <gio/gio.h> static void diff --git a/examples/C/glib/monitor-nm-state-gdbus.c b/examples/C/glib/monitor-nm-state-gdbus.c index 05596399d9..aeabcfe16e 100644 --- a/examples/C/glib/monitor-nm-state-gdbus.c +++ b/examples/C/glib/monitor-nm-state-gdbus.c @@ -29,6 +29,8 @@ * gcc -Wall `pkg-config --libs --cflags glib-2.0 gio-2.0` `pkg-config --cflags libnm` monitor-nm-state-gdbus.c -o monitor-nm-state-gdbus */ +#include "config.h" + #include <gio/gio.h> #include <string.h> #include <nm-dbus-interface.h> |