diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-07-14 07:59:42 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-07-14 07:59:42 +0000 |
commit | b3e0623e5ca3661404db30e9a702b1c11ad6e5d9 (patch) | |
tree | ae25c13ae5e87df16c2c37ca7fc99855a720d04c /epan/tvbuff_subset.c | |
parent | 0d85b75305677a1298b76718112c4e440f84b94c (diff) |
Fix tvbtest linking, move private structures to tvbuff_subset
svn path=/trunk/; revision=50570
Diffstat (limited to 'epan/tvbuff_subset.c')
-rw-r--r-- | epan/tvbuff_subset.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/epan/tvbuff_subset.c b/epan/tvbuff_subset.c index 1dcdecdd6a..fe327fecbe 100644 --- a/epan/tvbuff_subset.c +++ b/epan/tvbuff_subset.c @@ -29,6 +29,23 @@ #include "tvbuff-int.h" #include "proto.h" /* XXX - only used for DISSECTOR_ASSERT, probably a new header file? */ +typedef struct { + /** The backing tvbuff_t */ + struct tvbuff *tvb; + + /** The offset of 'tvb' to which I'm privy */ + guint offset; + /** The length of 'tvb' to which I'm privy */ + guint length; + +} tvb_backing_t; + +struct tvb_subset { + struct tvbuff tvb; + + tvb_backing_t subset; +}; + static gsize subset_sizeof(void) { |