/* 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[3] = { { "Name", 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 */ }, { "Version", 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 */ }, { "BuildDate", 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 */ }, }; static const unsigned device_information__field_indices_by_name[] = { 2, /* field[2] = BuildDate */ 0, /* field[0] = Name */ 1, /* field[1] = Version */ }; static const ProtobufCIntRange device_information__number_ranges[1 + 1] = { { 1, 0 }, { 0, 3 } }; const ProtobufCMessageDescriptor device_information__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "DeviceInformation", "DeviceInformation", "DeviceInformation", "", sizeof(DeviceInformation), 3, device_information__field_descriptors, device_information__field_indices_by_name, 1, device_information__number_ranges, (ProtobufCMessageInit) device_information__init, NULL,NULL,NULL /* reserved[123] */ };