summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-03-29 10:25:15 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-03-29 10:25:15 +0000
commit7e1128029f18cf7927f66dc7d00be001bdc0f1d5 (patch)
tree76e673bfab829009587efbb1598590945ab47f5c
parentd198fa0abb4d75a73a85760d9f122553e8364da6 (diff)
downloadirssi-7e1128029f18cf7927f66dc7d00be001bdc0f1d5.zip
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
-rw-r--r--src/core/net-disconnect.h4
-rw-r--r--src/core/network.h3
-rw-r--r--src/core/servers.c1
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"