| 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#ifndef __UUID_TYPES_H__
12#define __UUID_TYPES_H__
13
14#include "ws_symbol_export.h"
15#include <epan/wmem_scopes.h>
16
17#ifdef __cplusplus
18 extern "C" {
19#endif /* __cplusplus */
20
27WS_DLL_PUBLIC void uuid_types_initialize(void);
28
29 typedef const char* (*UUIDToString)(void* uuid, wmem_allocator_t* scope);
30
42WS_DLL_PUBLIC int uuid_type_dissector_register(const char* name,
43 GHashFunc hash_func, GEqualFunc key_equal_func, UUIDToString tostr_func);
44
45
54WS_DLL_PUBLIC int uuid_type_get_id_by_name(const char* name);
55
66WS_DLL_PUBLIC void uuid_type_foreach(const char* name, GHFunc func, void* param);
67
78WS_DLL_PUBLIC void uuid_type_foreach_by_id(int id, GHFunc func, void* param);
79
90WS_DLL_PUBLIC void uuid_type_insert(int id, void* uuid, void* value);
91
102WS_DLL_PUBLIC void* uuid_type_lookup(int id, void* uuid);
103
114WS_DLL_PUBLIC bool uuid_type_remove_if_present(int id, void* uuid);
115
128WS_DLL_PUBLIC const char* uuid_type_get_uuid_name(const char* name, void* uuid, wmem_allocator_t* scope);
129
130#ifdef __cplusplus
131}
132#endif /* __cplusplus */
133
134#endif /* __UUID_TYPES_H__ */
_wmem_allocator_t
Internal memory allocator interface used by the wmem subsystem.
Definition wmem_allocator.h:34
uuid_type_remove_if_present
WS_DLL_PUBLIC bool uuid_type_remove_if_present(int id, void *uuid)
Remove UUID from table.
Definition uuid_types.c:108
uuid_type_dissector_register
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
uuid_types_initialize
WS_DLL_PUBLIC void uuid_types_initialize(void)
Initialize the UUID handling component.
Definition uuid_types.c:32
uuid_type_get_uuid_name
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
uuid_type_insert
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
uuid_type_lookup
WS_DLL_PUBLIC void * uuid_type_lookup(int id, void *uuid)
Find value associated with UUID from table.
Definition uuid_types.c:91
uuid_type_foreach_by_id
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
uuid_type_foreach
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
uuid_type_get_id_by_name
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
wmem_scopes.h