diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-05-05 04:09:47 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-05-05 04:09:47 +0000 |
commit | 99c73b377a45d3e008e73cca9073dc006e1cfaae (patch) | |
tree | b2b33909e71916ba176521d28663d90fc8b40fc4 /nchan.h | |
parent | c8cb8c0405db1f83bd8f97224f69db6a828cc94f (diff) |
- markus@cvs.openbsd.org 2001/05/04 23:47:34
[channels.c channels.h clientloop.c nchan.c nchan.h serverloop.c ssh.c]
move to Channel **channels (instead of Channel *channels), fixes realloc
problems. channel_new now returns a Channel *, favour Channel * over
channel id. remove old channel_allocate interface.
Diffstat (limited to 'nchan.h')
-rw-r--r-- | nchan.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -22,7 +22,7 @@ | |||
22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | /* RCSID("$OpenBSD: nchan.h,v 1.10 2001/02/28 08:54:55 markus Exp $"); */ | 25 | /* RCSID("$OpenBSD: nchan.h,v 1.11 2001/05/04 23:47:34 markus Exp $"); */ |
26 | 26 | ||
27 | #ifndef NCHAN_H | 27 | #ifndef NCHAN_H |
28 | #define NCHAN_H | 28 | #define NCHAN_H |
@@ -69,6 +69,7 @@ | |||
69 | 69 | ||
70 | #define CHAN_CLOSE_SENT 0x01 | 70 | #define CHAN_CLOSE_SENT 0x01 |
71 | #define CHAN_CLOSE_RCVD 0x02 | 71 | #define CHAN_CLOSE_RCVD 0x02 |
72 | #define CHAN_DEAD 0x04 | ||
72 | 73 | ||
73 | 74 | ||
74 | /* Channel EVENTS */ | 75 | /* Channel EVENTS */ |
@@ -85,6 +86,7 @@ extern chan_event_fn *chan_write_failed; | |||
85 | extern chan_event_fn *chan_obuf_empty; | 86 | extern chan_event_fn *chan_obuf_empty; |
86 | 87 | ||
87 | int chan_is_dead(Channel * c); | 88 | int chan_is_dead(Channel * c); |
89 | void chan_mark_dead(Channel * c); | ||
88 | 90 | ||
89 | void chan_init_iostates(Channel * c); | 91 | void chan_init_iostates(Channel * c); |
90 | void chan_init(void); | 92 | void chan_init(void); |