1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 01:03:14 +02:00

Give file descriptor to callback of hook_fd

This commit is contained in:
Sebastien Helleu
2009-02-18 11:13:23 +01:00
parent e263a847da
commit 4d1fdfade0
23 changed files with 80 additions and 36 deletions
+7 -2
View File
@@ -5349,7 +5349,7 @@ struct t_hook *weechat_hook_fd (
int flag_read,
int flag_write,
int flag_exception,
int (*callback)(void *data),
int (*callback)(void *data, int fd),
void *callback_data);
</programlisting>
</para>
@@ -5401,6 +5401,11 @@ struct t_hook *weechat_hook_fd (
<entry>data</entry>
<entry>pointer</entry>
</row>
<row>
<entry>int</entry>
<entry>fd</entry>
<entry>file descriptor</entry>
</row>
</tbody>
</tgroup>
</informaltable>
@@ -5421,7 +5426,7 @@ struct t_hook *weechat_hook_fd (
Example:
<screen>
int
my_fd_cb (void *data)
my_fd_cb (void *data, int fd)
{
/* ... */
return WEECHAT_RC_OK;