mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 07:16:37 +02:00
Give file descriptor to callback of hook_fd
This commit is contained in:
@@ -326,13 +326,14 @@ gui_keyboard_flush ()
|
||||
*/
|
||||
|
||||
int
|
||||
gui_keyboard_read_cb (void *data)
|
||||
gui_keyboard_read_cb (void *data, int fd)
|
||||
{
|
||||
int ret, i, accept_paste, cancel_paste, text_added_to_buffer, paste_lines;
|
||||
unsigned char buffer[4096];
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
(void) fd;
|
||||
|
||||
accept_paste = 0;
|
||||
cancel_paste = 0;
|
||||
|
||||
@@ -66,7 +66,7 @@ extern void gui_chat_calculate_line_diff (struct t_gui_window *window,
|
||||
|
||||
/* keyboard functions */
|
||||
extern void gui_keyboard_default_bindings ();
|
||||
extern int gui_keyboard_read_cb (void *data);
|
||||
extern int gui_keyboard_read_cb (void *data, int fd);
|
||||
|
||||
/* window functions */
|
||||
extern void gui_window_redraw_buffer (struct t_gui_buffer *buffer);
|
||||
|
||||
Reference in New Issue
Block a user