mirror of
https://github.com/irssi/irssi.git
synced 2026-08-21 17:42:49 +02:00
Make irssi_ssl_{seek,close} call giochan->funcs->io_{seek,close}
rather than g_io_channel_{seek,close}.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4791 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
23459ac90d
commit
f34b9bba3b
1 changed files with 3 additions and 3 deletions
|
|
@ -156,15 +156,15 @@ static GIOStatus irssi_ssl_write(GIOChannel *handle, const gchar *buf, gsize len
|
||||||
static GIOStatus irssi_ssl_seek(GIOChannel *handle, gint64 offset, GSeekType type, GError **gerr)
|
static GIOStatus irssi_ssl_seek(GIOChannel *handle, gint64 offset, GSeekType type, GError **gerr)
|
||||||
{
|
{
|
||||||
GIOSSLChannel *chan = (GIOSSLChannel *)handle;
|
GIOSSLChannel *chan = (GIOSSLChannel *)handle;
|
||||||
return g_io_channel_seek_position(chan->giochan, offset, type, NULL);
|
|
||||||
|
return chan->giochan->funcs->io_seek(handle, offset, type, gerr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GIOStatus irssi_ssl_close(GIOChannel *handle, GError **gerr)
|
static GIOStatus irssi_ssl_close(GIOChannel *handle, GError **gerr)
|
||||||
{
|
{
|
||||||
GIOSSLChannel *chan = (GIOSSLChannel *)handle;
|
GIOSSLChannel *chan = (GIOSSLChannel *)handle;
|
||||||
g_io_channel_close(chan->giochan);
|
|
||||||
|
|
||||||
return G_IO_STATUS_NORMAL;
|
return chan->giochan->funcs->io_close(handle, gerr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GSource *irssi_ssl_create_watch(GIOChannel *handle, GIOCondition cond)
|
static GSource *irssi_ssl_create_watch(GIOChannel *handle, GIOCondition cond)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue