]> andersk Git - openssh.git/blobdiff - nchan.h
- OpenBSD CVS update:
[openssh.git] / nchan.h
diff --git a/nchan.h b/nchan.h
index 064b99f103c42b29382ee2d2fb148e9a1df02e33..9227442c544af6a718be2b4dfc5935b42528492b 100644 (file)
--- a/nchan.h
+++ b/nchan.h
 #define CHAN_OUTPUT_WAIT_IEOF          0x40
 #define CHAN_OUTPUT_CLOSED             0x80
 
-/* EVENTS for the input state */
-void    chan_rcvd_oclose(Channel * c);
-void    chan_read_failed(Channel * c);
-void    chan_ibuf_empty(Channel * c);
+#define CHAN_CLOSE_SENT                        0x01
+#define CHAN_CLOSE_RCVD                        0x02
 
-/* EVENTS for the output state */
-void    chan_rcvd_ieof(Channel * c);
-void    chan_write_failed(Channel * c);
-void    chan_obuf_empty(Channel * c);
 
-void    chan_init_iostates(Channel * c);
+/* Channel EVENTS */
+typedef void    chan_event_fn(Channel * c);
+
+/* for the input state */
+extern chan_event_fn   *chan_rcvd_oclose;
+extern chan_event_fn   *chan_read_failed;
+extern chan_event_fn   *chan_ibuf_empty;
+
+/* for the output state */
+extern chan_event_fn   *chan_rcvd_ieof;
+extern chan_event_fn   *chan_write_failed;
+extern chan_event_fn   *chan_obuf_empty;
 
-void   chan_delete_if_full_closed(Channel *c);
+extern chan_event_fn   *chan_delete_if_full_closed;
+
+void    chan_init_iostates(Channel * c);
+void   chan_init(void);
 #endif
This page took 0.037994 seconds and 4 git commands to generate.