3 * Structures that most TVB users should not be accessing directly.
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 #ifndef __TVBUFF_INT_H__
27 #define __TVBUFF_INT_H__
30 /** The backing tvbuff_t */
33 /** The offset of 'tvb' to which I'm privy */
35 /** The length of 'tvb' to which I'm privy */
43 /* Used for quick testing to see if this
44 * is the tvbuff that a COMPOSITE is
52 /* Doubly linked list pointers */
59 struct tvbuff *ds_tvb; /**< data source top-level tvbuff */
61 /** TVBUFF_SUBSET and TVBUFF_COMPOSITE keep track
62 * of the other tvbuff's they use */
68 /** We're either a TVBUFF_REAL_DATA or a
69 * TVBUFF_SUBSET that has a backing buffer that
70 * has real_data != NULL, or a TVBUFF_COMPOSITE
71 * which has flattened its data due to a call
74 const guint8 *real_data;
76 /** Length of virtual buffer (and/or real_data). */
79 /** Reported length. */
80 guint reported_length;
82 /* Offset from beginning of first TVBUFF_REAL. */
85 /** Func to call when actually freed */
86 tvbuff_free_cb_t free_cb;