plcrashreporter/Tests/PLCrashLogWriterEncodingTes...

108 строки
3.3 KiB
C
Исходник Обычный вид История

2020-04-24 19:54:46 +03:00
/* Generated by the protocol buffer compiler. DO NOT EDIT! */
/* Generated from: PLCrashLogWriterEncodingTests.proto */
#ifndef PROTOBUF_C_PLCrashLogWriterEncodingTests_2eproto__INCLUDED
#define PROTOBUF_C_PLCrashLogWriterEncodingTests_2eproto__INCLUDED
#include <protobuf-c/protobuf-c.h>
PROTOBUF_C__BEGIN_DECLS
#if PROTOBUF_C_VERSION_NUMBER < 1000000
# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
#elif 1003003 < PROTOBUF_C_MIN_COMPILER_VERSION
2020-04-24 19:54:46 +03:00
# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c.
#endif
typedef struct _EncoderTest EncoderTest;
/* --- enums --- */
typedef enum _EncoderTest__Enum {
ENCODER_TEST__ENUM__Value1 = 1,
ENCODER_TEST__ENUM__Value2 = 2
PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(ENCODER_TEST__ENUM)
} EncoderTest__Enum;
/* --- messages --- */
struct _EncoderTest
{
ProtobufCMessage base;
protobuf_c_boolean has_int32;
int32_t int32;
protobuf_c_boolean has_uint32;
uint32_t uint32;
protobuf_c_boolean has_sint32;
int32_t sint32;
protobuf_c_boolean has_fixed32;
uint32_t fixed32;
protobuf_c_boolean has_sfixed32;
int32_t sfixed32;
protobuf_c_boolean has_int64;
int64_t int64;
protobuf_c_boolean has_uint64;
uint64_t uint64;
protobuf_c_boolean has_sint64;
int64_t sint64;
protobuf_c_boolean has_fixed64;
uint64_t fixed64;
protobuf_c_boolean has_sfixed64;
int64_t sfixed64;
protobuf_c_boolean has_float_;
float float_;
protobuf_c_boolean has_double_;
double double_;
protobuf_c_boolean has_bool_;
protobuf_c_boolean bool_;
protobuf_c_boolean has_enum_;
EncoderTest__Enum enum_;
protobuf_c_boolean has_bytes;
ProtobufCBinaryData bytes;
char *string;
};
#define ENCODER_TEST__INIT \
{ PROTOBUF_C_MESSAGE_INIT (&encoder_test__descriptor) \
, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ENCODER_TEST__ENUM__Value1, 0, {0,NULL}, NULL }
/* EncoderTest methods */
void encoder_test__init
(EncoderTest *message);
size_t encoder_test__get_packed_size
(const EncoderTest *message);
size_t encoder_test__pack
(const EncoderTest *message,
uint8_t *out);
size_t encoder_test__pack_to_buffer
(const EncoderTest *message,
ProtobufCBuffer *buffer);
EncoderTest *
encoder_test__unpack
(ProtobufCAllocator *allocator,
size_t len,
const uint8_t *data);
void encoder_test__free_unpacked
(EncoderTest *message,
ProtobufCAllocator *allocator);
/* --- per-message closures --- */
typedef void (*EncoderTest_Closure)
(const EncoderTest *message,
void *closure_data);
/* --- services --- */
/* --- descriptors --- */
extern const ProtobufCMessageDescriptor encoder_test__descriptor;
extern const ProtobufCEnumDescriptor encoder_test__enum__descriptor;
PROTOBUF_C__END_DECLS
#endif /* PROTOBUF_C_PLCrashLogWriterEncodingTests_2eproto__INCLUDED */