diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-08-22 00:31:58 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-08-22 00:31:58 +0000 |
commit | c68f62210fc20890502cb84dbc2ea4321de5b791 (patch) | |
tree | d7311a179eacd5a137e9e874b3bf2d0e15377de6 /epan/ftypes/ftype-double.c | |
parent | 9dcb077e460619b8ab54810e4fef850a0799bcde (diff) |
Add "tvb_get_ntoh64()" and "tvb_get_letoh64()" routines to fetch 64-bit
integers.
Make FT_INT64 and FT_UINT64 add numerical values, rather than byte-array
values, to the protocol tree, and add routines to add specified 64-bit
integer values to the protocol tree.
Use those routines in the RSVP dissector.
svn path=/trunk/; revision=11796
Diffstat (limited to 'epan/ftypes/ftype-double.c')
-rw-r--r-- | epan/ftypes/ftype-double.c | 48 |
1 files changed, 26 insertions, 22 deletions
diff --git a/epan/ftypes/ftype-double.c b/epan/ftypes/ftype-double.c index 5c60941d2e..af45990cdc 100644 --- a/epan/ftypes/ftype-double.c +++ b/epan/ftypes/ftype-double.c @@ -157,23 +157,25 @@ ftype_register_double(void) { static ftype_t float_type = { - "FT_FLOAT", - "floating point (single-precision)", - 0, - double_fvalue_new, - NULL, + "FT_FLOAT", /* name */ + "floating point (single-precision)", /* pretty_name */ + 0, /* wire_size */ + double_fvalue_new, /* new_value */ + NULL, /* free_value */ val_from_unparsed, /* val_from_unparsed */ NULL, /* val_from_string */ float_val_to_repr, /* val_to_string_repr */ float_val_repr_len, /* len_string_repr */ - NULL, - NULL, - double_fvalue_set_floating, + NULL, /* set_value */ + NULL, /* set_value_integer */ + NULL, /* set_value_integer64 */ + double_fvalue_set_floating, /* set_value_floating */ - NULL, - NULL, - value_get_floating, + NULL, /* get_value */ + NULL, /* get_value_integer */ + NULL, /* get_value_integer64 */ + value_get_floating, /* get_value_floating */ cmp_eq, cmp_ne, @@ -190,23 +192,25 @@ ftype_register_double(void) }; static ftype_t double_type = { - "FT_DOUBLE", - "floating point (double-precision)", - 0, - double_fvalue_new, - NULL, + "FT_DOUBLE", /* name */ + "floating point (double-precision)", /* pretty_name */ + 0, /* wire_size */ + double_fvalue_new, /* new_value */ + NULL, /* free_value */ val_from_unparsed, /* val_from_unparsed */ NULL, /* val_from_string */ double_val_to_repr, /* val_to_string_repr */ double_val_repr_len, /* len_string_repr */ - NULL, - NULL, - double_fvalue_set_floating, + NULL, /* set_value */ + NULL, /* set_value_integer */ + NULL, /* set_value_integer64 */ + double_fvalue_set_floating, /* set_value_floating */ - NULL, - NULL, - value_get_floating, + NULL, /* get_value */ + NULL, /* get_value_integer */ + NULL, /* get_value_integer64 */ + value_get_floating, /* get_value_floating */ cmp_eq, cmp_ne, |