| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
guid-utils.h
Go to the documentation of this file.
1
11#pragma once
12#include <stdint.h>
13#include "ws_symbol_export.h"
14#include <epan/wmem_scopes.h>
15
16#define GUID_LEN 16
17
21 typedef struct _e_guid_t {
22 uint32_t data1;
23 uint16_t data2;
24 uint16_t data3;
25 uint8_t data4[8];
26} e_guid_t;
27
28#ifdef __cplusplus
29 extern "C" {
30#endif /* __cplusplus */
31
38WS_DLL_PUBLIC void guids_init(void);
39
48WS_DLL_PUBLIC void guids_add_guid(const e_guid_t *guid, const char *name);
49
57WS_DLL_PUBLIC void guids_delete_guid(const e_guid_t *guid);
58
68WS_DLL_PUBLIC const char *guids_get_guid_name(const e_guid_t *guid, wmem_allocator_t *scope);
69
82WS_DLL_PUBLIC const char* guids_resolve_guid_to_str(const e_guid_t *guid, wmem_allocator_t *scope);
83
93WS_DLL_PUBLIC int guid_cmp(const e_guid_t *g1, const e_guid_t *g2);
94
103WS_DLL_PUBLIC unsigned guid_hash(const e_guid_t *guid);
104
105#ifdef __cplusplus
106}
107#endif /* __cplusplus */
wmem_allocator_t
struct _wmem_allocator_t wmem_allocator_t
Definition wmem_core.h:44
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
e_guid_t
struct _e_guid_t e_guid_t
Represents a GUID/UUID value; may be larger than GUID_LEN so must not be used to directly overlay pac...
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
Represents a GUID/UUID value; may be larger than GUID_LEN so must not be used to directly overlay pac...
Definition guid-utils.h:21
_e_guid_t::data4
uint8_t data4[8]
Definition guid-utils.h:25
_e_guid_t::data2
uint16_t data2
Definition guid-utils.h:23
_e_guid_t::data3
uint16_t data3
Definition guid-utils.h:24
_e_guid_t::data1
uint32_t data1
Definition guid-utils.h:22
wmem_scopes.h