Commit ce4a070d2f70deed605bf7f687c4e4199bc2b5b8
1 parent
12d6213e
Exists in
master
and in
5 other branches
Incluindo sugestão de novas funções para inclusão/remoção de sockets para facili…
…tar implementação com a libwebsocket ou libevents
Showing
1 changed file
with
14 additions
and
0 deletions
Show diff stats
src/include/lib3270.h
| ... | ... | @@ -655,6 +655,20 @@ |
| 655 | 655 | */ |
| 656 | 656 | LIB3270_EXPORT int lib3270_toggle(H3270 *h, LIB3270_TOGGLE ix); |
| 657 | 657 | |
| 658 | + /** | |
| 659 | + * @brief IO flags. | |
| 660 | + * | |
| 661 | + */ | |
| 662 | + typedef enum _lib3270_io_event { | |
| 663 | + LIB3270_IO_FLAG_READ = 0x01, | |
| 664 | + LIB3270_IO_FLAG_WRITE = 0x02, | |
| 665 | + LIB3270_IO_FLAG_EXCEPTION = 0x04 | |
| 666 | + } LIB3270_IO_FLAG; | |
| 667 | + | |
| 668 | + void * lib3270_add_poll_fd(H3270 *session, int fd, LIB3270_IO_FLAG flag, void(*proc)(H3270 *, LIB3270_IO_FLAG, void *), void *userdata ); | |
| 669 | + void lib3270_remove_poll_fd(int fd); | |
| 670 | + void lib3270_update_poll_fd(int fd, LIB3270_IO_FLAG flag); | |
| 671 | + | |
| 658 | 672 | /** Callback table |
| 659 | 673 | * |
| 660 | 674 | * Structure with GUI unblocking I/O calls, used to replace the lib3270´s internal ones. | ... | ... |