diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2003-02-08 04:22:37 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2003-02-08 04:22:37 +0000 |
commit | 9615c4ef25937edc242ff81a9ee7ec7a35aa7698 (patch) | |
tree | f03877f03d3e572f98e4e87d046f3a9017c00742 /epan/ftypes/ftypes-int.h | |
parent | 086e99dff9584dc837b1bb1be8611468bc05d324 (diff) |
Provide a way for ftype modules to provide a string representation
of their value. Provide such a method for FT_BYTES, FT_UINT_BYTES,
and FT_ETHER. Have proto_alloc_dfilter_string() use the new methods.
This is part of a movement of ftype-related code out of proto.c and
into the ftype code. The immediate effect is that generated display
filters for long byte sequences don't incorrectly have trailing periods
("...") to indicate continuation.
svn path=/trunk/; revision=7100
Diffstat (limited to 'epan/ftypes/ftypes-int.h')
-rw-r--r-- | epan/ftypes/ftypes-int.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/epan/ftypes/ftypes-int.h b/epan/ftypes/ftypes-int.h index 0796782b6e..c264ff079a 100644 --- a/epan/ftypes/ftypes-int.h +++ b/epan/ftypes/ftypes-int.h @@ -1,5 +1,5 @@ /* - * $Id: ftypes-int.h,v 1.6 2002/08/28 20:41:00 jmayer Exp $ + * $Id: ftypes-int.h,v 1.7 2003/02/08 04:22:37 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -30,6 +30,8 @@ typedef void (*FvalueNewFunc)(fvalue_t*); typedef void (*FvalueFreeFunc)(fvalue_t*); typedef gboolean (*FvalueFromString)(fvalue_t*, char*, LogFunc); +typedef char* (*FvalueToStringRepr)(fvalue_t*); +typedef int (*FvalueStringReprLen)(fvalue_t*); typedef void (*FvalueSetFunc)(fvalue_t*, gpointer, gboolean); typedef void (*FvalueSetIntegerFunc)(fvalue_t*, guint32); @@ -51,6 +53,8 @@ struct _ftype_t { FvalueNewFunc new_value; FvalueFreeFunc free_value; FvalueFromString val_from_string; + FvalueToStringRepr val_to_string_repr; + FvalueStringReprLen len_string_repr; /* could be union */ FvalueSetFunc set_value; |