Ethereal-dev: Re: [Ethereal-dev] Create new tvbuff

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date Prev Thread Prev
From: Guy Harris <gharris@xxxxxxxxxxxx>
Date: Sat, 31 Mar 2001 12:16:38 -0800
On Sat, Mar 31, 2001 at 10:52:37AM -0600, Jeff Foster wrote:
> Should we wrap all of this in a function to create the tvfbuff and 
> do the linking need.

Yes.

> Something like -
> 
> tvbuff_t*
> new_data_tvbuffer( tvbuff_t *parent_tvb, 
> 			gchar *name,
> 			guint8 *data,
> 			guint len,

It should have both "len" and "reported_len" arguments.

> Where do we put it?

I'd consider giving it a name beginning with "tvb_", and putting it in
"tvbuff.c".