|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
#include <wsutil/value_string.h>Go to the source code of this file.
Macros | |
| #define | protobuf_field_type_VALUE_STRING_LIST(XXX) |
| #define | PROTOBUF_MAX_FIELD_TYPE 18 |
Functions | |
| VALUE_STRING_ENUM (protobuf_field_type) | |
| VALUE_STRING_ARRAY_GLOBAL_DCL (protobuf_field_type) | |
| void | pbw_reinit_DescriptorPool (PbwDescriptorPool **pool, const char **directories, pbw_report_error_cb_t error_cb) |
| int | pbw_load_proto_file (PbwDescriptorPool *pool, const char *filename) |
| Loads a Protocol Buffers file into the descriptor pool. | |
| const PbwMethodDescriptor * | pbw_DescriptorPool_FindMethodByName (const PbwDescriptorPool *pool, const char *name) |
| Finds a method descriptor by name in a descriptor pool. | |
| const char * | pbw_MethodDescriptor_name (const PbwMethodDescriptor *method) |
| Get the name of a Protocol Buffers method descriptor. | |
| const char * | pbw_MethodDescriptor_full_name (const PbwMethodDescriptor *method) |
| Get the full name of a method descriptor. | |
| const PbwDescriptor * | pbw_MethodDescriptor_input_type (const PbwMethodDescriptor *method) |
| Retrieves the input type descriptor for a method. | |
| const PbwDescriptor * | pbw_MethodDescriptor_output_type (const PbwMethodDescriptor *method) |
| Retrieves the output type of a method descriptor. | |
| const PbwDescriptor * | pbw_DescriptorPool_FindMessageTypeByName (const PbwDescriptorPool *pool, const char *name) |
| Finds a message type by its name in a descriptor pool. | |
| const char * | pbw_Descriptor_name (const PbwDescriptor *message) |
| Retrieves the name of a Protocol Buffers descriptor. | |
| const char * | pbw_Descriptor_full_name (const PbwDescriptor *message) |
| Get the full name of a Protocol Buffers descriptor. | |
| int | pbw_Descriptor_field_count (const PbwDescriptor *message) |
| Get the count of fields in a Protocol Buffers descriptor. | |
| const PbwFieldDescriptor * | pbw_Descriptor_field (const PbwDescriptor *message, int field_index) |
| Retrieves a field descriptor by index from a message descriptor. | |
| const PbwFieldDescriptor * | pbw_Descriptor_FindFieldByNumber (const PbwDescriptor *message, int number) |
| Finds a field descriptor by its number in a message descriptor. | |
| const PbwFieldDescriptor * | pbw_Descriptor_FindFieldByName (const PbwDescriptor *message, const char *name) |
| Finds a field descriptor by name in a message descriptor. | |
| const char * | pbw_FieldDescriptor_full_name (const PbwFieldDescriptor *field) |
| Get the full name of a field descriptor. | |
| const char * | pbw_FieldDescriptor_name (const PbwFieldDescriptor *field) |
| Retrieves the name of a Protocol Buffers field descriptor. | |
| int | pbw_FieldDescriptor_number (const PbwFieldDescriptor *field) |
| Retrieves the number associated with a Protocol Buffers field descriptor. | |
| int | pbw_FieldDescriptor_type (const PbwFieldDescriptor *field) |
| Get the type of a Protocol Buffers field descriptor. | |
| int | pbw_FieldDescriptor_is_repeated (const PbwFieldDescriptor *field) |
| Check if a field descriptor is repeated. | |
| int | pbw_FieldDescriptor_is_packed (const PbwFieldDescriptor *field) |
| Checks if the given field descriptor is packed. | |
| const char * | pbw_FieldDescriptor_typeName (wmem_allocator_t *scope, int field_type) |
| Retrieves the type name for a given field type. | |
| const PbwDescriptor * | pbw_FieldDescriptor_message_type (const PbwFieldDescriptor *field) |
| Retrieves the message type associated with a Protocol Buffers field descriptor. | |
| const PbwEnumDescriptor * | pbw_FieldDescriptor_enum_type (const PbwFieldDescriptor *field) |
| Get the enum type of a field descriptor. | |
| bool | pbw_FieldDescriptor_is_required (const PbwFieldDescriptor *field) |
| Check if a field descriptor is required. | |
| bool | pbw_FieldDescriptor_has_default_value (const PbwFieldDescriptor *field) |
| Check if a field descriptor has a default value. | |
| int32_t | pbw_FieldDescriptor_default_value_int32 (const PbwFieldDescriptor *field) |
| Retrieves the default value for an int32 field descriptor. | |
| int64_t | pbw_FieldDescriptor_default_value_int64 (const PbwFieldDescriptor *field) |
| Retrieves the default value for a field descriptor as an int64. | |
| uint32_t | pbw_FieldDescriptor_default_value_uint32 (const PbwFieldDescriptor *field) |
| Retrieves the default value for a uint32 field descriptor. | |
| uint64_t | pbw_FieldDescriptor_default_value_uint64 (const PbwFieldDescriptor *field) |
| Get the default value for a uint64 field descriptor. | |
| float | pbw_FieldDescriptor_default_value_float (const PbwFieldDescriptor *field) |
| Retrieves the default value of a float field descriptor. | |
| double | pbw_FieldDescriptor_default_value_double (const PbwFieldDescriptor *field) |
| Retrieves the default value of a double field descriptor. | |
| bool | pbw_FieldDescriptor_default_value_bool (const PbwFieldDescriptor *field) |
| Get the default value of a boolean field descriptor. | |
| const char * | pbw_FieldDescriptor_default_value_string (const PbwFieldDescriptor *field, int *size) |
| Get the default value string of a protobuf field descriptor. | |
| const PbwEnumValueDescriptor * | pbw_FieldDescriptor_default_value_enum (const PbwFieldDescriptor *field) |
| Get the default value of an enum field descriptor. | |
| const char * | pbw_EnumDescriptor_name (const PbwEnumDescriptor *anEnum) |
| Get the name of an enum descriptor. | |
| const char * | pbw_EnumDescriptor_full_name (const PbwEnumDescriptor *anEnum) |
| Get the full name of an enum descriptor. | |
| int | pbw_EnumDescriptor_value_count (const PbwEnumDescriptor *anEnum) |
| Get the count of values in an enum descriptor. | |
| const PbwEnumValueDescriptor * | pbw_EnumDescriptor_value (const PbwEnumDescriptor *anEnum, int value_index) |
| Retrieves a PbwEnumValueDescriptor by its index. | |
| const PbwEnumValueDescriptor * | pbw_EnumDescriptor_FindValueByNumber (const PbwEnumDescriptor *anEnum, int number) |
| Finds an enum value descriptor by its number. | |
| const PbwEnumValueDescriptor * | pbw_EnumDescriptor_FindValueByName (const PbwEnumDescriptor *anEnum, const char *name) |
| Finds a value descriptor by name in an enum descriptor. | |
| const char * | pbw_EnumValueDescriptor_name (const PbwEnumValueDescriptor *enumValue) |
| Get the name of an EnumValueDescriptor. | |
| const char * | pbw_EnumValueDescriptor_full_name (const PbwEnumValueDescriptor *enumValue) |
| Get the full name of an enum value descriptor. | |
| int | pbw_EnumValueDescriptor_number (const PbwEnumValueDescriptor *enumValue) |
| Get the number associated with a Protocol Buffers enum value descriptor. | |
| void | pbw_foreach_message (const PbwDescriptorPool *pool, void(*cb)(const PbwDescriptor *message, void *userdata), void *userdata) |
| Iterates over all messages in a descriptor pool and applies a callback function to each. | |
C Wrapper Layer of Protocol Buffers Language library. Copyright 2019, Huang Qiangxiong qiang.nosp@m.xion.nosp@m.g.hua.nosp@m.ng@q.nosp@m.q.com
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
| #define protobuf_field_type_VALUE_STRING_LIST | ( | XXX | ) |
| const PbwFieldDescriptor * pbw_Descriptor_field | ( | const PbwDescriptor * | message, |
| int | field_index | ||
| ) |
Retrieves a field descriptor by index from a message descriptor.
| message | The message descriptor to search within. |
| field_index | The index of the field descriptor to retrieve. |
| int pbw_Descriptor_field_count | ( | const PbwDescriptor * | message | ) |
Get the count of fields in a Protocol Buffers descriptor.
| message | Pointer to the Protocol Buffers descriptor. |
| const PbwFieldDescriptor * pbw_Descriptor_FindFieldByName | ( | const PbwDescriptor * | message, |
| const char * | name | ||
| ) |
Finds a field descriptor by name in a message descriptor.
| message | The message descriptor to search within. |
| name | The name of the field to find. |
| const PbwFieldDescriptor * pbw_Descriptor_FindFieldByNumber | ( | const PbwDescriptor * | message, |
| int | number | ||
| ) |
Finds a field descriptor by its number in a message descriptor.
| message | The message descriptor to search within. |
| number | The field number to find. |
| const char * pbw_Descriptor_full_name | ( | const PbwDescriptor * | message | ) |
Get the full name of a Protocol Buffers descriptor.
| message | Pointer to the PbwDescriptor structure. |
| const char * pbw_Descriptor_name | ( | const PbwDescriptor * | message | ) |
Retrieves the name of a Protocol Buffers descriptor.
| message | Pointer to the PbwDescriptor structure. |
| const PbwDescriptor * pbw_DescriptorPool_FindMessageTypeByName | ( | const PbwDescriptorPool * | pool, |
| const char * | name | ||
| ) |
Finds a message type by its name in a descriptor pool.
| pool | The descriptor pool to search within. |
| name | The name of the message type to find. |
| const PbwMethodDescriptor * pbw_DescriptorPool_FindMethodByName | ( | const PbwDescriptorPool * | pool, |
| const char * | name | ||
| ) |
Finds a method descriptor by name in a descriptor pool.
| pool | The descriptor pool to search within. |
| name | The name of the method descriptor to find. |
| const PbwEnumValueDescriptor * pbw_EnumDescriptor_FindValueByName | ( | const PbwEnumDescriptor * | anEnum, |
| const char * | name | ||
| ) |
Finds a value descriptor by name in an enum descriptor.
| anEnum | The enum descriptor to search within. |
| name | The name of the value descriptor to find. |
| const PbwEnumValueDescriptor * pbw_EnumDescriptor_FindValueByNumber | ( | const PbwEnumDescriptor * | anEnum, |
| int | number | ||
| ) |
Finds an enum value descriptor by its number.
| anEnum | The enum descriptor to search within. |
| number | The number of the enum value to find. |
| const char * pbw_EnumDescriptor_full_name | ( | const PbwEnumDescriptor * | anEnum | ) |
Get the full name of an enum descriptor.
| anEnum | Pointer to the PbwEnumDescriptor structure. |
| const char * pbw_EnumDescriptor_name | ( | const PbwEnumDescriptor * | anEnum | ) |
Get the name of an enum descriptor.
| anEnum | The enum descriptor to get the name from. |
| const PbwEnumValueDescriptor * pbw_EnumDescriptor_value | ( | const PbwEnumDescriptor * | anEnum, |
| int | value_index | ||
| ) |
Retrieves a PbwEnumValueDescriptor by its index.
| anEnum | The PbwEnumDescriptor to search within. |
| value_index | The index of the value descriptor to retrieve. |
| int pbw_EnumDescriptor_value_count | ( | const PbwEnumDescriptor * | anEnum | ) |
Get the count of values in an enum descriptor.
| anEnum | The enum descriptor to query. |
| const char * pbw_EnumValueDescriptor_full_name | ( | const PbwEnumValueDescriptor * | enumValue | ) |
Get the full name of an enum value descriptor.
| enumValue | The enum value descriptor to query. |
| const char * pbw_EnumValueDescriptor_name | ( | const PbwEnumValueDescriptor * | enumValue | ) |
Get the name of an EnumValueDescriptor.
| enumValue | Pointer to the EnumValueDescriptor. |
| int pbw_EnumValueDescriptor_number | ( | const PbwEnumValueDescriptor * | enumValue | ) |
Get the number associated with a Protocol Buffers enum value descriptor.
| enumValue | Pointer to the Protocol Buffers enum value descriptor. |
| bool pbw_FieldDescriptor_default_value_bool | ( | const PbwFieldDescriptor * | field | ) |
Get the default value of a boolean field descriptor.
| field | The PbwFieldDescriptor to query. |
| double pbw_FieldDescriptor_default_value_double | ( | const PbwFieldDescriptor * | field | ) |
Retrieves the default value of a double field descriptor.
| field | The PbwFieldDescriptor for which to retrieve the default value. |
| const PbwEnumValueDescriptor * pbw_FieldDescriptor_default_value_enum | ( | const PbwFieldDescriptor * | field | ) |
Get the default value of an enum field descriptor.
| field | The PbwFieldDescriptor to query. |
| float pbw_FieldDescriptor_default_value_float | ( | const PbwFieldDescriptor * | field | ) |
Retrieves the default value of a float field descriptor.
| field | Pointer to the PbwFieldDescriptor structure. |
| int32_t pbw_FieldDescriptor_default_value_int32 | ( | const PbwFieldDescriptor * | field | ) |
Retrieves the default value for an int32 field descriptor.
| field | The PbwFieldDescriptor to query. |
| int64_t pbw_FieldDescriptor_default_value_int64 | ( | const PbwFieldDescriptor * | field | ) |
Retrieves the default value for a field descriptor as an int64.
| field | The PbwFieldDescriptor to query. |
| const char * pbw_FieldDescriptor_default_value_string | ( | const PbwFieldDescriptor * | field, |
| int * | size | ||
| ) |
Get the default value string of a protobuf field descriptor.
| field | The PbwFieldDescriptor to query. |
| size | Pointer to an integer where the length of the default value string will be stored. |
| uint32_t pbw_FieldDescriptor_default_value_uint32 | ( | const PbwFieldDescriptor * | field | ) |
Retrieves the default value for a uint32 field descriptor.
| field | Pointer to the PbwFieldDescriptor structure. |
| uint64_t pbw_FieldDescriptor_default_value_uint64 | ( | const PbwFieldDescriptor * | field | ) |
Get the default value for a uint64 field descriptor.
| field | The PbwFieldDescriptor to query. |
| const PbwEnumDescriptor * pbw_FieldDescriptor_enum_type | ( | const PbwFieldDescriptor * | field | ) |
Get the enum type of a field descriptor.
| field | The PbwFieldDescriptor to query. |
| const char * pbw_FieldDescriptor_full_name | ( | const PbwFieldDescriptor * | field | ) |
Get the full name of a field descriptor.
| field | The field descriptor to query. |
| bool pbw_FieldDescriptor_has_default_value | ( | const PbwFieldDescriptor * | field | ) |
Check if a field descriptor has a default value.
| field | The field descriptor to check. |
| int pbw_FieldDescriptor_is_packed | ( | const PbwFieldDescriptor * | field | ) |
Checks if the given field descriptor is packed.
| field | The field descriptor to check. |
| int pbw_FieldDescriptor_is_repeated | ( | const PbwFieldDescriptor * | field | ) |
Check if a field descriptor is repeated.
| field | The field descriptor to check. |
| bool pbw_FieldDescriptor_is_required | ( | const PbwFieldDescriptor * | field | ) |
Check if a field descriptor is required.
| field | The field descriptor to check. |
| const PbwDescriptor * pbw_FieldDescriptor_message_type | ( | const PbwFieldDescriptor * | field | ) |
Retrieves the message type associated with a Protocol Buffers field descriptor.
| field | Pointer to the PbwFieldDescriptor structure. |
| const char * pbw_FieldDescriptor_name | ( | const PbwFieldDescriptor * | field | ) |
Retrieves the name of a Protocol Buffers field descriptor.
| field | Pointer to the PbwFieldDescriptor structure. |
| int pbw_FieldDescriptor_number | ( | const PbwFieldDescriptor * | field | ) |
Retrieves the number associated with a Protocol Buffers field descriptor.
| field | Pointer to the Protocol Buffers field descriptor. |
| int pbw_FieldDescriptor_type | ( | const PbwFieldDescriptor * | field | ) |
Get the type of a Protocol Buffers field descriptor.
| field | Pointer to the Protocol Buffers field descriptor. |
| const char * pbw_FieldDescriptor_typeName | ( | wmem_allocator_t * | scope, |
| int | field_type | ||
| ) |
Retrieves the type name for a given field type.
| scope | The memory allocator scope. |
| field_type | The field type to retrieve the type name for. |
| void pbw_foreach_message | ( | const PbwDescriptorPool * | pool, |
| void(*)(const PbwDescriptor *message, void *userdata) | cb, | ||
| void * | userdata | ||
| ) |
Iterates over all messages in a descriptor pool and applies a callback function to each.
| pool | The descriptor pool containing the messages. |
| cb | Callback function to be applied to each message, taking a PbwDescriptor pointer and user data as arguments. |
| userdata | User data to be passed to the callback function. |
| int pbw_load_proto_file | ( | PbwDescriptorPool * | pool, |
| const char * | filename | ||
| ) |
Loads a Protocol Buffers file into the descriptor pool.
| pool | The descriptor pool to load the file into. |
| filename | The path to the Protocol Buffers file to load. |
| const char * pbw_MethodDescriptor_full_name | ( | const PbwMethodDescriptor * | method | ) |
Get the full name of a method descriptor.
| method | The method descriptor to query. |
| const PbwDescriptor * pbw_MethodDescriptor_input_type | ( | const PbwMethodDescriptor * | method | ) |
Retrieves the input type descriptor for a method.
| method | Pointer to the PbwMethodDescriptor object. |
| const char * pbw_MethodDescriptor_name | ( | const PbwMethodDescriptor * | method | ) |
Get the name of a Protocol Buffers method descriptor.
| method | Pointer to the PbwMethodDescriptor structure. |
| const PbwDescriptor * pbw_MethodDescriptor_output_type | ( | const PbwMethodDescriptor * | method | ) |
Retrieves the output type of a method descriptor.
| method | The method descriptor to query. |
| void pbw_reinit_DescriptorPool | ( | PbwDescriptorPool ** | pool, |
| const char ** | directories, | ||
| pbw_report_error_cb_t | error_cb | ||
| ) |
Reinitialize PbwDescriptorPool according to proto files directories.
| pool | The output DescriptorPool will be created. If *pool is not NULL, it will free it first. |
| directories | The root directories containing proto files. Must end with NULL element. |
| error_cb | The error reporter callback function. |