| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
guid-utils.h
Go to the documentation of this file.
1
12#ifndef __GUID_UTILS_H__
13#define __GUID_UTILS_H__
14
15#include <stdint.h>
16#include "ws_symbol_export.h"
17#include <epan/wmem_scopes.h>
18
19#define GUID_LEN 16
20
21/* Note: this might be larger than GUID_LEN, so don't overlay data in packets
22 with this. */
23 typedef struct _e_guid_t {
24 uint32_t data1;
25 uint16_t data2;
26 uint16_t data3;
27 uint8_t data4[8];
28} e_guid_t;
29
30#ifdef __cplusplus
31 extern "C" {
32#endif /* __cplusplus */
33
40WS_DLL_PUBLIC void guids_init(void);
41
50WS_DLL_PUBLIC void guids_add_guid(const e_guid_t *guid, const char *name);
51
59WS_DLL_PUBLIC void guids_delete_guid(const e_guid_t *guid);
60
70WS_DLL_PUBLIC const char *guids_get_guid_name(const e_guid_t *guid, wmem_allocator_t *scope);
71
84WS_DLL_PUBLIC const char* guids_resolve_guid_to_str(const e_guid_t *guid, wmem_allocator_t *scope);
85
95WS_DLL_PUBLIC int guid_cmp(const e_guid_t *g1, const e_guid_t *g2);
96
105WS_DLL_PUBLIC unsigned guid_hash(const e_guid_t *guid);
106
107#ifdef __cplusplus
108}
109#endif /* __cplusplus */
110
111#endif /* __GUID_UTILS_H__ */
guids_add_guid
WS_DLL_PUBLIC void guids_add_guid(const e_guid_t *guid, const char *name)
Add a GUID.
Definition guid-utils.c:101
guids_get_guid_name
WS_DLL_PUBLIC const char * guids_get_guid_name(const e_guid_t *guid, wmem_allocator_t *scope)
Retrieve name for GUID value.
guids_init
WS_DLL_PUBLIC void guids_init(void)
Initialize the GUID handling component.
Definition guid-utils.c:94
guid_cmp
WS_DLL_PUBLIC int guid_cmp(const e_guid_t *g1, const e_guid_t *g2)
Compare two GUID values.
Definition guid-utils.c:161
guids_delete_guid
WS_DLL_PUBLIC void guids_delete_guid(const e_guid_t *guid)
Remove a GUID to name mapping.
Definition guid-utils.c:114
guids_resolve_guid_to_str
WS_DLL_PUBLIC const char * guids_resolve_guid_to_str(const e_guid_t *guid, wmem_allocator_t *scope)
Retrieve name for GUID value.
Definition guid-utils.c:144
guid_hash
WS_DLL_PUBLIC unsigned guid_hash(const e_guid_t *guid)
Created 32-bit hash value for GUID.
Definition guid-utils.c:178
_e_guid_t
Definition guid-utils.h:23
_wmem_allocator_t
Internal memory allocator interface used by the wmem subsystem.
Definition wmem_allocator.h:34
wmem_scopes.h