X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/0e03ceff4e371364f17c49ea370b6475cb0b7230..45ef7ce3a7bb275f8550a07cc752fa272fe07eac:/windows/winstuff.h diff --git a/windows/winstuff.h b/windows/winstuff.h index afc8dde2..4436972a 100644 --- a/windows/winstuff.h +++ b/windows/winstuff.h @@ -373,7 +373,7 @@ void dp_cleanup(struct dlgparam *dp); * Exports from wincfg.c. */ void win_setup_config_box(struct controlbox *b, HWND *hwndp, int has_help, - int midsession); + int midsession, int protocol); /* * Exports from windlg.c. @@ -408,13 +408,16 @@ void init_ucs(Config *, struct unicode_data *); /* * Exports from winhandl.c. */ +#define HANDLE_FLAG_OVERLAPPED 1 +#define HANDLE_FLAG_IGNOREEOF 2 +#define HANDLE_FLAG_UNITBUFFER 4 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); + void *privdata, int flags); struct handle *handle_output_new(HANDLE handle, handle_outputfn_t sentdata, - void *privdata); + 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); @@ -435,4 +438,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