HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / epan / epan_dissect.h
blob98e4a0b8e94c837cb0872acffcab3c2791cec818
1 /* epan_dissect.h
3 * $Id$
5 * Wireshark Protocol Analyzer Library
7 * Copyright (c) 2001 by Gerald Combs <gerald@wireshark.org>
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.
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.
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #ifndef EPAN_DISSECT_H
25 #define EPAN_DISSECT_H
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* __cplusplus */
31 #include "tvbuff.h"
32 #include "proto.h"
33 #include "packet_info.h"
35 /* Dissection of a single byte array. Holds tvbuff info as
36 * well as proto_tree info. As long as the epan_dissect_t for a byte
37 * array is in existence, you must not free or move that byte array,
38 * as the structures that the epan_dissect_t contains might have pointers
39 * to addresses in your byte array.
41 struct _epan_dissect_t {
42 struct epan_session *session;
43 tvbuff_t *tvb;
44 proto_tree *tree;
45 packet_info pi;
48 #ifdef __cplusplus
50 #endif /* __cplusplus */
52 #endif /* EPAN_DISSECT_H */
55 * Editor modelines - http://www.wireshark.org/tools/modelines.html
57 * Local variables:
58 * c-basic-offset: 8
59 * tab-width: 8
60 * indent-tabs-mode: t
61 * End:
63 * vi: set shiftwidth=8 tabstop=8 noexpandtab:
64 * :indentSize=8:tabSize=8:noTabs=false: