2001-02-01 20:31:21 +00:00
|
|
|
/*
|
2004-07-18 00:24:25 +00:00
|
|
|
* $Id$
|
2001-02-01 20:31:21 +00:00
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
2008-01-08 22:54:51 +00:00
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2001-02-01 20:31:21 +00:00
|
|
|
* Copyright 2001 Gerald Combs
|
|
|
|
*
|
2002-08-28 20:41:00 +00:00
|
|
|
*
|
2001-02-01 20:31:21 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2002-08-28 20:41:00 +00:00
|
|
|
*
|
2001-02-01 20:31:21 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2002-08-28 20:41:00 +00:00
|
|
|
*
|
2001-02-01 20:31:21 +00:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2012-06-28 22:56:06 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2001-02-01 20:31:21 +00:00
|
|
|
*/
|
|
|
|
|
2001-02-01 20:21:25 +00:00
|
|
|
#ifndef STTYPE_TEST_H
|
|
|
|
#define STTYPE_TEST_H
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
TEST_OP_UNINITIALIZED,
|
|
|
|
TEST_OP_EXISTS,
|
|
|
|
TEST_OP_NOT,
|
|
|
|
TEST_OP_AND,
|
|
|
|
TEST_OP_OR,
|
|
|
|
TEST_OP_EQ,
|
|
|
|
TEST_OP_NE,
|
|
|
|
TEST_OP_GT,
|
|
|
|
TEST_OP_GE,
|
|
|
|
TEST_OP_LT,
|
2003-08-27 15:23:11 +00:00
|
|
|
TEST_OP_LE,
|
2004-02-27 12:00:32 +00:00
|
|
|
TEST_OP_BITWISE_AND,
|
2003-12-06 16:35:20 +00:00
|
|
|
TEST_OP_CONTAINS,
|
|
|
|
TEST_OP_MATCHES
|
2001-02-01 20:21:25 +00:00
|
|
|
} test_op_t;
|
|
|
|
|
|
|
|
void
|
|
|
|
sttype_test_set1(stnode_t *node, test_op_t op, stnode_t *val1);
|
|
|
|
|
|
|
|
void
|
|
|
|
sttype_test_set2(stnode_t *node, test_op_t op, stnode_t *val1, stnode_t *val2);
|
|
|
|
|
|
|
|
void
|
|
|
|
sttype_test_set2_args(stnode_t *node, stnode_t *val1, stnode_t *val2);
|
|
|
|
|
|
|
|
void
|
|
|
|
sttype_test_get(stnode_t *node, test_op_t *p_op, stnode_t **p_val1, stnode_t **p_val2);
|
|
|
|
|
|
|
|
#endif
|