Wireshark
2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
epan
dfilter
dfilter-macro.h
1
/* dfilter-macro.h
2
*
3
* Wireshark - Network traffic analyzer
4
* By Gerald Combs <gerald@wireshark.org>
5
* Copyright 2001 Gerald Combs
6
*
7
* SPDX-License-Identifier: GPL-2.0-or-later
8
*/
9
10
#ifndef _DFILTER_MACRO_H
11
#define _DFILTER_MACRO_H
12
13
#include "ws_symbol_export.h"
14
15
16
#define DFILTER_MACRO_FILENAME "dfilter_macros"
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
/* __cplusplus */
21
22
typedef
struct
_dfilter_macro_t
{
23
gchar* name;
/* the macro id */
24
gchar* text;
/* raw data from file */
25
gboolean usable;
/* macro is usable */
26
gchar** parts;
/* various segments of text between insertion targets */
27
int
* args_pos;
/* what's to be inserted */
28
int
argc;
/* the expected number of arguments */
29
void
* priv;
/* a copy of text that contains every c-string in parts */
30
}
dfilter_macro_t
;
31
32
/* applies all macros to the given text and returns the resulting string or NULL on failure */
33
gchar* dfilter_macro_apply(
const
gchar* text, gchar** error);
34
35
void
dfilter_macro_init(
void
);
36
37
struct
epan_uat
;
38
39
WS_DLL_PUBLIC
40
void
dfilter_macro_get_uat(
struct
epan_uat
**dfmu_ptr_ptr);
41
42
WS_DLL_PUBLIC
43
void
dfilter_macro_build_ftv_cache(
void
* tree_root);
44
45
void
dfilter_macro_cleanup(
void
);
46
47
#ifdef __cplusplus
48
}
49
#endif
/* __cplusplus */
50
51
#endif
/* _DFILTER_MACRO_H */
_dfilter_macro_t
Definition:
dfilter-macro.h:22
epan_uat
Definition:
uat-int.h:39
Generated by
1.8.11