Commit 60a777ca authored by Niels Möller's avatar Niels Möller
Browse files

(make_channel_table): New argument write, saying

where to output ssh messages. For now, initialize the exception
handler to NULL.

Rev: src/channel.c:1.125.2.2
Rev: src/channel.h:1.77.2.2
parent ee242ca6
......@@ -276,10 +276,13 @@ make_exc_finish_channel_handler(struct channel_table *table,
#define MAX_CHANNELS (1L<<17)
struct channel_table *
make_channel_table(void)
make_channel_table(struct abstract_write *write
/* , struct exception_handler *e */)
{
NEW(channel_table, table);
table->write = write;
table->e = NULL; /* FIXME: XXX */
table->channels = lsh_space_alloc(sizeof(struct ssh_channel *)
* INITIAL_CHANNELS);
table->in_use = lsh_space_alloc(INITIAL_CHANNELS);
......
......@@ -352,11 +352,16 @@ struct channel_request name = \
\
static void do_##name
void init_channel(struct ssh_channel *channel);
void
init_channel(struct ssh_channel *channel);
struct channel_table *
make_channel_table(struct abstract_write *write);
struct channel_table *make_channel_table(void);
int alloc_channel(struct channel_table *table);
void dealloc_channel(struct channel_table *table, int i);
int
alloc_channel(struct channel_table *table);
void
dealloc_channel(struct channel_table *table, int i);
void
use_channel(struct channel_table *table,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment