X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/158cb9b1b46a7b1a7f8c01171f5b32d6526a4367..7374c7790ee32f36855e4257eb15d2fe43e277ea:/windows/winstuff.h?ds=inline diff --git a/windows/winstuff.h b/windows/winstuff.h index 9ec33de6..9244c75c 100644 --- a/windows/winstuff.h +++ b/windows/winstuff.h @@ -406,6 +406,26 @@ struct unicode_data; void init_ucs(Config *, struct unicode_data *); /* + * Exports from winhandl.c. + */ +#define HANDLE_FLAG_OVERLAPPED 1 +#define HANDLE_FLAG_IGNOREEOF 2 +struct handle; +typedef int (*handle_inputfn_t)(struct handle *h, void *data, int len); +typedef void (*handle_outputfn_t)(struct handle *h, int new_backlog); +struct handle *handle_input_new(HANDLE handle, handle_inputfn_t gotdata, + void *privdata, int flags); +struct handle *handle_output_new(HANDLE handle, handle_outputfn_t sentdata, + void *privdata, int flags); +int handle_write(struct handle *h, const void *data, int len); +HANDLE *handle_get_events(int *nevents); +void handle_free(struct handle *h); +void handle_got_event(HANDLE event); +void handle_unthrottle(struct handle *h, int backlog); +int handle_backlog(struct handle *h); +void *handle_get_privdata(struct handle *h); + +/* * pageantc.c needs to schedule callbacks for asynchronous agent * requests. This has to be done differently in GUI and console, so * there's an exported function used for the purpose. @@ -417,4 +437,9 @@ void agent_schedule_callback(void (*callback)(void *, void *, int), void *callback_ctx, void *data, int len); #define FLAG_SYNCAGENT 0x1000 +/* + * Exports from winser.c. + */ +extern Backend serial_backend; + #endif