diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-02-18 01:08:44 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-02-18 01:08:44 +0000 |
commit | 6a21dc7e44e06bf3064d74a8e9624b9e01b04bbd (patch) | |
tree | 73281bb2d7e50e8527da2945d5627a31bae9e5c6 /epan/tvbuff.h | |
parent | d92a1cd8e1f58a1ec46793f9052aa893a279e523 (diff) | |
download | wireshark-6a21dc7e44e06bf3064d74a8e9624b9e01b04bbd.tar.gz |
Don't give tvbuffs names; instead, give data sources names, where a
"data source" has a name and a top-level tvbuff, and frames can have a
list of data sources associated with them.
Use the tvbuff pointer to determine which data source is the data source
for a given field; this means we don't have to worry about multiple data
sources with the same name - the only thing the name does is label the
notebook tab for the display of the data source, and label the hex dump
of the data source in print/Tethereal output.
Clean up a bunch of things discovered in the process of doing the above.
svn path=/trunk/; revision=4749
Diffstat (limited to 'epan/tvbuff.h')
-rw-r--r-- | epan/tvbuff.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/tvbuff.h b/epan/tvbuff.h index 2de3f63650..1e29ab0bd7 100644 --- a/epan/tvbuff.h +++ b/epan/tvbuff.h @@ -9,7 +9,7 @@ * the data of a backing tvbuff, or can be a composite of * other tvbuffs. * - * $Id: tvbuff.h,v 1.21 2002/02/01 04:34:17 gram Exp $ + * $Id: tvbuff.h,v 1.22 2002/02/18 01:08:42 guy Exp $ * * Copyright (c) 2000 by Gilbert Ramirez <gram@alumni.rice.edu> * @@ -140,7 +140,7 @@ extern void tvb_set_real_data(tvbuff_t*, const guint8* data, guint length, /* Combination of tvb_new() and tvb_set_real_data(). Can throw ReportedBoundsError. */ extern tvbuff_t* tvb_new_real_data(const guint8* data, guint length, - gint reported_length, const gchar *name); + gint reported_length); /* Define the subset of the backing buffer to use. @@ -379,7 +379,7 @@ extern gint tvb_memeql(tvbuff_t *tvb, gint offset, const guint8 *str, */ extern gchar *tvb_bytes_to_str(tvbuff_t *tvb, gint offset, gint len); -extern gchar *tvb_get_name(tvbuff_t *tvb); +extern tvbuff_t *tvb_get_ds_tvb(tvbuff_t *tvb); /************** END OF ACCESSORS ****************/ |