diff options
Diffstat (limited to 'epan/protobuf-helper.h')
-rw-r--r-- | epan/protobuf-helper.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/epan/protobuf-helper.h b/epan/protobuf-helper.h index 623a980d..56679a93 100644 --- a/epan/protobuf-helper.h +++ b/epan/protobuf-helper.h @@ -16,9 +16,9 @@ * - The data type of FIELD which assuring the value of protobuf field of packet can be dissected correctly. * * At present, we use C Protocol Buffers Language Parser which generated by protobuf_lang_parser.lemon and protobuf_lang_scanner.l. - * Because wireshark is mainly implemented in plain ANSI C but the offical protobuf library is implemented in C++ language. + * Because wireshark is mainly implemented in plain ANSI C but the official protobuf library is implemented in C++ language. * - * One day, if C++ library is allowd, we can create a protobuf-helper.cpp file, that invoking offical protobuf C++ library directly, + * One day, if C++ library is allowed, we can create a protobuf-helper.cpp file, that invoking official protobuf C++ library directly, * to replace protobuf-helper.c. The packet-protobuf.c can keep unchanged. */ @@ -81,7 +81,7 @@ typedef void(*pbw_report_error_cb_t)(const char *msg_format, ...); void pbw_reinit_DescriptorPool(PbwDescriptorPool** pool, const char** directories, pbw_report_error_cb_t error_cb); -/* load a proto file, return 0 if successed */ +/* load a proto file, return 0 if success */ int pbw_load_proto_file(PbwDescriptorPool* pool, const char* filename); @@ -170,44 +170,44 @@ const PbwEnumDescriptor* pbw_FieldDescriptor_enum_type(const PbwFieldDescriptor* field); /* like FieldDescriptor::is_required() */ -gboolean +bool pbw_FieldDescriptor_is_required(const PbwFieldDescriptor* field); /* like FieldDescriptor::has_default_value(). * Does this field have an explicitly-declared default value? */ -gboolean +bool pbw_FieldDescriptor_has_default_value(const PbwFieldDescriptor* field); /* like FieldDescriptor::default_value_int32() */ -gint32 +int32_t pbw_FieldDescriptor_default_value_int32(const PbwFieldDescriptor* field); /* like FieldDescriptor::default_value_int64() */ -gint64 +int64_t pbw_FieldDescriptor_default_value_int64(const PbwFieldDescriptor* field); /* like FieldDescriptor::default_value_uint32() */ -guint32 +uint32_t pbw_FieldDescriptor_default_value_uint32(const PbwFieldDescriptor* field); /* like FieldDescriptor::default_value_uint64() */ -guint64 +uint64_t pbw_FieldDescriptor_default_value_uint64(const PbwFieldDescriptor* field); /* like FieldDescriptor::default_value_float() */ -gfloat +float pbw_FieldDescriptor_default_value_float(const PbwFieldDescriptor* field); /* like FieldDescriptor::default_value_double() */ -gdouble +double pbw_FieldDescriptor_default_value_double(const PbwFieldDescriptor* field); /* like FieldDescriptor::default_value_bool() */ -gboolean +bool pbw_FieldDescriptor_default_value_bool(const PbwFieldDescriptor* field); /* like FieldDescriptor::default_value_string() */ -const gchar* +const char* pbw_FieldDescriptor_default_value_string(const PbwFieldDescriptor* field, int* size); /* like FieldDescriptor::default_value_enum() */ @@ -236,7 +236,7 @@ pbw_EnumDescriptor_FindValueByNumber(const PbwEnumDescriptor* anEnum, int number /* like EnumDescriptor::FindValueByName() */ const PbwEnumValueDescriptor* -pbw_EnumDescriptor_FindValueByName(const PbwEnumDescriptor* anEnum, const gchar* name); +pbw_EnumDescriptor_FindValueByName(const PbwEnumDescriptor* anEnum, const char* name); /* like EnumValueDescriptor::name() */ const char* |