|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
Go to the source code of this file.
Typedefs | |
| typedef const char *(* | UUIDToString) (void *uuid, wmem_allocator_t *scope) |
Functions | |
| WS_DLL_PUBLIC void | uuid_types_initialize (void) |
| Initialize the UUID handling component. | |
| 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. | |
| WS_DLL_PUBLIC int | uuid_type_get_id_by_name (const char *name) |
| Get the ID of a registered UUID type. | |
| WS_DLL_PUBLIC void | uuid_type_foreach (const char *name, GHFunc func, void *param) |
| Process all of the UUIDs in the table. | |
| WS_DLL_PUBLIC void | uuid_type_foreach_by_id (int id, GHFunc func, void *param) |
| Process all of the UUIDs in the table. | |
| WS_DLL_PUBLIC void | uuid_type_insert (int id, void *uuid, void *value) |
| Insert a UUID with value into a table. | |
| WS_DLL_PUBLIC void * | uuid_type_lookup (int id, void *uuid) |
| Find value associated with UUID from table. | |
| WS_DLL_PUBLIC bool | uuid_type_remove_if_present (int id, void *uuid) |
| Remove UUID from table. | |
| WS_DLL_PUBLIC const char * | uuid_type_get_uuid_name (const char *name, void *uuid, wmem_allocator_t *scope) |
| Retrieve UUID "string name". | |
Definitions for UUID type handling
Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs
SPDX-License-Identifier: GPL-2.0-or-later
| 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.
Create a UUID type and provide its processing functions
| name | Name of the UUID to be referenced by external components |
| hash_func | Function to hash the UUID to a 32-bit value |
| key_equal_func | Function to determine if two UUID values are equal |
| tostr_func | Function that converts UUID into a friendly string value (may resolve to name) |
| WS_DLL_PUBLIC void uuid_type_foreach | ( | const char * | name, |
| GHFunc | func, | ||
| void * | param | ||
| ) |
Process all of the UUIDs in the table.
Iterate through all of the UUIDs in the table with a callback function. The callback function is responsible for knowing the data structure of the UUID
| name | Name of the UUID type |
| func | Function to be called on each UUID |
| param | Optional data to be passed into the function as well |
| WS_DLL_PUBLIC void uuid_type_foreach_by_id | ( | int | id, |
| GHFunc | func, | ||
| void * | param | ||
| ) |
Process all of the UUIDs in the table.
Iterate through all of the UUIDs in the table with a callback function. The callback function is responsible for knowing the data structure of the UUID
| id | Identifier of the UUID type |
| func | Function to be called on each UUID |
| param | Optional data to be passed into the function as well |
| WS_DLL_PUBLIC int uuid_type_get_id_by_name | ( | const char * | name | ) |
Get the ID of a registered UUID type.
Get the identifier of a registered UUID type to use for other API calls
| name | Name of the UUID type |
| WS_DLL_PUBLIC const char * uuid_type_get_uuid_name | ( | const char * | name, |
| void * | uuid, | ||
| wmem_allocator_t * | scope | ||
| ) |
Retrieve UUID "string name".
Convert UUID to a string value. What string returned is based on the identifier type. It may look up the UUID in its table or just know how to turn the datatype into a string
| name | Name of the UUID type |
| uuid | UUID to be converted to a string |
| scope | memory scope the name should be returned in |
| WS_DLL_PUBLIC void uuid_type_insert | ( | int | id, |
| void * | uuid, | ||
| void * | value | ||
| ) |
Insert a UUID with value into a table.
Adds a UUID to data value into the table. The data structure of the UUID and value are type dependent by the identifier
| id | Identifier of the UUID type table |
| uuid | UUID key for the value |
| value | Value associated with UUID |
| WS_DLL_PUBLIC void * uuid_type_lookup | ( | int | id, |
| void * | uuid | ||
| ) |
Find value associated with UUID from table.
Lookup the UUID to find the associated data with it.The data structure of the UUID and value are type dependent by the identifier
| id | Identifier of the UUID type table |
| uuid | UUID key for the value |
| WS_DLL_PUBLIC bool uuid_type_remove_if_present | ( | int | id, |
| void * | uuid | ||
| ) |
Remove UUID from table.
Remove the UUID from the table if found. The data structure of the UUID is type dependent by the identifier
| id | Identifier of the UUID type table |
| uuid | UUID key to be removed |
| WS_DLL_PUBLIC void uuid_types_initialize | ( | void | ) |
Initialize the UUID handling component.
Called during epan initialization, this sets up the table for components to register their specific UUID handling