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 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include <config.h>
#include "activation.h"
#include "activation-exit-codes.h"
#include "desktop-file.h"
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "bus.h"
#include "activation.h"
#include "connection.h"
......
......@@ -24,8 +24,6 @@
#ifndef BUS_BUS_H
#define BUS_BUS_H
#include <config.h>
#include <dbus/dbus.h>
#include <dbus/dbus-string.h>
#include <dbus/dbus-mainloop.h>
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "config-parser.h"
#include <dbus/dbus-internals.h>
#include <expat.h>
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "config-parser.h"
#include <dbus/dbus-internals.h>
#include <libxml/xmlreader.h>
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include <dbus/dbus-internals.h>
#include <string.h>
......
......@@ -24,8 +24,6 @@
#ifndef BUS_CONFIG_PARSER_COMMON_H
#define BUS_CONFIG_PARSER_COMMON_H
#include <config.h>
typedef enum
{
ELEMENT_NONE,
......
......@@ -22,6 +22,7 @@
*
*/
#include <config.h>
#include "config-parser-common.h"
#include "config-parser-trivial.h"
#include "utils.h"
......
......@@ -24,8 +24,6 @@
#ifndef BUS_CONFIG_PARSER_TRIVIAL_H
#define BUS_CONFIG_PARSER_TRIVIAL_H
#include <config.h>
#include <dbus/dbus.h>
#include <dbus/dbus-string.h>
#include <dbus/dbus-list.h>
......
......@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include <config.h>
#include "config-parser-common.h"
#include "config-parser.h"
#include "test.h"
......
......@@ -24,8 +24,6 @@
#ifndef BUS_CONFIG_PARSER_H
#define BUS_CONFIG_PARSER_H
#include <config.h>
#include <dbus/dbus.h>
#include <dbus/dbus-string.h>
#include <dbus/dbus-list.h>
......
......@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include <config.h>
#include "connection.h"
#include "dispatch.h"
#include "policy.h"
......
......@@ -21,6 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include <config.h>
#include <dbus/dbus-sysdeps.h>
#include <dbus/dbus-internals.h>
#include "desktop-file.h"
......
......@@ -23,6 +23,7 @@
*
*/
#include <config.h>
#include "dispatch.h"
#include "connection.h"
#include "driver.h"
......
......@@ -22,6 +22,7 @@
*
*/
#include <config.h>
#include "activation.h"
#include "connection.h"
#include "driver.h"
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "expirelist.h"
#include "test.h"
#include <dbus/dbus-internals.h>
......
......@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include <config.h>
#include "bus.h"
#include "driver.h"
#include <dbus/dbus-internals.h>
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "policy.h"
#include "services.h"
#include "test.h"
......
......@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include <config.h>
#include <dbus/dbus-internals.h>
#include <dbus/dbus-string.h>
#ifndef DBUS_WIN
......
......@@ -21,6 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include <config.h>
#include <dbus/dbus-hash.h>
#include <dbus/dbus-list.h>
#include <dbus/dbus-mempool.h>
......
......@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include <config.h>
#include "signals.h"
#include "services.h"
#include "utils.h"
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "test.h"
#include "activation-helper.h"
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "test.h"
#include <stdio.h>
#include <stdlib.h>
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "test.h"
#include <stdio.h>
#include <stdlib.h>
......
......@@ -24,8 +24,6 @@
#ifndef BUS_TEST_H
#define BUS_TEST_H
#include <config.h>
#ifdef DBUS_BUILD_TESTS
#include <dbus/dbus.h>
......
......@@ -24,8 +24,6 @@
#ifndef DBUS_AUTH_SCRIPT_H
#define DBUS_AUTH_SCRIPT_H
#include <config.h>
#include <dbus/dbus-memory.h>
#include <dbus/dbus-types.h>
#include <dbus/dbus-string.h>
......
......@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include <config.h>
#include "dbus-internals.h"
#include "dbus-test.h"
#include "dbus-auth.h"
......
......@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include <config.h>
#include "dbus-auth.h"
#include "dbus-string.h"
#include "dbus-list.h"
......
......@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include <config.h>
#include "dbus-internals.h"
#include "dbus-test.h"
#include "dbus-credentials.h"
......
......@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include <config.h>
#include "dbus-dataslot.h"
#include "dbus-threads-internal.h"
......
......@@ -21,6 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include <config.h>
#include "dbus-errors.h"
#include "dbus-internals.h"
#include "dbus-string.h"
......
......@@ -22,6 +22,7 @@
*
*/
#include <config.h>
#include "dbus-protocol.h"
#include "dbus-string.h"
#include "dbus-internals.h"
......
......@@ -74,6 +74,7 @@
* accordance with the terms specified in this license.
*/
#include <config.h>
#include "dbus-hash.h"
#include "dbus-internals.h"
#include "dbus-mempool.h"
......
......@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include <config.h>
#include "dbus-internals.h"
#include "dbus-protocol.h"
#include "dbus-marshal-basic.h"
......
......@@ -27,8 +27,6 @@
#ifndef DBUS_INTERNALS_H
#define DBUS_INTERNALS_H
#include <config.h>
#include <dbus/dbus-memory.h>
#include <dbus/dbus-types.h>
#include <dbus/dbus-errors.h>
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "dbus-keyring.h"
#include "dbus-protocol.h"
#include <dbus/dbus-string.h>
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "dbus-internals.h"
#include "dbus-list.h"
#include "dbus-mempool.h"
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "dbus-mainloop.h"
#ifndef DOXYGEN_SHOULD_SKIP_THIS
......
......@@ -22,6 +22,7 @@
*
*/
#include <config.h>
#include "dbus-internals.h"
#include "dbus-marshal-basic.h"
#include "dbus-signature.h"
......
......@@ -25,8 +25,6 @@
#ifndef DBUS_MARSHAL_BASIC_H
#define DBUS_MARSHAL_BASIC_H
#include <config.h>
#ifdef HAVE_BYTESWAP_H
#include <byteswap.h>
#endif
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "dbus-marshal-byteswap.h"
#include "dbus-marshal-basic.h"
#include "dbus-signature.h"
......
......@@ -24,7 +24,6 @@
#ifndef DBUS_MARSHAL_BYTESWAP_H
#define DBUS_MARSHAL_BYTESWAP_H
#include <config.h>
#include <dbus/dbus-protocol.h>
#include <dbus/dbus-marshal-recursive.h>
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "dbus/dbus-shared.h"
#include "dbus-marshal-header.h"
#include "dbus-marshal-recursive.h"
......
......@@ -24,7 +24,6 @@
#ifndef DBUS_MARSHAL_HEADER_H
#define DBUS_MARSHAL_HEADER_H
#include <config.h>
#include <dbus/dbus-marshal-basic.h>
#include <dbus/dbus-marshal-validate.h>
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "dbus-marshal-recursive.h"
#include "dbus-marshal-basic.h"
#include "dbus-signature.h"
......
......@@ -24,7 +24,6 @@
#ifndef DBUS_MARSHAL_RECURSIVE_H
#define DBUS_MARSHAL_RECURSIVE_H
#include <config.h>
#include <dbus/dbus-protocol.h>
#include <dbus/dbus-list.h>
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "dbus-internals.h"
#include "dbus-marshal-validate.h"
#include "dbus-marshal-recursive.h"
......
......@@ -24,8 +24,6 @@
#ifndef DBUS_MARSHAL_VALIDATE_H
#define DBUS_MARSHAL_VALIDATE_H
#include <config.h>
/**
* @addtogroup DBusMarshal
*
......
......@@ -34,6 +34,7 @@
* <ghost@aladdin.com>.
*/
#include <config.h>
#include "dbus-internals.h"
#include "dbus-md5.h"
#include <string.h>
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "dbus-memory.h"
#include "dbus-internals.h"
#include "dbus-sysdeps.h"
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "dbus-mempool.h"
#include "dbus-internals.h"
......
......@@ -23,8 +23,6 @@
#ifndef DBUS_MESSAGE_PRIVATE_H
#define DBUS_MESSAGE_PRIVATE_H
#include <config.h>
#include <dbus/dbus-message.h>
#include <dbus/dbus-message-internal.h>
#include <dbus/dbus-string.h>
......
......@@ -22,6 +22,7 @@
*
*/
#include <config.h>
#include "dbus-internals.h"
#include "dbus-test.h"
#include "dbus-message-private.h"
......
......@@ -22,6 +22,7 @@
*
*/
#include <config.h>
#include "dbus-internals.h"
#include "dbus-marshal-recursive.h"
#include "dbus-marshal-validate.h"
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
// major sections of this file are modified code from libassuan, (C) FSF
#include "dbus-nonce.h"
#include "dbus-internals.h"
......
......@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include <config.h>
#include "dbus-object-tree.h"
#include "dbus-connection-internal.h"
#include "dbus-internals.h"
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "dbus-internals.h"
#include "dbus-connection-internal.h"
#include "dbus-pending-call-internal.h"
......
......@@ -22,6 +22,7 @@
*
*/
#include <config.h>
#include "dbus-protocol.h"
#include "dbus-string.h"
#include "dbus-internals.h"
......
......@@ -22,6 +22,7 @@
*
*/
#include <config.h>
#include "dbus-protocol.h"
#include "dbus-string.h"
#include "dbus-internals.h"
......
......@@ -22,6 +22,7 @@
*
*/
#include <config.h>
#include "dbus-pipe.h"
/*
......
......@@ -25,8 +25,6 @@
#ifndef DBUS_PIPE_H
#define DBUS_PIPE_H
#include <config.h>
#include <dbus/dbus-types.h>
#include <dbus/dbus-errors.h>
#include <dbus/dbus-string.h>
......
......@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include <config.h>
#include <dbus/dbus-resources.h>
#include <dbus/dbus-internals.h>
......
......@@ -22,6 +22,7 @@
*
*/
#include <config.h>
#include "dbus-internals.h"
#include "dbus-server-debug-pipe.h"
#include "dbus-transport-socket.h"
......
......@@ -23,7 +23,6 @@
#ifndef DBUS_SERVER_PROTECTED_H
#define DBUS_SERVER_PROTECTED_H
#include <config.h>
#include <dbus/dbus-internals.h>
#include <dbus/dbus-threads-internal.h>
#include <dbus/dbus-server.h>
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "dbus-internals.h"
#include "dbus-server-socket.h"
#include "dbus-transport-socket.h"
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "dbus-internals.h"
#include "dbus-server-unix.h"
#include "dbus-server-socket.h"
......
......@@ -22,6 +22,7 @@
*
*/
#include <config.h>
#include "dbus-internals.h"
#include "dbus-server-win.h"
#include "dbus-server-socket.h"
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "dbus-server.h"
#include "dbus-server-unix.h"
#include "dbus-server-socket.h"
......
......@@ -22,6 +22,7 @@
*
*/
#include <config.h>
#include "dbus-internals.h"
#include "dbus-sha.h"
#include "dbus-marshal-basic.h" /* for byteswap routines */
......
......@@ -22,6 +22,7 @@
*
*/
#include <config.h>
#include <string.h>
#include "dbus-internals.h"
#include "dbus-list.h"
......
......@@ -21,6 +21,8 @@
*
*/
#include <config.h>
#include "dbus-signature.h"
#include "dbus-marshal-recursive.h"
#include "dbus-marshal-basic.h"
......
#include "config.h"
#include <config.h>
//#define SPAWN_DEBUG
......
......@@ -24,8 +24,6 @@
#ifndef DBUS_STRING_PRIVATE_H
#define DBUS_STRING_PRIVATE_H
#include <config.h>
#include <dbus/dbus-memory.h>
#include <dbus/dbus-types.h>
......
......@@ -22,6 +22,7 @@
*
*/
#include <config.h>
#include "dbus-internals.h"
#include "dbus-string.h"
#define DBUS_CAN_USE_DBUS_STRING_PRIVATE 1
......
......@@ -22,6 +22,7 @@
*
*/
#include <config.h>
#include "dbus-internals.h"
#include "dbus-string.h"
/* we allow a system header here, for speed/convenience */
......
......@@ -25,8 +25,6 @@
#ifndef DBUS_STRING_H
#define DBUS_STRING_H
#include <config.h>
#include <dbus/dbus-macros.h>
#include <dbus/dbus-types.h>
#include <dbus/dbus-memory.h>
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "dbus-internals.h"
#include "dbus-sysdeps.h"
#include "dbus-threads.h"
......
......@@ -21,6 +21,7 @@
*
*/
#include <config.h>
#include "dbus-internals.h"
#include "dbus-sysdeps.h"
#include "dbus-sysdeps-win.h"
......
......@@ -25,7 +25,6 @@
#ifndef DBUS_SYSDEPS_UNIX_H
#define DBUS_SYSDEPS_UNIX_H
#include <config.h>
#include <dbus/dbus-sysdeps.h>
#ifdef DBUS_WIN
......
......@@ -21,6 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
#include <config.h>
#include "dbus-sysdeps.h"
#include "dbus-sysdeps-unix.h"
#include "dbus-internals.h"
......
......@@ -22,6 +22,8 @@
*
*/
#include <config.h>
#define STRSAFE_NO_DEPRECATE
#include "dbus-sysdeps.h"
......
......@@ -21,6 +21,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*