From 7e1128029f18cf7927f66dc7d00be001bdc0f1d5 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Sat, 29 Mar 2008 10:25:15 +0000 Subject: [PATCH] Move net_disconnect_later declaration from network.h to net-disconnect.h. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4783 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/net-disconnect.h | 4 ++++ src/core/network.h | 3 --- src/core/servers.c | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/core/net-disconnect.h b/src/core/net-disconnect.h index a1ca0643..37a46846 100644 --- a/src/core/net-disconnect.h +++ b/src/core/net-disconnect.h @@ -1,6 +1,10 @@ #ifndef __NET_DISCONNECT_H #define __NET_DISCONNECT_H +/* Try to let the other side close the connection, if it still isn't + disconnected after certain amount of time, close it ourself */ +void net_disconnect_later(GIOChannel *handle); + void net_disconnect_init(void); void net_disconnect_deinit(void); diff --git a/src/core/network.h b/src/core/network.h index a3a4eb41..65505eae 100644 --- a/src/core/network.h +++ b/src/core/network.h @@ -55,9 +55,6 @@ GIOChannel *net_connect_ip(IPADDR *ip, int port, IPADDR *my_ip); GIOChannel *net_connect_unix(const char *path); /* Disconnect socket */ void net_disconnect(GIOChannel *handle); -/* Try to let the other side close the connection, if it still isn't - disconnected after certain amount of time, close it ourself */ -void net_disconnect_later(GIOChannel *handle); /* Listen for connections on a socket */ GIOChannel *net_listen(IPADDR *my_ip, int *port); diff --git a/src/core/servers.c b/src/core/servers.c index 9b9e8263..95748081 100644 --- a/src/core/servers.c +++ b/src/core/servers.c @@ -22,6 +22,7 @@ #include "signals.h" #include "commands.h" #include "line-split.h" +#include "net-disconnect.h" #include "net-nonblock.h" #include "net-sendbuffer.h" #include "misc.h"