]> andersk Git - openssh.git/blobdiff - nchan.h
- (stevesk) OpenSSH CVS update:
[openssh.git] / nchan.h
diff --git a/nchan.h b/nchan.h
index 45e8f87df3c145fc725e7aee1075d0a800401261..366b894ae98b874f35a465d8694103ceae6d20d0 100644 (file)
--- a/nchan.h
+++ b/nchan.h
@@ -9,11 +9,6 @@
  * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *      This product includes software developed by Markus Friedl.
- * 4. The name of the author may not be used to endorse or promote products
- *    derived from this software without specific prior written permission.
  *
  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
@@ -27,7 +22,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-/* RCSID("$Id$"); */
+/* RCSID("$OpenBSD: nchan.h,v 1.9 2000/09/07 20:27:52 deraadt Exp $"); */
 
 #ifndef NCHAN_H
 #define 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);
+
+/* 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;
+
+extern chan_event_fn   *chan_delete_if_full_closed;
 
 void    chan_init_iostates(Channel * c);
+void   chan_init(void);
 #endif
This page took 0.653273 seconds and 4 git commands to generate.