/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: brintos_probe.proto */ #ifndef PROTOBUF_C_brintos_5fprobe_2eproto__INCLUDED #define PROTOBUF_C_brintos_5fprobe_2eproto__INCLUDED #include PROTOBUF_C__BEGIN_DECLS #if PROTOBUF_C_VERSION_NUMBER < 1003000 # 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 1005000 < PROTOBUF_C_MIN_COMPILER_VERSION # 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 Brintos__Weapon Brintos__Weapon; typedef struct Brintos__Probe Brintos__Probe; /* --- enums --- */ typedef enum _Brintos__Color { BRINTOS__COLOR__COLOR_RED = 0, BRINTOS__COLOR__COLOR_GREEN = 1, BRINTOS__COLOR__COLOR_BLUE = 2 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(BRINTOS__COLOR) } Brintos__Color; /* --- messages --- */ struct Brintos__Weapon { ProtobufCMessage base; char *name; int32_t damage; }; #define BRINTOS__WEAPON__INIT \ { PROTOBUF_C_MESSAGE_INIT (&brintos__weapon__descriptor) \ , (char *)protobuf_c_empty_string, 0 } struct Brintos__Probe { ProtobufCMessage base; /* * length-delimited */ char *name; /* * varint */ int32_t hp; /* * varint, left at its default to prove proto3 elides it */ int32_t mana; /* * varint (enum) */ Brintos__Color color; /* * PACKED length-delimited run of varints */ size_t n_inventory; int32_t *inventory; /* * repeated submessage */ size_t n_weapons; Brintos__Weapon **weapons; /* * length-delimited, carries NUL and high bytes */ ProtobufCBinaryData blob; /* * varint */ protobuf_c_boolean alive; /* * 64-bit fixed, little-endian IEEE754 */ double weight; /* * zigzag varint, negative */ int32_t depth; /* * 64-bit fixed, and DELIBERATELY THE HIGHEST FIELD */ uint64_t id; }; #define BRINTOS__PROBE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&brintos__probe__descriptor) \ , (char *)protobuf_c_empty_string, 0, 0, BRINTOS__COLOR__COLOR_RED, 0,NULL, 0,NULL, {0,NULL}, 0, 0, 0, 0 } /* Brintos__Weapon methods */ void brintos__weapon__init (Brintos__Weapon *message); size_t brintos__weapon__get_packed_size (const Brintos__Weapon *message); size_t brintos__weapon__pack (const Brintos__Weapon *message, uint8_t *out); size_t brintos__weapon__pack_to_buffer (const Brintos__Weapon *message, ProtobufCBuffer *buffer); Brintos__Weapon * brintos__weapon__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void brintos__weapon__free_unpacked (Brintos__Weapon *message, ProtobufCAllocator *allocator); /* Brintos__Probe methods */ void brintos__probe__init (Brintos__Probe *message); size_t brintos__probe__get_packed_size (const Brintos__Probe *message); size_t brintos__probe__pack (const Brintos__Probe *message, uint8_t *out); size_t brintos__probe__pack_to_buffer (const Brintos__Probe *message, ProtobufCBuffer *buffer); Brintos__Probe * brintos__probe__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void brintos__probe__free_unpacked (Brintos__Probe *message, ProtobufCAllocator *allocator); /* --- per-message closures --- */ typedef void (*Brintos__Weapon_Closure) (const Brintos__Weapon *message, void *closure_data); typedef void (*Brintos__Probe_Closure) (const Brintos__Probe *message, void *closure_data); /* --- services --- */ /* --- descriptors --- */ extern const ProtobufCEnumDescriptor brintos__color__descriptor; extern const ProtobufCMessageDescriptor brintos__weapon__descriptor; extern const ProtobufCMessageDescriptor brintos__probe__descriptor; PROTOBUF_C__END_DECLS #endif /* PROTOBUF_C_brintos_5fprobe_2eproto__INCLUDED */