Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

dissector_filters.h
Go to the documentation of this file.
1 /* dissector_filters.h
2 * Routines for dissector-generated conversation filters for use as
3 * display and color filters
4 *
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
8 *
9 * SPDX-License-Identifier: GPL-2.0-or-later
10 */
11
12 #ifndef __DISSECTOR_FILTERS_H__
13 #define __DISSECTOR_FILTERS_H__
14
15 #include "ws_symbol_export.h"
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif /* __cplusplus */
20
25 typedef gboolean (*is_filter_valid_func)(struct _packet_info *pinfo);
26
29 typedef gchar* (*build_filter_string_func)(struct _packet_info *pinfo);
30
32 WS_DLL_PUBLIC void register_conversation_filter(const char *proto_name, const char *display_name,
33 is_filter_valid_func is_filter_valid, build_filter_string_func build_filter_string);
34
35 WS_DLL_PUBLIC struct conversation_filter_s* find_conversation_filter(const char *proto_name);
36
37 /* Cleanup internal structures */
38 extern void conversation_filters_cleanup(void);
39
47 WS_DLL_PUBLIC gchar *conversation_filter_from_packet(struct _packet_info *pinfo);
48
49 /*** THE FOLLOWING SHOULD NOT BE USED BY ANY DISSECTORS!!! ***/
50
51 typedef struct conversation_filter_s {
52 const char * proto_name;
53 const char * display_name;
54 is_filter_valid_func is_filter_valid;
55 build_filter_string_func build_filter_string;
56 } conversation_filter_t;
57
58 WS_DLL_PUBLIC GList *conv_filter_list;
59
60 #ifdef __cplusplus
61 }
62 #endif /* __cplusplus */
63
64 #endif /* dissector_filters.h */
conversation_filter_from_packet
WS_DLL_PUBLIC gchar * conversation_filter_from_packet(struct _packet_info *pinfo)
Definition: dissector_filters.c:64
_packet_info
Definition: packet_info.h:44
build_filter_string_func
gchar *(* build_filter_string_func)(struct _packet_info *pinfo)
Definition: dissector_filters.h:29
is_filter_valid_func
gboolean(* is_filter_valid_func)(struct _packet_info *pinfo)
Definition: dissector_filters.h:25
register_conversation_filter
WS_DLL_PUBLIC void register_conversation_filter(const char *proto_name, const char *display_name, is_filter_valid_func is_filter_valid, build_filter_string_func build_filter_string)
Definition: dissector_filters.c:23
conversation_filter_s
Definition: dissector_filters.h:51