]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - windows/winstuff.h
New piece of Windows infrastructure: winhandl.c takes Plink's
[PuTTY.git] / windows / winstuff.h
index 9ec33de60982d1aaa1657f37671e9248fd300682..5f974dc3f7f10a2d9cdc18d7f6a64604ab02cff7 100644 (file)
@@ -405,6 +405,21 @@ void EnableSizeTip(int bEnable);
 struct unicode_data;
 void init_ucs(Config *, struct unicode_data *);
 
+/*
+ * Exports from winhandl.c.
+ */
+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);
+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);
+
 /*
  * pageantc.c needs to schedule callbacks for asynchronous agent
  * requests. This has to be done differently in GUI and console, so