/** @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"

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

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);

WS_DLL_PUBLIC
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);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* STTYPE_TEST_H */
