telepathy-haze: All .c files: include corresponding header first, after config.h

Simon McVittie smcv at kemper.freedesktop.org
Tue Sep 17 05:20:44 PDT 2013


Module: telepathy-haze
Branch: master
Commit: e734553ecfea1a78c30e378dd0189a98659465a6
URL:    http://cgit.freedesktop.org/telepathy/telepathy-haze/commit/?id=e734553ecfea1a78c30e378dd0189a98659465a6

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Mon Sep 16 19:38:35 2013 +0100

All .c files: include corresponding header first, after config.h

This verifies self-containedness. It turns out contact-list was not
actually self-contained: include <libpurple/account.h> to fix that.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69272
Reviewed-by: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>

---

 src/connection-manager.c |    2 +-
 src/contact-list.c       |    2 +-
 src/contact-list.h       |    2 ++
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/connection-manager.c b/src/connection-manager.c
index 9bf3f2a..58c802d 100644
--- a/src/connection-manager.c
+++ b/src/connection-manager.c
@@ -20,6 +20,7 @@
  */
 
 #include <config.h>
+#include "connection-manager.h"
 
 #include <string.h>
 
@@ -31,7 +32,6 @@
 
 #include <telepathy-glib/telepathy-glib.h>
 
-#include "connection-manager.h"
 #include "debug.h"
 
 G_DEFINE_TYPE(HazeConnectionManager,
diff --git a/src/contact-list.c b/src/contact-list.c
index f9d6cc2..107f9e9 100644
--- a/src/contact-list.c
+++ b/src/contact-list.c
@@ -20,13 +20,13 @@
  */
 
 #include <config.h>
+#include "contact-list.h"
 
 #include <string.h>
 
 #include <telepathy-glib/telepathy-glib.h>
 
 #include "connection.h"
-#include "contact-list.h"
 #include "debug.h"
 
 typedef struct _PublishRequestData PublishRequestData;
diff --git a/src/contact-list.h b/src/contact-list.h
index e8bcb77..647a40d 100644
--- a/src/contact-list.h
+++ b/src/contact-list.h
@@ -22,6 +22,8 @@
 
 #include <glib-object.h>
 
+#include <libpurple/account.h>
+
 #include <telepathy-glib/telepathy-glib.h>
 
 G_BEGIN_DECLS



More information about the telepathy-commits mailing list