summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-12 16:25:31 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-16 10:17:20 +0200
commitd23eabc7369420f401650266b110bb8017e0e09d (patch)
treed76bf19e062e62ef1d71fcd0ecaa2fb4721f031f
parent2b01622f523b7874afa6fb7bbda440d8e05e0e85 (diff)
Use TP_DISABLE_SINGLE_INCLUDE
https://bugs.freedesktop.org/show_bug.cgi?id=69311
-rw-r--r--configure.ac1
-rw-r--r--src/idle-connection-manager.c1
-rw-r--r--src/idle-connection-manager.h2
-rw-r--r--src/idle-connection.c10
-rw-r--r--src/idle-connection.h4
-rw-r--r--src/idle-contact-info.c5
-rw-r--r--src/idle-contact-info.h2
-rw-r--r--src/idle-debug.c3
-rw-r--r--src/idle-handles.c3
-rw-r--r--src/idle-handles.h2
-rw-r--r--src/idle-im-channel.c2
-rw-r--r--src/idle-im-channel.h4
-rw-r--r--src/idle-im-manager.c4
-rw-r--r--src/idle-muc-channel.c9
-rw-r--r--src/idle-muc-channel.h7
-rw-r--r--src/idle-muc-manager.c4
-rw-r--r--src/idle-parser.h2
-rw-r--r--src/idle-roomlist-manager.c5
-rw-r--r--src/idle-server-connection.c2
-rw-r--r--src/idle-text.c2
-rw-r--r--src/idle-text.h2
-rw-r--r--src/idle.c4
-rw-r--r--src/protocol.c2
-rw-r--r--src/protocol.h2
-rw-r--r--src/room-config.h2
-rw-r--r--tests/test-ctcp-tokenize.c2
-rw-r--r--tests/test-text-encode-and-split.c2
-rw-r--r--tools/glib-ginterface-gen.py2
28 files changed, 22 insertions, 70 deletions
diff --git a/configure.ac b/configure.ac
index 7b6f8f9..c097609 100644
--- a/configure.ac
+++ b/configure.ac
@@ -93,6 +93,7 @@ PKG_CHECK_MODULES([GLIB],
PKG_CHECK_MODULES([DBUS], [dbus-1 >= 0.51, dbus-glib-1 >= 0.51])
+AC_DEFINE([TP_DISABLE_SINGLE_INCLUDE], [], [Disable single header include])
AC_DEFINE(TP_VERSION_MIN_REQUIRED, TP_VERSION_0_22, [Ignore post 0.22 deprecations])
AC_DEFINE(TP_VERSION_MAX_ALLOWED, TP_VERSION_0_22, [Prevent post 0.22 APIs])
PKG_CHECK_MODULES([TELEPATHY], [telepathy-glib >= 0.21])
diff --git a/src/idle-connection-manager.c b/src/idle-connection-manager.c
index 7413c72..9c13f4c 100644
--- a/src/idle-connection-manager.c
+++ b/src/idle-connection-manager.c
@@ -23,7 +23,6 @@
#include "idle-connection-manager.h"
#include <dbus/dbus-protocol.h>
-#include <telepathy-glib/enums.h>
#include "idle-connection.h"
#include "idle-handles.h" /* to check for valid nick */
diff --git a/src/idle-connection-manager.h b/src/idle-connection-manager.h
index a7908e6..ba965c2 100644
--- a/src/idle-connection-manager.h
+++ b/src/idle-connection-manager.h
@@ -22,7 +22,7 @@
#define __IDLE_CONNECTION_MANAGER_H__
#include <glib-object.h>
-#include <telepathy-glib/base-connection-manager.h>
+#include <telepathy-glib/telepathy-glib.h>
G_BEGIN_DECLS
diff --git a/src/idle-connection.c b/src/idle-connection.c
index f1a0fbe..90536b5 100644
--- a/src/idle-connection.c
+++ b/src/idle-connection.c
@@ -28,16 +28,6 @@
#include <dbus/dbus-glib.h>
-#include <telepathy-glib/dbus.h>
-#include <telepathy-glib/enums.h>
-#include <telepathy-glib/errors.h>
-#include <telepathy-glib/interfaces.h>
-#include <telepathy-glib/simple-password-manager.h>
-#include <telepathy-glib/svc-connection.h>
-#include <telepathy-glib/channel-manager.h>
-#include <telepathy-glib/gtypes.h>
-#include <telepathy-glib/util.h>
-
#define IDLE_DEBUG_FLAG IDLE_DEBUG_CONNECTION
#include "idle-contact-info.h"
#include "idle-ctcp.h"
diff --git a/src/idle-connection.h b/src/idle-connection.h
index eb9c3f8..bd5f903 100644
--- a/src/idle-connection.h
+++ b/src/idle-connection.h
@@ -22,9 +22,7 @@
#define __IDLE_CONNECTION_H__
#include <glib-object.h>
-#include <telepathy-glib/base-connection.h>
-#include <telepathy-glib/handle.h>
-#include <telepathy-glib/contacts-mixin.h>
+#include <telepathy-glib/telepathy-glib.h>
#include "idle-parser.h"
diff --git a/src/idle-contact-info.c b/src/idle-contact-info.c
index 0a9f40a..b056510 100644
--- a/src/idle-contact-info.c
+++ b/src/idle-contact-info.c
@@ -20,11 +20,6 @@
#include "config.h"
#include "idle-contact-info.h"
-#include <telepathy-glib/gtypes.h>
-#include <telepathy-glib/handle-repo.h>
-#include <telepathy-glib/interfaces.h>
-#include <telepathy-glib/util.h>
-
#define IDLE_DEBUG_FLAG IDLE_DEBUG_CONNECTION
#include "idle-debug.h"
#include "idle-muc-channel.h"
diff --git a/src/idle-contact-info.h b/src/idle-contact-info.h
index 8baa198..d81b378 100644
--- a/src/idle-contact-info.h
+++ b/src/idle-contact-info.h
@@ -22,7 +22,7 @@
#include <glib.h>
#include <glib-object.h>
-#include <telepathy-glib/dbus-properties-mixin.h>
+#include <telepathy-glib/telepathy-glib.h>
#include "idle-connection.h"
diff --git a/src/idle-debug.c b/src/idle-debug.c
index 9b7ffcb..95c566c 100644
--- a/src/idle-debug.c
+++ b/src/idle-debug.c
@@ -21,8 +21,7 @@
#include "idle-debug.h"
#include <stdarg.h>
-#include <telepathy-glib/debug.h>
-#include <telepathy-glib/debug-sender.h>
+#include <telepathy-glib/telepathy-glib.h>
static IdleDebugFlags _flags = 0;
diff --git a/src/idle-handles.c b/src/idle-handles.c
index 96cb3c8..0996ba6 100644
--- a/src/idle-handles.c
+++ b/src/idle-handles.c
@@ -25,8 +25,7 @@
#include <ctype.h>
#include <string.h>
-#include <telepathy-glib/errors.h>
-#include <telepathy-glib/handle-repo-dynamic.h>
+#include <telepathy-glib/telepathy-glib.h>
#define IDLE_DEBUG_FLAG IDLE_DEBUG_PARSER
#include "idle-debug.h"
diff --git a/src/idle-handles.h b/src/idle-handles.h
index 4d2aad0..4e59bc3 100644
--- a/src/idle-handles.h
+++ b/src/idle-handles.h
@@ -22,7 +22,7 @@
#define __IDLE_HANDLES_H__
#include <glib.h>
-#include <telepathy-glib/handle-repo.h>
+#include <telepathy-glib/telepathy-glib.h>
G_BEGIN_DECLS
diff --git a/src/idle-im-channel.c b/src/idle-im-channel.c
index 0b6ca79..04773d5 100644
--- a/src/idle-im-channel.c
+++ b/src/idle-im-channel.c
@@ -24,8 +24,6 @@
#include <dbus/dbus-glib.h>
-#include <telepathy-glib/interfaces.h>
-
#define IDLE_DEBUG_FLAG IDLE_DEBUG_IM
#include "idle-connection.h"
#include "idle-debug.h"
diff --git a/src/idle-im-channel.h b/src/idle-im-channel.h
index c995c3c..96dee14 100644
--- a/src/idle-im-channel.h
+++ b/src/idle-im-channel.h
@@ -22,9 +22,7 @@
#define __IDLE_IM_CHANNEL_H__
#include <glib-object.h>
-#include <telepathy-glib/message-mixin.h>
-#include <telepathy-glib/dbus-properties-mixin.h>
-#include <telepathy-glib/base-channel.h>
+#include <telepathy-glib/telepathy-glib.h>
G_BEGIN_DECLS
diff --git a/src/idle-im-manager.c b/src/idle-im-manager.c
index d883c74..8d7c22d 100644
--- a/src/idle-im-manager.c
+++ b/src/idle-im-manager.c
@@ -22,9 +22,7 @@
#include "idle-im-manager.h"
-#include <telepathy-glib/channel-manager.h>
-#include <telepathy-glib/interfaces.h>
-#include <telepathy-glib/dbus.h>
+#include <telepathy-glib/telepathy-glib.h>
#define IDLE_DEBUG_FLAG IDLE_DEBUG_IM
#include "idle-connection.h"
diff --git a/src/idle-muc-channel.c b/src/idle-muc-channel.c
index 6e298aa..f91ca03 100644
--- a/src/idle-muc-channel.c
+++ b/src/idle-muc-channel.c
@@ -29,14 +29,7 @@
#include <dbus/dbus-glib.h>
-#include <telepathy-glib/channel-iface.h>
-#include <telepathy-glib/dbus.h>
-#include <telepathy-glib/enums.h>
-#include <telepathy-glib/errors.h>
-#include <telepathy-glib/gtypes.h>
-#include <telepathy-glib/interfaces.h>
-#include <telepathy-glib/handle.h>
-#include <telepathy-glib/svc-channel.h>
+#include <telepathy-glib/telepathy-glib.h>
#define IDLE_DEBUG_FLAG IDLE_DEBUG_MUC
#include "idle-connection.h"
diff --git a/src/idle-muc-channel.h b/src/idle-muc-channel.h
index 7743fca..4b7631a 100644
--- a/src/idle-muc-channel.h
+++ b/src/idle-muc-channel.h
@@ -24,12 +24,7 @@
#include <glib-object.h>
#include <gio/gio.h>
-#include <telepathy-glib/base-channel.h>
-#include <telepathy-glib/enums.h>
-#include <telepathy-glib/group-mixin.h>
-#include <telepathy-glib/handle.h>
-#include <telepathy-glib/message-mixin.h>
-#include <telepathy-glib/dbus-properties-mixin.h>
+#include <telepathy-glib/telepathy-glib.h>
#include "idle-connection.h"
diff --git a/src/idle-muc-manager.c b/src/idle-muc-manager.c
index fdff375..03a5beb 100644
--- a/src/idle-muc-manager.c
+++ b/src/idle-muc-manager.c
@@ -24,9 +24,7 @@
#include <time.h>
-#include <telepathy-glib/channel-manager.h>
-#include <telepathy-glib/dbus.h>
-#include <telepathy-glib/interfaces.h>
+#include <telepathy-glib/telepathy-glib.h>
#define IDLE_DEBUG_FLAG IDLE_DEBUG_MUC
#include "idle-connection.h"
diff --git a/src/idle-parser.h b/src/idle-parser.h
index 7ba333e..cf56490 100644
--- a/src/idle-parser.h
+++ b/src/idle-parser.h
@@ -23,7 +23,7 @@
#include <glib-object.h>
-#include <telepathy-glib/handle.h>
+#include <telepathy-glib/telepathy-glib.h>
G_BEGIN_DECLS
diff --git a/src/idle-roomlist-manager.c b/src/idle-roomlist-manager.c
index 0dbe133..1ce4652 100644
--- a/src/idle-roomlist-manager.c
+++ b/src/idle-roomlist-manager.c
@@ -23,10 +23,7 @@
#include "config.h"
#include "idle-roomlist-manager.h"
-#include <telepathy-glib/channel-manager.h>
-#include <telepathy-glib/interfaces.h>
-#include <telepathy-glib/dbus.h>
-#include <telepathy-glib/util.h>
+#include <telepathy-glib/telepathy-glib.h>
#define IDLE_DEBUG_FLAG IDLE_DEBUG_ROOMLIST
#include "idle-connection.h"
diff --git a/src/idle-server-connection.c b/src/idle-server-connection.c
index 66fe3d0..878b199 100644
--- a/src/idle-server-connection.c
+++ b/src/idle-server-connection.c
@@ -27,7 +27,7 @@
#include <netinet/tcp.h>
#include <sys/socket.h>
-#include <telepathy-glib/errors.h>
+#include <telepathy-glib/telepathy-glib.h>
#define IDLE_DEBUG_FLAG IDLE_DEBUG_NETWORK
#include "idle-connection.h"
diff --git a/src/idle-text.c b/src/idle-text.c
index e54b487..dbda8b0 100644
--- a/src/idle-text.c
+++ b/src/idle-text.c
@@ -24,8 +24,6 @@
#include <time.h>
#include <string.h>
-#include <telepathy-glib/dbus.h>
-
#define IDLE_DEBUG_FLAG IDLE_DEBUG_TEXT
#include "idle-ctcp.h"
#include "idle-debug.h"
diff --git a/src/idle-text.h b/src/idle-text.h
index 1c9bdf3..fecd722 100644
--- a/src/idle-text.h
+++ b/src/idle-text.h
@@ -25,7 +25,7 @@
#include <dbus/dbus-glib.h>
-#include <telepathy-glib/message-mixin.h>
+#include <telepathy-glib/telepathy-glib.h>
#include "idle-connection.h"
diff --git a/src/idle.c b/src/idle.c
index 8d3706b..62ee898 100644
--- a/src/idle.c
+++ b/src/idle.c
@@ -20,9 +20,7 @@
#include <config.h>
-#include <telepathy-glib/run.h>
-#include <telepathy-glib/debug.h>
-#include <telepathy-glib/debug-sender.h>
+#include <telepathy-glib/telepathy-glib.h>
#include "idle-connection-manager.h"
#include "idle-debug.h"
diff --git a/src/protocol.c b/src/protocol.c
index 8feda4e..489410a 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -23,8 +23,6 @@
#include <dbus/dbus-glib.h>
#include <dbus/dbus-protocol.h>
-#include <telepathy-glib/base-connection-manager.h>
-#include <telepathy-glib/telepathy-glib.h>
#include "idle-connection.h"
#include "idle-handles.h"
diff --git a/src/protocol.h b/src/protocol.h
index adf58a7..87de737 100644
--- a/src/protocol.h
+++ b/src/protocol.h
@@ -21,7 +21,7 @@
#define IDLE_PROTOCOL_H
#include <glib-object.h>
-#include <telepathy-glib/base-protocol.h>
+#include <telepathy-glib/telepathy-glib.h>
G_BEGIN_DECLS
diff --git a/src/room-config.h b/src/room-config.h
index 8d2eadb..44c2687 100644
--- a/src/room-config.h
+++ b/src/room-config.h
@@ -21,7 +21,7 @@
#define IDLE_ROOM_CONFIG_H
#include <glib-object.h>
-#include <telepathy-glib/base-room-config.h>
+#include <telepathy-glib/telepathy-glib.h>
typedef struct _IdleRoomConfig IdleRoomConfig;
typedef struct _IdleRoomConfigClass IdleRoomConfigClass;
diff --git a/tests/test-ctcp-tokenize.c b/tests/test-ctcp-tokenize.c
index 9d15cff..92ceb92 100644
--- a/tests/test-ctcp-tokenize.c
+++ b/tests/test-ctcp-tokenize.c
@@ -6,7 +6,7 @@
#include <stdio.h>
#include <string.h>
-#include <telepathy-glib/util.h>
+#include <telepathy-glib/telepathy-glib.h>
int
main (void)
diff --git a/tests/test-text-encode-and-split.c b/tests/test-text-encode-and-split.c
index c68439e..d2c4f72 100644
--- a/tests/test-text-encode-and-split.c
+++ b/tests/test-text-encode-and-split.c
@@ -3,7 +3,7 @@
#include <string.h>
#include <stdio.h>
-#include <telepathy-glib/util.h>
+#include <telepathy-glib/telepathy-glib.h>
#include <idle-text.h>
#include <idle-connection.h>
diff --git a/tools/glib-ginterface-gen.py b/tools/glib-ginterface-gen.py
index 7843977..8fea5df 100644
--- a/tools/glib-ginterface-gen.py
+++ b/tools/glib-ginterface-gen.py
@@ -739,7 +739,7 @@ class Generator(object):
self.h('#include <dbus/dbus-glib.h>')
if self.have_properties(nodes):
- self.h('#include <telepathy-glib/dbus-properties-mixin.h>')
+ self.h('#include <telepathy-glib/telepathy-glib.h>')
self.h('')
self.h('G_BEGIN_DECLS')