From 4d1fdfade0cfb51e9ff680861e3333bd2b24173a Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Wed, 18 Feb 2009 11:13:23 +0100 Subject: Give file descriptor to callback of hook_fd --- doc/en/dev/plugin_c_api.en.xml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'doc/en/dev') 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); @@ -5401,6 +5401,11 @@ struct t_hook *weechat_hook_fd ( data pointer + + int + fd + file descriptor + @@ -5421,7 +5426,7 @@ struct t_hook *weechat_hook_fd ( Example: int -my_fd_cb (void *data) +my_fd_cb (void *data, int fd) { /* ... */ return WEECHAT_RC_OK; -- cgit v1.2.3