mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 19:31:14 -03:00
Add callbacks that get invoked before the next call to select(), which will allow for a nice fix to https://github.com/fish-shell/fish-shell/issues/608. Eliminate the poll handler, and replace it with this mechanism.
This commit is contained in:
@@ -30,9 +30,6 @@ enum
|
||||
*/
|
||||
void input_common_init(int (*ih)());
|
||||
|
||||
/* Sets a callback to be invoked every time a byte is read */
|
||||
void input_common_set_poll_callback(void (*handler)(void));
|
||||
|
||||
/**
|
||||
Free memory used by the library
|
||||
*/
|
||||
@@ -56,4 +53,9 @@ wchar_t input_common_readch(int timed);
|
||||
*/
|
||||
void input_common_unreadch(wint_t ch);
|
||||
|
||||
/** Adds a callback to be invoked at the next turn of the "event loop." The callback function will be invoked and passed arg. */
|
||||
void input_common_add_callback(void (*callback)(void *), void *arg);
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user