27#define DF_ERROR_GENERIC -1
28#define DF_ERROR_UNEXPECTED_END -2
37df_error_new(
int code,
char *msg,
df_loc_t *loc);
40df_error_new_printf(
int code,
df_loc_t *loc,
const char *fmt, ...)
43#define df_error_new_msg(msg) \
44 df_error_new_printf(DF_ERROR_GENERIC, NULL, "%s", msg)
47df_error_new_vprintf(
int code,
df_loc_t *loc,
const char *fmt, va_list ap);
64dfilter_expand(
const char *expr,
df_error_t **err_ret);
67#define DF_SAVE_TREE (1U << 0)
69#define DF_EXPAND_MACROS (1U << 1)
71#define DF_OPTIMIZE (1U << 2)
73#define DF_DEBUG_FLEX (1U << 3)
75#define DF_DEBUG_LEMON (1U << 4)
78#define DF_RETURN_VALUES (1U << 5)
96dfilter_compile_full(
const char *text,
dfilter_t **dfp,
100#define dfilter_compile(text, dfp, errp) \
101 dfilter_compile_full(text, dfp, errp, \
102 DF_EXPAND_MACROS|DF_OPTIMIZE, \
154dfilter_has_interesting_fields(
const dfilter_t *df);
163dfilter_interested_in_field(
const dfilter_t *df,
int hfid);
173dfilter_interested_in_proto(
const dfilter_t *df,
int proto_id);
177dfilter_requires_columns(
const dfilter_t *df);
187#define DF_DUMP_REFERENCES (1U << 0)
188#define DF_DUMP_SHOW_FTYPE (1U << 1)
193dfilter_dump(FILE *fp,
dfilter_t *df, uint16_t flags);
208dfilter_log_full(
const char *domain,
enum ws_log_level level,
209 const char *file,
long line,
const char *func,
213#define dfilter_log(dfcode, msg) \
214 dfilter_log_full(LOG_DOMAIN_DFILTER, LOG_LEVEL_NOISY, \
215 __FILE__, __LINE__, __func__, \
218#define dfilter_log(dfcode, msg) (void)0
221#define DFILTER_DEBUG_HERE(dfcode) \
222 dfilter_log_full(LOG_DOMAIN_DFILTER, LOG_LEVEL_ECHO, \
223 __FILE__, __LINE__, __func__, \
WS_DLL_PUBLIC struct stnode * dfilter_get_syntax_tree(const char *text)
Definition dfilter.c:649
Definition dfilter-loc.h:16
Definition dfilter-int.h:35
Definition epan_dissect.h:28
Definition syntax-tree.h:78