diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-02-19 23:55:19 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-02-19 23:55:19 +0000 |
commit | bd7c0171a9fc3a196323781c086308a9915bfb2b (patch) | |
tree | 35e5b28350607298c4113db9e77612a5303eeef4 | |
parent | 29715ccc8f78d9a2f791437f49d6718615795c15 (diff) |
Make tvb_new() an internal routine to epan/tvbuff.c; we export various
routines to create new tvbuffs that do what dissectors need to do, and
those are the only routines that should be used.
svn path=/trunk/; revision=47752
-rw-r--r-- | epan/tvbuff.c | 2 | ||||
-rw-r--r-- | epan/tvbuff.h | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/epan/tvbuff.c b/epan/tvbuff.c index 96bae3108d..dc714a675a 100644 --- a/epan/tvbuff.c +++ b/epan/tvbuff.c @@ -105,7 +105,7 @@ tvb_init(tvbuff_t *tvb, const tvbuff_type type) } -tvbuff_t * +static tvbuff_t * tvb_new(const tvbuff_type type) { tvbuff_t *tvb; diff --git a/epan/tvbuff.h b/epan/tvbuff.h index 5f5639e91b..f71b315e0a 100644 --- a/epan/tvbuff.h +++ b/epan/tvbuff.h @@ -116,11 +116,6 @@ typedef struct tvbuff tvbuff_t; typedef void (*tvbuff_free_cb_t)(void*); -/** Returns a pointer to a newly initialized tvbuff. Note that - * tvbuff's of types TVBUFF_SUBSET and TVBUFF_COMPOSITE - * require further initialization via the appropriate functions. */ -extern tvbuff_t* tvb_new(tvbuff_type); - /** Extracts 'number of bits' starting at 'bit offset'. * Returns a pointer to a newly initialized ep_alloc'd REAL_DATA * tvbuff with the bits octet aligned. |