X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/34292b1daab0fcd6ce02627497117d01aaa39a19..c969e831c5977919d3e1c094acc86e194c50d17c:/windows/winstuff.h diff --git a/windows/winstuff.h b/windows/winstuff.h index 5f974dc3..afc8dde2 100644 --- a/windows/winstuff.h +++ b/windows/winstuff.h @@ -411,14 +411,17 @@ void init_ucs(Config *, struct unicode_data *); 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); -struct handle *handle_output_new(HANDLE handle, handle_outputfn_t sentdata); +struct handle *handle_input_new(HANDLE handle, handle_inputfn_t gotdata, + void *privdata); +struct handle *handle_output_new(HANDLE handle, handle_outputfn_t sentdata, + void *privdata); 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