Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
uuid_types.h
Go to the documentation of this file.
1
11#pragma once
12
13#include "ws_symbol_export.h"
14#include <epan/wmem_scopes.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
26WS_DLL_PUBLIC void uuid_types_initialize(void);
27
28typedef const char* (*UUIDToString)(void* uuid, wmem_allocator_t* scope);
29
41WS_DLL_PUBLIC int uuid_type_dissector_register(const char* name,
42 GHashFunc hash_func, GEqualFunc key_equal_func, UUIDToString tostr_func);
43
44
53WS_DLL_PUBLIC int uuid_type_get_id_by_name(const char* name);
54
65WS_DLL_PUBLIC void uuid_type_foreach(const char* name, GHFunc func, void* param);
66
77WS_DLL_PUBLIC void uuid_type_foreach_by_id(int id, GHFunc func, void* param);
78
89WS_DLL_PUBLIC void uuid_type_insert(int id, void* uuid, void* value);
90
101WS_DLL_PUBLIC void* uuid_type_lookup(int id, void* uuid);
102
113WS_DLL_PUBLIC bool uuid_type_remove_if_present(int id, void* uuid);
114
127WS_DLL_PUBLIC const char* uuid_type_get_uuid_name(const char* name, void* uuid, wmem_allocator_t* scope);
128
129#ifdef __cplusplus
130}
131#endif /* __cplusplus */
Internal memory allocator interface used by the wmem subsystem.
Definition wmem_allocator.h:34
WS_DLL_PUBLIC bool uuid_type_remove_if_present(int id, void *uuid)
Remove UUID from table.
Definition uuid_types.c:108
WS_DLL_PUBLIC int uuid_type_dissector_register(const char *name, GHashFunc hash_func, GEqualFunc key_equal_func, UUIDToString tostr_func)
Register a UUID type for handling.
Definition uuid_types.c:38
WS_DLL_PUBLIC void uuid_types_initialize(void)
Initialize the UUID handling component.
Definition uuid_types.c:32
WS_DLL_PUBLIC const char * uuid_type_get_uuid_name(const char *name, void *uuid, wmem_allocator_t *scope)
Retrieve UUID "string name".
Definition uuid_types.c:122
WS_DLL_PUBLIC void uuid_type_insert(int id, void *uuid, void *value)
Insert a UUID with value into a table.
Definition uuid_types.c:82
WS_DLL_PUBLIC void * uuid_type_lookup(int id, void *uuid)
Find value associated with UUID from table.
Definition uuid_types.c:91
WS_DLL_PUBLIC void uuid_type_foreach_by_id(int id, GHFunc func, void *param)
Process all of the UUIDs in the table.
Definition uuid_types.c:73
WS_DLL_PUBLIC void uuid_type_foreach(const char *name, GHFunc func, void *param)
Process all of the UUIDs in the table.
Definition uuid_types.c:66
WS_DLL_PUBLIC int uuid_type_get_id_by_name(const char *name)
Get the ID of a registered UUID type.
Definition uuid_types.c:57