Commit dbecdeab authored by Marcus Brinkmann's avatar Marcus Brinkmann Committed by Ralf Habacker

Consistently include <config.h> in all C source files and never in header files.

parent 6663cb5d
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */
#include <config.h>
#include "activation.h" #include "activation.h"
#include "activation-exit-codes.h" #include "activation-exit-codes.h"
#include "desktop-file.h" #include "desktop-file.h"
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
* *
*/ */
#include <config.h>
#include "bus.h" #include "bus.h"
#include "activation.h" #include "activation.h"
#include "connection.h" #include "connection.h"
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
#ifndef BUS_BUS_H #ifndef BUS_BUS_H
#define BUS_BUS_H #define BUS_BUS_H
#include <config.h>
#include <dbus/dbus.h> #include <dbus/dbus.h>
#include <dbus/dbus-string.h> #include <dbus/dbus-string.h>
#include <dbus/dbus-mainloop.h> #include <dbus/dbus-mainloop.h>
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
* *
*/ */
#include <config.h>
#include "config-parser.h" #include "config-parser.h"
#include <dbus/dbus-internals.h> #include <dbus/dbus-internals.h>
#include <expat.h> #include <expat.h>
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
* *
*/ */
#include <config.h>
#include "config-parser.h" #include "config-parser.h"
#include <dbus/dbus-internals.h> #include <dbus/dbus-internals.h>
#include <libxml/xmlreader.h> #include <libxml/xmlreader.h>
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
* *
*/ */
#include <config.h>
#include <dbus/dbus-internals.h> #include <dbus/dbus-internals.h>
#include <string.h> #include <string.h>
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
#ifndef BUS_CONFIG_PARSER_COMMON_H #ifndef BUS_CONFIG_PARSER_COMMON_H
#define BUS_CONFIG_PARSER_COMMON_H #define BUS_CONFIG_PARSER_COMMON_H
#include <config.h>
typedef enum typedef enum
{ {
ELEMENT_NONE, ELEMENT_NONE,
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
* *
*/ */
#include <config.h>
#include "config-parser-common.h" #include "config-parser-common.h"
#include "config-parser-trivial.h" #include "config-parser-trivial.h"
#include "utils.h" #include "utils.h"
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
#ifndef BUS_CONFIG_PARSER_TRIVIAL_H #ifndef BUS_CONFIG_PARSER_TRIVIAL_H
#define BUS_CONFIG_PARSER_TRIVIAL_H #define BUS_CONFIG_PARSER_TRIVIAL_H
#include <config.h>
#include <dbus/dbus.h> #include <dbus/dbus.h>
#include <dbus/dbus-string.h> #include <dbus/dbus-string.h>
#include <dbus/dbus-list.h> #include <dbus/dbus-list.h>
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */
#include <config.h>
#include "config-parser-common.h" #include "config-parser-common.h"
#include "config-parser.h" #include "config-parser.h"
#include "test.h" #include "test.h"
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
#ifndef BUS_CONFIG_PARSER_H #ifndef BUS_CONFIG_PARSER_H
#define BUS_CONFIG_PARSER_H #define BUS_CONFIG_PARSER_H
#include <config.h>
#include <dbus/dbus.h> #include <dbus/dbus.h>
#include <dbus/dbus-string.h> #include <dbus/dbus-string.h>
#include <dbus/dbus-list.h> #include <dbus/dbus-list.h>
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */
#include <config.h>
#include "connection.h" #include "connection.h"
#include "dispatch.h" #include "dispatch.h"
#include "policy.h" #include "policy.h"
......
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */
#include <config.h>
#include <dbus/dbus-sysdeps.h> #include <dbus/dbus-sysdeps.h>
#include <dbus/dbus-internals.h> #include <dbus/dbus-internals.h>
#include "desktop-file.h" #include "desktop-file.h"
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
* *
*/ */
#include <config.h>
#include "dispatch.h" #include "dispatch.h"
#include "connection.h" #include "connection.h"
#include "driver.h" #include "driver.h"
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
* *
*/ */
#include <config.h>
#include "activation.h" #include "activation.h"
#include "connection.h" #include "connection.h"
#include "driver.h" #include "driver.h"
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
* *
*/ */
#include <config.h>
#include "expirelist.h" #include "expirelist.h"
#include "test.h" #include "test.h"
#include <dbus/dbus-internals.h> #include <dbus/dbus-internals.h>
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */
#include <config.h>
#include "bus.h" #include "bus.h"
#include "driver.h" #include "driver.h"
#include <dbus/dbus-internals.h> #include <dbus/dbus-internals.h>
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
* *
*/ */
#include <config.h>
#include "policy.h" #include "policy.h"
#include "services.h" #include "services.h"
#include "test.h" #include "test.h"
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */
#include <config.h>
#include <dbus/dbus-internals.h> #include <dbus/dbus-internals.h>
#include <dbus/dbus-string.h> #include <dbus/dbus-string.h>
#ifndef DBUS_WIN #ifndef DBUS_WIN
......
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */
#include <config.h>
#include <dbus/dbus-hash.h> #include <dbus/dbus-hash.h>
#include <dbus/dbus-list.h> #include <dbus/dbus-list.h>
#include <dbus/dbus-mempool.h> #include <dbus/dbus-mempool.h>
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */
#include <config.h>
#include "signals.h" #include "signals.h"
#include "services.h" #include "services.h"
#include "utils.h" #include "utils.h"
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
* *
*/ */
#include <config.h>
#include "test.h" #include "test.h"
#include "activation-helper.h" #include "activation-helper.h"
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
* *
*/ */
#include <config.h>
#include "test.h" #include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
* *
*/ */
#include <config.h>
#include "test.h" #include "test.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
#ifndef BUS_TEST_H #ifndef BUS_TEST_H
#define BUS_TEST_H #define BUS_TEST_H
#include <config.h>
#ifdef DBUS_BUILD_TESTS #ifdef DBUS_BUILD_TESTS
#include <dbus/dbus.h> #include <dbus/dbus.h>
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
#ifndef DBUS_AUTH_SCRIPT_H #ifndef DBUS_AUTH_SCRIPT_H
#define DBUS_AUTH_SCRIPT_H #define DBUS_AUTH_SCRIPT_H
#include <config.h>
#include <dbus/dbus-memory.h> #include <dbus/dbus-memory.h>
#include <dbus/dbus-types.h> #include <dbus/dbus-types.h>
#include <dbus/dbus-string.h> #include <dbus/dbus-string.h>
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */
#include <config.h>
#include "dbus-internals.h" #include "dbus-internals.h"
#include "dbus-test.h" #include "dbus-test.h"
#include "dbus-auth.h" #include "dbus-auth.h"
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */
#include <config.h>
#include "dbus-auth.h" #include "dbus-auth.h"
#include "dbus-string.h" #include "dbus-string.h"
#include "dbus-list.h" #include "dbus-list.h"
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */
#include <config.h>
#include "dbus-internals.h" #include "dbus-internals.h"
#include "dbus-test.h" #include "dbus-test.h"
#include "dbus-credentials.h" #include "dbus-credentials.h"
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */
#include <config.h>
#include "dbus-dataslot.h" #include "dbus-dataslot.h"
#include "dbus-threads-internal.h" #include "dbus-threads-internal.h"
......
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */
#include <config.h>
#include "dbus-errors.h" #include "dbus-errors.h"
#include "dbus-internals.h" #include "dbus-internals.h"
#include "dbus-string.h" #include "dbus-string.h"
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
* *
*/ */
#include <config.h>
#include "dbus-protocol.h" #include "dbus-protocol.h"
#include "dbus-string.h" #include "dbus-string.h"
#include "dbus-internals.h" #include "dbus-internals.h"
......
...@@ -74,6 +74,7 @@ ...@@ -74,6 +74,7 @@
* accordance with the terms specified in this license. * accordance with the terms specified in this license.
*/ */
#include <config.h>
#include "dbus-hash.h" #include "dbus-hash.h"
#include "dbus-internals.h" #include "dbus-internals.h"
#include "dbus-mempool.h" #include "dbus-mempool.h"
......
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* *
*/ */
#include <config.h>
#include "dbus-internals.h" #include "dbus-internals.h"
#include "dbus-protocol.h" #include "dbus-protocol.h"
#include "dbus-marshal-basic.h" #include "dbus-marshal-basic.h"
......
...@@ -27,8 +27,6 @@ ...@@ -27,8 +27,6 @@
#ifndef DBUS_INTERNALS_H #ifndef DBUS_INTERNALS_H
#define DBUS_INTERNALS_H #define DBUS_INTERNALS_H
#include <config.h>
#include <dbus/dbus-memory.h> #include <dbus/dbus-memory.h>
#include <dbus/dbus-types.h> #include <dbus/dbus-types.h>
#include <dbus/dbus-errors.h> #include <dbus/dbus-errors.h>
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
* *
*/ */
#include <config.h>
#include "dbus-keyring.h" #include "dbus-keyring.h"
#include "dbus-protocol.h" #include "dbus-protocol.h"
#include <dbus/dbus-string.h> #include <dbus/dbus-string.h>
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
* *
*/ */
#include <config.h>
#include "dbus-internals.h" #include "dbus-internals.h"
#include "dbus-list.h" #include "dbus-list.h"
#include "dbus-mempool.h" #include "dbus-mempool.h"
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
* *
*/ */
#include <config.h>
#include "dbus-mainloop.h" #include "dbus-mainloop.h"
#ifndef DOXYGEN_SHOULD_SKIP_THIS #ifndef DOXYGEN_SHOULD_SKIP_THIS
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
* *
*/ */
#include <config.h>
#include "dbus-internals.h" #include "dbus-internals.h"
#include "dbus-marshal-basic.h" #include "dbus-marshal-basic.h"
#include "dbus-signature.h" #include "dbus-signature.h"
......
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
#ifndef DBUS_MARSHAL_BASIC_H #ifndef DBUS_MARSHAL_BASIC_H
#define DBUS_MARSHAL_BASIC_H #define DBUS_MARSHAL_BASIC_H
#include <config.h>
#ifdef HAVE_BYTESWAP_H #ifdef HAVE_BYTESWAP_H
#include <byteswap.h> #include <byteswap.h>
#endif #endif
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
* *
*/ */
#include <config.h>
#include "dbus-marshal-byteswap.h" #include "dbus-marshal-byteswap.h"
#include "dbus-marshal-basic.h" #include "dbus-marshal-basic.h"
#include "dbus-signature.h" #include "dbus-signature.h"
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#ifndef DBUS_MARSHAL_BYTESWAP_H #ifndef DBUS_MARSHAL_BYTESWAP_H
#define DBUS_MARSHAL_BYTESWAP_H #define DBUS_MARSHAL_BYTESWAP_H
#include <config.h>
#include <dbus/dbus-protocol.h> #include <dbus/dbus-protocol.h>
#include <dbus/dbus-marshal-recursive.h> #include <dbus/dbus-marshal-recursive.h>
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
* *
*/ */