diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-07-13 17:53:33 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-07-13 17:53:33 +0000 |
commit | ef9394581140d5525b6c0983e72938464b91822f (patch) | |
tree | f15ca5015eb1ba04b0bfe54b7d133564a44e4ad6 /epan/tvbuff-int.h | |
parent | 9bdc911c29796729dbd27d9fc5f614fa830f94ce (diff) |
Add support for cloning TVBs, move tvb_new() prototype to wtap-int.h
svn path=/trunk/; revision=50558
Diffstat (limited to 'epan/tvbuff-int.h')
-rw-r--r-- | epan/tvbuff-int.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/tvbuff-int.h b/epan/tvbuff-int.h index 2aee4c16a2..d8d4cba314 100644 --- a/epan/tvbuff-int.h +++ b/epan/tvbuff-int.h @@ -37,6 +37,8 @@ struct tvb_ops { gint (*tvb_find_guint8)(tvbuff_t *tvb, guint abs_offset, guint limit, guint8 needle); gint (*tvb_pbrk_guint8)(tvbuff_t *tvb, guint abs_offset, guint limit, const guint8 *needles, guchar *found_needle); + + tvbuff_t *(*tvb_clone)(tvbuff_t *tvb, guint abs_offset, guint abs_length); }; typedef struct { @@ -114,5 +116,6 @@ struct tvb_composite { tvb_comp_t composite; }; +WS_DLL_PUBLIC tvbuff_t *tvb_new(const struct tvb_ops *ops); #endif |