diff options
author | Maria Matejka <mq@ucw.cz> | 2019-02-26 16:44:24 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2019-02-26 16:44:24 +0100 |
commit | f249d0b84c840242a084966999a1d228c603b431 (patch) | |
tree | 7e366d772a68306b20c8c71e34febc747d9a8fe5 /conf/conf.h | |
parent | 0d12aa48363802e751d3b9a4afd6eb090592d7a3 (diff) |
Filters: comparison of functions and filters caching
Diffstat (limited to 'conf/conf.h')
-rw-r--r-- | conf/conf.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/conf/conf.h b/conf/conf.h index acb3413b..f14c0e21 100644 --- a/conf/conf.h +++ b/conf/conf.h @@ -24,6 +24,7 @@ struct config { list tables; /* Configured routing tables (struct rtable_config) */ list logfiles; /* Configured log files (sysdep) */ list tests; /* Configured unit tests (f_bt_test_suite) */ + list symbols; /* Configured symbols in config order */ int mrtdump_file; /* Configured MRTDump file (sysdep, fd in unix) */ char *syslog_name; /* Name used for syslog (NULL -> no syslog) */ @@ -103,6 +104,7 @@ void cfg_copy_list(list *dest, list *src, unsigned node_size); extern int (*cf_read_hook)(byte *buf, uint max, int fd); struct symbol { + node n; /* In list of symbols in config */ struct symbol *next; struct sym_scope *scope; int class; /* SYM_* */ @@ -167,7 +169,7 @@ int cf_lex(void); void cf_lex_init(int is_cli, struct config *c); void cf_lex_unwind(void); -struct symbol *cf_find_symbol(struct config *cfg, const byte *c); +struct symbol *cf_find_symbol(const struct config *cfg, const byte *c); struct symbol *cf_get_symbol(const byte *c); struct symbol *cf_default_name(char *template, int *counter); |