quassel-irssi: fix compilation error with new version of irssi
[feed/packages.git] / net / quassel-irssi / patches / 100-Fix-compilation-error-with-new-version-of-irssi.patch
1 From 61aaa345d3924905aa26023b351fb9502a74de63 Mon Sep 17 00:00:00 2001
2 From: Christian Marangi <ansuelsmth@gmail.com>
3 Date: Sun, 5 Nov 2023 20:50:31 +0100
4 Subject: [PATCH 2/2] Fix compilation error with new version of irssi
5
6 Fix compilation error with new version of irssi that changed some
7 functions names.
8
9 Caused by https://github.com/irssi/irssi/pull/1246
10
11 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
12 ---
13 core/quassel-net.c | 10 +++++-----
14 1 file changed, 5 insertions(+), 5 deletions(-)
15
16 --- a/core/quassel-net.c
17 +++ b/core/quassel-net.c
18 @@ -105,8 +105,8 @@ static void sig_connected(Quassel_SERVER
19 }
20
21 r->readtag =
22 - g_input_add(net_sendbuffer_handle(r->handle),
23 - G_INPUT_READ,
24 + i_input_add(net_sendbuffer_handle(r->handle),
25 + I_INPUT_READ,
26 (GInputFunction) quassel_parse_incoming, r);
27
28 quassel_init_packet(net_sendbuffer_handle(r->handle), r->ssl);
29 @@ -166,8 +166,8 @@ static void quassel_net_final_setup(SERV
30 server->handle->handle = handle;
31
32 server->readtag =
33 - g_input_add(handle,
34 - G_INPUT_READ,
35 + i_input_add(handle,
36 + I_INPUT_READ,
37 (GInputFunction) quassel_parse_incoming, server);
38 }
39
40 @@ -185,7 +185,7 @@ static void quassel_net_ssl_callback(SER
41 if (error & 1) {
42 if (server->connect_tag != -1)
43 g_source_remove(server->connect_tag);
44 - server->connect_tag = g_input_add(handle, error == 1 ? G_INPUT_READ : G_INPUT_WRITE,
45 + server->connect_tag = i_input_add(handle, error == 1 ? I_INPUT_READ : I_INPUT_WRITE,
46 (GInputFunction)
47 quassel_net_ssl_callback,
48 server);