summaryrefslogtreecommitdiff
path: root/src/idle-connection.c
diff options
context:
space:
mode:
authorOlli Salli <olli.salli@collabora.co.uk>2008-01-15 20:53:29 +0000
committerOlli Salli <olli.salli@collabora.co.uk>2008-01-15 20:53:29 +0000
commitd6884fde268175fca9afccfad0c36435be5a8bd9 (patch)
tree0f35c08eb151bcc32b69dc51d1a5f724e6431654 /src/idle-connection.c
parent3c20851336897e76c48a76e6681dc1d64e1c03ac (diff)
Clean up includes
Diffstat (limited to 'src/idle-connection.c')
-rw-r--r--src/idle-connection.c56
1 files changed, 18 insertions, 38 deletions
diff --git a/src/idle-connection.c b/src/idle-connection.c
index a79bd54..286665b 100644
--- a/src/idle-connection.c
+++ b/src/idle-connection.c
@@ -18,56 +18,34 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "idle-connection.h"
+
#include <config.h>
-#define DBUS_API_SUBJECT_TO_CHANGE
+/* strnlen */
+#define __USE_GNU
+#include <string.h>
+#include <time.h>
+#define DBUS_API_SUBJECT_TO_CHANGE
#include <dbus/dbus-glib.h>
-#include <dbus/dbus-glib-lowlevel.h>
-#include <telepathy-glib/intset.h>
#include <telepathy-glib/enums.h>
-#include <telepathy-glib/interfaces.h>
#include <telepathy-glib/errors.h>
-#include <telepathy-glib/dbus.h>
+#include <telepathy-glib/interfaces.h>
#include <telepathy-glib/svc-connection.h>
#include <telepathy-glib/channel-factory-iface.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <time.h>
-#include <errno.h>
-
-/* strnlen */
-#define __USE_GNU
-#include <string.h>
-#include <ctype.h>
-
-#include <unistd.h>
-#include <pthread.h>
-#include <sys/poll.h>
-#include <sys/time.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
-
-#include "idle-handles.h"
-#include "idle-muc-channel.h"
-
+#define IDLE_DEBUG_FLAG IDLE_DEBUG_CONNECTION
#include "idle-ctcp.h"
+#include "idle-debug.h"
+#include "idle-handles.h"
+#include "idle-im-factory.h"
+#include "idle-muc-factory.h"
#include "idle-parser.h"
#include "idle-server-connection.h"
-#include "idle-ssl-server-connection.h"
#include "idle-server-connection-iface.h"
-#include "idle-im-factory.h"
-#include "idle-muc-factory.h"
-
-#include "idle-connection.h"
-
-#define IDLE_DEBUG_FLAG IDLE_DEBUG_CONNECTION
-#include "idle-debug.h"
+#include "idle-ssl-server-connection.h"
#include "extensions/extensions.h" /* Renaming */
@@ -195,6 +173,8 @@ static void irc_handshakes(IdleConnection *conn);
static void send_quit_request(IdleConnection *conn);
static void connection_connect_cb(IdleConnection *conn, gboolean success, TpConnectionStatusReason fail_reason);
static void connection_disconnect_cb(IdleConnection *conn, TpConnectionStatusReason reason);
+static gboolean idle_connection_hton(IdleConnection *obj, const gchar *input, gchar **output, GError **_error);
+static void idle_connection_ntoh(IdleConnection *obj, const gchar *input, gchar **output);
static void idle_connection_init (IdleConnection *obj) {
IdleConnectionPrivate *priv = IDLE_CONNECTION_GET_PRIVATE (obj);
@@ -973,7 +953,7 @@ static void idle_connection_set_aliases(TpSvcConnectionInterfaceAliasing *iface,
tp_svc_connection_interface_aliasing_return_from_set_aliases(context);
}
-gboolean idle_connection_hton(IdleConnection *obj, const gchar *input, gchar **output, GError **_error) {
+static gboolean idle_connection_hton(IdleConnection *obj, const gchar *input, gchar **output, GError **_error) {
IdleConnectionPrivate *priv = IDLE_CONNECTION_GET_PRIVATE(obj);
GError *error = NULL;
gsize bytes_written;
@@ -998,7 +978,7 @@ gboolean idle_connection_hton(IdleConnection *obj, const gchar *input, gchar **o
return TRUE;
}
-void idle_connection_ntoh(IdleConnection *obj, const gchar *input, gchar **output) {
+static void idle_connection_ntoh(IdleConnection *obj, const gchar *input, gchar **output) {
IdleConnectionPrivate *priv = IDLE_CONNECTION_GET_PRIVATE(obj);
GError *error = NULL;
gsize bytes_written;