mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-15 07:38:43 +00:00
f93315c417
This is part of the multithreading journey. The parser and lexer were using loads of global variables and all of these are now packed into struct cf_context and others. Note that the config API has changed: * cfg_alloc[zu]?(size) is now cf_alloc[zu]?(ctx, size) * cf_error(msg, ...) is now cf_error(ctx, msg, ...) * config_parse() and cli_parse() are now called differently * there is a brand new CF_CTX section in *.Y files which participates in struct cf_context construction
25 lines
496 B
C
25 lines
496 B
C
/*
|
|
* BIRD Internet Routing Daemon -- CLI Commands Which Don't Fit Anywhere Else
|
|
*
|
|
* (c) 2000 Martin Mares <mj@ucw.cz>
|
|
*
|
|
* Can be freely distributed and used under the terms of the GNU GPL.
|
|
*/
|
|
|
|
#ifndef _NEST_CMDS_H_
|
|
#define _NEST_CMDS_H_
|
|
|
|
struct sym_show_data {
|
|
int type; /* Symbols type to show */
|
|
struct symbol *sym;
|
|
};
|
|
|
|
struct f_inst;
|
|
|
|
void cmd_show_status(void);
|
|
void cmd_show_symbols(struct sym_show_data *sym);
|
|
void cmd_show_memory(void);
|
|
void cmd_eval(struct f_inst *expr);
|
|
|
|
#endif
|