summaryrefslogtreecommitdiffstats
path: root/src/core/net-disconnect.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:18:39 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 20:18:39 +0000
commitfff5217f02d91268ce90c8c05665602c059faaef (patch)
tree2ba24d32dc96eafe7ed0a85269548e76796d849d /src/core/net-disconnect.h
parentInitial commit. (diff)
downloadirssi-fff5217f02d91268ce90c8c05665602c059faaef.tar.xz
irssi-fff5217f02d91268ce90c8c05665602c059faaef.zip
Adding upstream version 1.4.5.upstream/1.4.5upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/core/net-disconnect.h')
-rw-r--r--src/core/net-disconnect.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/net-disconnect.h b/src/core/net-disconnect.h
new file mode 100644
index 0000000..78b03c1
--- /dev/null
+++ b/src/core/net-disconnect.h
@@ -0,0 +1,11 @@
+#ifndef IRSSI_CORE_NET_DISCONNECT_H
+#define IRSSI_CORE_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);
+
+#endif