cad9378d3aaca97c8da6df65d062716f519c3865
[metze/wireshark/wip.git] / epan / dfilter / sttype-test.h
1 /*
2  * $Id: sttype-test.h,v 1.2 2001/02/01 20:31:18 gram Exp $
3  *
4  * Ethereal - Network traffic analyzer
5  * By Gerald Combs <gerald@zing.org>
6  * Copyright 2001 Gerald Combs
7  *
8  * 
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; either version 2
12  * of the License, or (at your option) any later version.
13  * 
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  * 
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22  */
23
24 #ifndef STTYPE_TEST_H
25 #define STTYPE_TEST_H
26
27 typedef enum {
28         TEST_OP_UNINITIALIZED,
29         TEST_OP_EXISTS,
30         TEST_OP_NOT,
31         TEST_OP_AND,
32         TEST_OP_OR,
33         TEST_OP_EQ,
34         TEST_OP_NE,
35         TEST_OP_GT,
36         TEST_OP_GE,
37         TEST_OP_LT,
38         TEST_OP_LE
39 } test_op_t;
40
41 void
42 sttype_test_set1(stnode_t *node, test_op_t op, stnode_t *val1);
43
44 void
45 sttype_test_set2(stnode_t *node, test_op_t op, stnode_t *val1, stnode_t *val2);
46
47 void
48 sttype_test_set2_args(stnode_t *node, stnode_t *val1, stnode_t *val2);
49
50 void
51 sttype_test_get(stnode_t *node, test_op_t *p_op, stnode_t **p_val1, stnode_t **p_val2);
52
53 #endif