| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
conversation_filter.h
Go to the documentation of this file.
1/* conversation_filter.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 <glib.h>
16
17#include "ws_symbol_export.h"
18
19#ifdef __cplusplus
20 extern "C" {
21#endif /* __cplusplus */
22
27 extern void conversation_filters_init(void);
28
36 typedef bool (*is_filter_valid_func)(struct _packet_info *pinfo, void *user_data);
37
47 typedef char* (*build_filter_string_func)(struct _packet_info *pinfo, void *user_data);
48
58WS_DLL_PUBLIC void register_conversation_filter(const char *proto_name, const char *display_name,
59 is_filter_valid_func is_filter_valid, build_filter_string_func build_filter_string, void *user_data);
60
70WS_DLL_PUBLIC void register_log_conversation_filter(const char *proto_name, const char *display_name,
71 is_filter_valid_func is_filter_valid, build_filter_string_func build_filter_string, void *user_data);
76WS_DLL_PUBLIC void add_conversation_filter_protocol(const char *proto_name);
77
79 extern void conversation_filters_cleanup(void);
80
89WS_DLL_PUBLIC char *conversation_filter_from_packet(struct _packet_info *pinfo);
90
99WS_DLL_PUBLIC char *conversation_filter_from_log(struct _packet_info *pinfo);
100
101/*** THE FOLLOWING SHOULD NOT BE USED BY ANY DISSECTORS!!! ***/
102
103 typedef struct conversation_filter_s {
104 const char * proto_name;
105 const char * display_name;
106 is_filter_valid_func is_filter_valid;
107 build_filter_string_func build_filter_string;
108 void * user_data;
109} conversation_filter_t;
110
111WS_DLL_PUBLIC GList *packet_conv_filter_list;
112WS_DLL_PUBLIC GList *log_conv_filter_list;
113
114#ifdef __cplusplus
115}
116#endif /* __cplusplus */
117
118#endif /* conversation_filter.h */
conversation_filter_from_log
WS_DLL_PUBLIC char * conversation_filter_from_log(struct _packet_info *pinfo)
Definition conversation_filter.c:133
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, void *user_data)
Definition conversation_filter.c:51
is_filter_valid_func
bool(* is_filter_valid_func)(struct _packet_info *pinfo, void *user_data)
Definition conversation_filter.h:36
add_conversation_filter_protocol
WS_DLL_PUBLIC void add_conversation_filter_protocol(const char *proto_name)
Definition conversation_filter.c:71
conversation_filters_init
void conversation_filters_init(void)
Definition conversation_filter.c:25
conversation_filter_from_packet
WS_DLL_PUBLIC char * conversation_filter_from_packet(struct _packet_info *pinfo)
Definition conversation_filter.c:128
conversation_filters_cleanup
void conversation_filters_cleanup(void)
Definition conversation_filter.c:102
build_filter_string_func
char *(* build_filter_string_func)(struct _packet_info *pinfo, void *user_data)
Definition conversation_filter.h:47
register_log_conversation_filter
WS_DLL_PUBLIC void register_log_conversation_filter(const char *proto_name, const char *display_name, is_filter_valid_func is_filter_valid, build_filter_string_func build_filter_string, void *user_data)
Definition conversation_filter.c:61
_packet_info
Definition packet_info.h:43
conversation_filter_s
Definition conversation_filter.h:103