11#ifndef __UUID_TYPES_H__
12#define __UUID_TYPES_H__
14#include "ws_symbol_export.h"
43 GHashFunc hash_func, GEqualFunc key_equal_func, UUIDToString tostr_func);
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