Wireshark
4.3.0
The Wireshark network protocol analyzer
epan
dfilter
dfilter-macro.h
Go to the documentation of this file.
1
10
#ifndef _DFILTER_MACRO_H
11
#define _DFILTER_MACRO_H
12
13
#include <wireshark.h>
14
#include "
dfilter.h
"
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
char
* name;
/* the macro id */
24
char
* text;
/* raw data from file */
25
bool
usable;
/* macro is usable */
26
char
** 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
char
* dfilter_macro_apply(
const
char
* text,
df_error_t
** 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
void
dfilter_macro_cleanup(
void
);
43
44
#ifdef __cplusplus
45
}
46
#endif
/* __cplusplus */
47
48
#endif
/* _DFILTER_MACRO_H */
dfilter.h
_dfilter_macro_t
Definition:
dfilter-macro.h:22
df_error_t
Definition:
dfilter.h:30
epan_uat
Definition:
uat-int.h:38
Generated by
1.9.1