2 * Definitions for protocol-specific data
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * SPDX-License-Identifier: GPL-2.0-or-later
11 #ifndef __PROTO_DATA_H__
12 #define __PROTO_DATA_H__
16 #endif /* __cplusplus */
18 #include "ws_symbol_export.h"
20 /* Allocator should be either pinfo->pool or wmem_file_scope() */
21 WS_DLL_PUBLIC void p_add_proto_data(wmem_allocator_t *scope, struct _packet_info* pinfo, int proto, guint32 key, void *proto_data);
22 WS_DLL_PUBLIC void *p_get_proto_data(wmem_allocator_t *scope, struct _packet_info* pinfo, int proto, guint32 key);
23 WS_DLL_PUBLIC void p_remove_proto_data(wmem_allocator_t *scope, struct _packet_info* pinfo, int proto, guint32 key);
24 gchar *p_get_proto_name_and_key(wmem_allocator_t *scope, struct _packet_info* pinfo, guint pfd_index);
28 #endif /* __cplusplus */
30 #endif /* __PROTO_DATA__ */
33 * Editor modelines - https://www.wireshark.org/tools/modelines.html
38 * indent-tabs-mode: nil
41 * vi: set shiftwidth=2 tabstop=8 expandtab:
42 * :indentSize=2:tabSize=8:noTabs=true: