Add ws_load_library and ws_module_open, which respectively call
[obnox/wireshark/wip.git] / epan / epan_dissect.h
1 /* epan_dissect.h
2  *
3  * $Id$
4  *
5  * Wireshark Protocol Analyzer Library
6  *
7  * Copyright (c) 2001 by Gerald Combs <gerald@wireshark.org>
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 EPAN_DISSECT_H
25 #define EPAN_DISSECT_H
26
27 #include "tvbuff.h"
28 #include "proto.h"
29 #include "packet_info.h"
30
31 /* Dissection of a single byte array. Holds tvbuff info as
32  * well as proto_tree info. As long as the epan_dissect_t for a byte
33  * array is in existence, you must not free or move that byte array,
34  * as the structures that the epan_dissect_t contains might have pointers
35  * to addresses in your byte array.
36  */
37 struct _epan_dissect_t {
38         tvbuff_t        *tvb;
39         proto_tree      *tree;
40         packet_info     pi;
41 };
42
43
44 #endif /* EPAN_DISSECT_H */