c->show_pool = lp_new_default(c->pool);
c->rx_buf = mb_alloc(c->pool, CLI_RX_BUF_SIZE);
- c->config = cf;
- config_add_obstacle(cf->config);
if (cf->restricted)
c->restricted = 1;
c->cleanup(c);
if (c == cmd_reconfig_stored_cli)
cmd_reconfig_stored_cli = NULL;
- config_del_obstacle(c->config->config);
rfree(c->pool);
}
typedef struct cli {
node n; /* Node in list of all log hooks */
- struct cli_config *config; /* Configuration of the appropriate cli */
pool *pool;
void *priv; /* Private to sysdep layer */
byte *rx_buf, *rx_pos; /* sysdep */