/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: DeviceInformation.proto */ /* Do not generate deprecated warnings for self */ #ifndef PROTOBUF_C__NO_DEPRECATED #define PROTOBUF_C__NO_DEPRECATED #endif #include "DeviceInformation.pb-c.h" void device_information__init (DeviceInformation *message) { static const DeviceInformation init_value = DEVICE_INFORMATION__INIT; *message = init_value; } size_t device_information__get_packed_size (const DeviceInformation *message) { assert(message->base.descriptor == &device_information__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t device_information__pack (const DeviceInformation *message, uint8_t *out) { assert(message->base.descriptor == &device_information__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t device_information__pack_to_buffer (const DeviceInformation *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &device_information__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } DeviceInformation * device_information__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (DeviceInformation *) protobuf_c_message_unpack (&device_information__descriptor, allocator, len, data); } void device_information__free_unpacked (DeviceInformation *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &device_information__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } static const ProtobufCFieldDescriptor device_information__field_descriptors[9] = { { "", 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(DeviceInformation, name), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(DeviceInformation, version), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 3, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(DeviceInformation, builddate), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 4, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(DeviceInformation, boardrevision), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 5, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(DeviceInformation, assemblyversion), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 6, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(DeviceInformation, fpga1version), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 7, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(DeviceInformation, fpga2version), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 8, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_STRING, 0, /* quantifier_offset */ offsetof(DeviceInformation, fpga3version), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 9, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(DeviceInformation, has_diagnosticsinterval), offsetof(DeviceInformation, diagnosticsinterval), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned device_information__field_indices_by_name[] = { 4, /* field[4] = AssemblyVersion */ 3, /* field[3] = BoardRevision */ 2, /* field[2] = BuildDate */ 8, /* field[8] = DiagnosticsInterval */ 5, /* field[5] = FPGA1Version */ 6, /* field[6] = FPGA2Version */ 7, /* field[7] = FPGA3Version */ 0, /* field[0] = Name */ 1, /* field[1] = Version */ }; static const ProtobufCIntRange device_information__number_ranges[1 + 1] = { { 1, 0 }, { 0, 9 } }; const ProtobufCMessageDescriptor device_information__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "", "", "", "", sizeof(DeviceInformation), 9, device_information__field_descriptors, device_information__field_indices_by_name, 1, device_information__number_ranges, (ProtobufCMessageInit) device_information__init, NULL,NULL,NULL /* reserved[123] */ };