mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 03:52:49 -05:00
Added uxsel.c, into which I've moved those parts of the uxnet.c
functionality that deal with selectable fds in general. The idea is that pty.c will stop passing its fd straight to pterm.c and hand it to this module instead, and pterm.c will start requesting a general list of fds from this module rather than expecting a single one from pty.c, with the ultimate aim of pterm.c being able to form the basis of a Unix PuTTY as well as pterm proper. [originally from svn r3015]
This commit is contained in:
10
unix/unix.h
10
unix/unix.h
@ -61,10 +61,14 @@ char *x_get_default(const char *key);
|
||||
/* Things uxstore.c provides to pterm.c */
|
||||
void provide_xrm_string(char *string);
|
||||
|
||||
/* Things uxnet.c provides to the front end */
|
||||
/* The interface used by uxsel.c */
|
||||
void uxsel_init(void);
|
||||
typedef int (*uxsel_callback_fn)(int fd, int event);
|
||||
void uxsel_set(int fd, int rwx, uxsel_callback_fn callback);
|
||||
void uxsel_del(int fd);
|
||||
int select_result(int fd, int event);
|
||||
int first_socket(int *state, int *rwx);
|
||||
int next_socket(int *state, int *rwx);
|
||||
int first_fd(int *state, int *rwx);
|
||||
int next_fd(int *state, int *rwx);
|
||||
|
||||
/* uxcfg.c */
|
||||
struct controlbox;
|
||||
|
Reference in New Issue
Block a user