/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: HardwareBlower.proto */ /* Do not generate deprecated warnings for self */ #ifndef PROTOBUF_C__NO_DEPRECATED #define PROTOBUF_C__NO_DEPRECATED #endif #include "HardwareBlower.pb-c.h" void hardware_blower__init (HardwareBlower *message) { static const HardwareBlower init_value = HARDWARE_BLOWER__INIT; *message = init_value; } size_t hardware_blower__get_packed_size (const HardwareBlower *message) { assert(message->base.descriptor == &hardware_blower__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t hardware_blower__pack (const HardwareBlower *message, uint8_t *out) { assert(message->base.descriptor == &hardware_blower__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t hardware_blower__pack_to_buffer (const HardwareBlower *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &hardware_blower__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } HardwareBlower * hardware_blower__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (HardwareBlower *) protobuf_c_message_unpack (&hardware_blower__descriptor, allocator, len, data); } void hardware_blower__free_unpacked (HardwareBlower *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &hardware_blower__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } static const ProtobufCFieldDescriptor hardware_blower__field_descriptors[4] = { { "", 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_ENUM, offsetof(HardwareBlower, has_hardwareblowertype), offsetof(HardwareBlower, hardwareblowertype), &hardware_blower_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(HardwareBlower, has_enabled), offsetof(HardwareBlower, enabled), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 3, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_DOUBLE, offsetof(HardwareBlower, has_voltage), offsetof(HardwareBlower, voltage), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 4, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_DOUBLE, offsetof(HardwareBlower, has_heatingvoltage), offsetof(HardwareBlower, heatingvoltage), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned hardware_blower__field_indices_by_name[] = { 1, /* field[1] = Enabled */ 0, /* field[0] = HardwareBlowerType */ 3, /* field[3] = HeatingVoltage */ 2, /* field[2] = Voltage */ }; static const ProtobufCIntRange hardware_blower__number_ranges[1 + 1] = { { 1, 0 }, { 0, 4 } }; const ProtobufCMessageDescriptor hardware_blower__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "", "", "", "", sizeof(HardwareBlower), 4, hardware_blower__field_descriptors, hardware_blower__field_indices_by_name, 1, hardware_blower__number_ranges, (ProtobufCMessageInit) hardware_blower__init, NULL,NULL,NULL /* reserved[123] */ };