diff options
Diffstat (limited to 'epan/ftypes/ftype-none.c')
-rw-r--r-- | epan/ftypes/ftype-none.c | 45 |
1 files changed, 38 insertions, 7 deletions
diff --git a/epan/ftypes/ftype-none.c b/epan/ftypes/ftype-none.c index c504cf7600..9a88215d86 100644 --- a/epan/ftypes/ftype-none.c +++ b/epan/ftypes/ftype-none.c @@ -17,30 +17,61 @@ ftype_register_none(void) static ftype_t none_type = { FT_NONE, /* ftype */ - "FT_NONE", /* name */ - "Label", /* pretty_name */ 0, /* wire_size */ NULL, /* new_value */ + NULL, /* copy_value */ NULL, /* free_value */ - NULL, /* val_from_unparsed */ + NULL, /* val_from_literal */ NULL, /* val_from_string */ + NULL, /* val_from_charconst */ + NULL, /* val_from_uinteger64 */ + NULL, /* val_from_sinteger64 */ + NULL, /* val_from_double */ NULL, /* val_to_string_repr */ - NULL, /* len_string_repr */ + + NULL, /* val_to_uinteger64 */ + NULL, /* val_to_sinteger64 */ + NULL, /* val_to_double */ { NULL }, /* union set_value */ { NULL }, /* union get_value */ NULL, /* cmp_order */ - NULL, /* cmp_bitwise_and */ NULL, /* cmp_contains */ NULL, /* cmp_matches */ - NULL, - NULL, + NULL, /* hash */ + NULL, /* is_zero */ + NULL, /* is_negative */ + NULL, /* len */ + NULL, /* slice */ + NULL, /* biwise_and */ + NULL, /* unary_minus */ + NULL, /* add */ + NULL, /* subtract */ + NULL, /* multiply */ + NULL, /* divide */ + NULL, /* modulo */ }; ftype_register(FT_NONE, &none_type); } +void +ftype_register_pseudofields_none(int proto) +{ + static int hf_ft_none; + + static hf_register_info hf_ftypes[] = { + { &hf_ft_none, + { "FT_NONE", "_ws.ftypes.none", + FT_NONE, BASE_NONE, NULL, 0x00, + NULL, HFILL } + }, + }; + + proto_register_field_array(proto, hf_ftypes, array_length(hf_ftypes)); +} + /* * Editor modelines - https://www.wireshark.org/tools/modelines.html * |