diff options
author | Michael Mann <mmann78@netscape.net> | 2015-02-08 13:49:57 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-02-09 01:13:28 +0000 |
commit | 2042385ac9eaa7e512b1a0b9af2f916324314e63 (patch) | |
tree | 78a92e5df2c01c53699fced1e7e56495f00b9314 /epan/address_types.h | |
parent | 4497bb48fd3439474049f7c5e86b4ffa1df35828 (diff) |
Add "column filter string" support to address types.
Information about dissector (filter) fields should be kept in a dissector as much as possible. Supporting "column filter string" also allows other dissectors to create their own "address types" with different column filters (because AT_ETHER isn't always an "Ethernet" address).
This feature also allowed a few "dissector specific" address types to be moved to their own dissector.
Change-Id: Ie9024af4db62bc2ee4f8c9d28a1d807f706f45bf
Ping-Bug:7728
Reviewed-on: https://code.wireshark.org/review/7029
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/address_types.h')
-rw-r--r-- | epan/address_types.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/address_types.h b/epan/address_types.h index 195f7dd89e..1146b493f3 100644 --- a/epan/address_types.h +++ b/epan/address_types.h @@ -30,14 +30,14 @@ extern "C" { typedef gboolean (*AddrValueToString)(const address* addr, gchar *buf, int buf_len); typedef int (*AddrValueToStringLen)(const address* addr); +typedef const char* (*AddrColFilterString)(const address* addr, gboolean src); struct _address_type_t; typedef struct _address_type_t address_type_t; -void address_type_register(int address_type, address_type_t *at); - int address_type_dissector_register(const char* name, const char* pretty_name, - AddrValueToString to_str_func, AddrValueToStringLen str_len_func); + AddrValueToString to_str_func, AddrValueToStringLen str_len_func, + AddrColFilterString col_filter_str_func); void address_types_initialize(void); @@ -46,6 +46,7 @@ void address_types_initialize(void); */ int address_type_get_length(const address* addr); void address_type_to_string(const address* addr, gchar *buf, int buf_len); +const char* address_type_column_filter_string(const address* addr, gboolean src); #ifdef __cplusplus |