summaryrefslogtreecommitdiff
path: root/doc/en
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-02-18 11:13:23 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-02-18 11:13:23 +0100
commit4d1fdfade0cfb51e9ff680861e3333bd2b24173a (patch)
tree39ce7b5d276134eb5de1625b0c4206d4c09d709e /doc/en
parente263a847da839253e346fa3843aaf7cb90199f01 (diff)
downloadweechat-4d1fdfade0cfb51e9ff680861e3333bd2b24173a.zip
Give file descriptor to callback of hook_fd
Diffstat (limited to 'doc/en')
-rw-r--r--doc/en/dev/plugin_c_api.en.xml9
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/en/dev/plugin_c_api.en.xml b/doc/en/dev/plugin_c_api.en.xml
index 21a88e3de..22651faf8 100644
--- a/doc/en/dev/plugin_c_api.en.xml
+++ b/doc/en/dev/plugin_c_api.en.xml
@@ -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;