summaryrefslogtreecommitdiffstats
path: root/epan/dfilter/sttype-op.h
blob: ca999811fae9984c80930cb0f180648d8a99889e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/** @file
 *
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
 * Copyright 2001 Gerald Combs
 *
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef STTYPE_TEST_H
#define STTYPE_TEST_H

#include "syntax-tree.h"

void
sttype_oper_set1(stnode_t *node, stnode_op_t op, stnode_t *val1);

void
sttype_oper_set2(stnode_t *node, stnode_op_t op, stnode_t *val1, stnode_t *val2);

void
sttype_oper_set1_args(stnode_t *node, stnode_t *val1);

void
sttype_oper_set2_args(stnode_t *node, stnode_t *val1, stnode_t *val2);

void
sttype_oper_set_op(stnode_t *node, stnode_op_t op);

stnode_op_t
sttype_oper_get_op(stnode_t *node);

void
sttype_oper_get(stnode_t *node, stnode_op_t *p_op, stnode_t **p_val1, stnode_t **p_val2);

void
sttype_test_set_match(stnode_t *node, stmatch_t how);

stmatch_t
sttype_test_get_match(stnode_t *node);

#endif