mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
b75f8b1b20
List of changes: * New component esp_local_ctrl added * Example added under examples/protocols/esp_local_ctrl * Documentation added under protocols/esp_local_ctrl * Demo client side app esp_local_ctrl.py added under examples/protocols/esp_local_ctrl/scripts * protocomm_ble : protocomm_ble_config_t given struct name for allowing forward declaration * esp_prov/transport_softap renamed to transport_http * transport_http module supports verification of server certificate * transport_http module performs name resolution before connection
943 lines
30 KiB
C
943 lines
30 KiB
C
/* Generated by the protocol buffer compiler. DO NOT EDIT! */
|
|
/* Generated from: esp_local_ctrl.proto */
|
|
|
|
/* Do not generate deprecated warnings for self */
|
|
#ifndef PROTOBUF_C__NO_DEPRECATED
|
|
#define PROTOBUF_C__NO_DEPRECATED
|
|
#endif
|
|
|
|
#include "esp_local_ctrl.pb-c.h"
|
|
void cmd_get_property_count__init
|
|
(CmdGetPropertyCount *message)
|
|
{
|
|
static const CmdGetPropertyCount init_value = CMD_GET_PROPERTY_COUNT__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t cmd_get_property_count__get_packed_size
|
|
(const CmdGetPropertyCount *message)
|
|
{
|
|
assert(message->base.descriptor == &cmd_get_property_count__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t cmd_get_property_count__pack
|
|
(const CmdGetPropertyCount *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &cmd_get_property_count__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t cmd_get_property_count__pack_to_buffer
|
|
(const CmdGetPropertyCount *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &cmd_get_property_count__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
CmdGetPropertyCount *
|
|
cmd_get_property_count__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (CmdGetPropertyCount *)
|
|
protobuf_c_message_unpack (&cmd_get_property_count__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void cmd_get_property_count__free_unpacked
|
|
(CmdGetPropertyCount *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
if(!message)
|
|
return;
|
|
assert(message->base.descriptor == &cmd_get_property_count__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void resp_get_property_count__init
|
|
(RespGetPropertyCount *message)
|
|
{
|
|
static const RespGetPropertyCount init_value = RESP_GET_PROPERTY_COUNT__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t resp_get_property_count__get_packed_size
|
|
(const RespGetPropertyCount *message)
|
|
{
|
|
assert(message->base.descriptor == &resp_get_property_count__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t resp_get_property_count__pack
|
|
(const RespGetPropertyCount *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &resp_get_property_count__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t resp_get_property_count__pack_to_buffer
|
|
(const RespGetPropertyCount *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &resp_get_property_count__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
RespGetPropertyCount *
|
|
resp_get_property_count__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (RespGetPropertyCount *)
|
|
protobuf_c_message_unpack (&resp_get_property_count__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void resp_get_property_count__free_unpacked
|
|
(RespGetPropertyCount *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
if(!message)
|
|
return;
|
|
assert(message->base.descriptor == &resp_get_property_count__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void property_info__init
|
|
(PropertyInfo *message)
|
|
{
|
|
static const PropertyInfo init_value = PROPERTY_INFO__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t property_info__get_packed_size
|
|
(const PropertyInfo *message)
|
|
{
|
|
assert(message->base.descriptor == &property_info__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t property_info__pack
|
|
(const PropertyInfo *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &property_info__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t property_info__pack_to_buffer
|
|
(const PropertyInfo *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &property_info__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
PropertyInfo *
|
|
property_info__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (PropertyInfo *)
|
|
protobuf_c_message_unpack (&property_info__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void property_info__free_unpacked
|
|
(PropertyInfo *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
if(!message)
|
|
return;
|
|
assert(message->base.descriptor == &property_info__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void cmd_get_property_values__init
|
|
(CmdGetPropertyValues *message)
|
|
{
|
|
static const CmdGetPropertyValues init_value = CMD_GET_PROPERTY_VALUES__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t cmd_get_property_values__get_packed_size
|
|
(const CmdGetPropertyValues *message)
|
|
{
|
|
assert(message->base.descriptor == &cmd_get_property_values__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t cmd_get_property_values__pack
|
|
(const CmdGetPropertyValues *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &cmd_get_property_values__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t cmd_get_property_values__pack_to_buffer
|
|
(const CmdGetPropertyValues *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &cmd_get_property_values__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
CmdGetPropertyValues *
|
|
cmd_get_property_values__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (CmdGetPropertyValues *)
|
|
protobuf_c_message_unpack (&cmd_get_property_values__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void cmd_get_property_values__free_unpacked
|
|
(CmdGetPropertyValues *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
if(!message)
|
|
return;
|
|
assert(message->base.descriptor == &cmd_get_property_values__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void resp_get_property_values__init
|
|
(RespGetPropertyValues *message)
|
|
{
|
|
static const RespGetPropertyValues init_value = RESP_GET_PROPERTY_VALUES__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t resp_get_property_values__get_packed_size
|
|
(const RespGetPropertyValues *message)
|
|
{
|
|
assert(message->base.descriptor == &resp_get_property_values__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t resp_get_property_values__pack
|
|
(const RespGetPropertyValues *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &resp_get_property_values__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t resp_get_property_values__pack_to_buffer
|
|
(const RespGetPropertyValues *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &resp_get_property_values__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
RespGetPropertyValues *
|
|
resp_get_property_values__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (RespGetPropertyValues *)
|
|
protobuf_c_message_unpack (&resp_get_property_values__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void resp_get_property_values__free_unpacked
|
|
(RespGetPropertyValues *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
if(!message)
|
|
return;
|
|
assert(message->base.descriptor == &resp_get_property_values__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void property_value__init
|
|
(PropertyValue *message)
|
|
{
|
|
static const PropertyValue init_value = PROPERTY_VALUE__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t property_value__get_packed_size
|
|
(const PropertyValue *message)
|
|
{
|
|
assert(message->base.descriptor == &property_value__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t property_value__pack
|
|
(const PropertyValue *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &property_value__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t property_value__pack_to_buffer
|
|
(const PropertyValue *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &property_value__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
PropertyValue *
|
|
property_value__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (PropertyValue *)
|
|
protobuf_c_message_unpack (&property_value__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void property_value__free_unpacked
|
|
(PropertyValue *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
if(!message)
|
|
return;
|
|
assert(message->base.descriptor == &property_value__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void cmd_set_property_values__init
|
|
(CmdSetPropertyValues *message)
|
|
{
|
|
static const CmdSetPropertyValues init_value = CMD_SET_PROPERTY_VALUES__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t cmd_set_property_values__get_packed_size
|
|
(const CmdSetPropertyValues *message)
|
|
{
|
|
assert(message->base.descriptor == &cmd_set_property_values__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t cmd_set_property_values__pack
|
|
(const CmdSetPropertyValues *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &cmd_set_property_values__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t cmd_set_property_values__pack_to_buffer
|
|
(const CmdSetPropertyValues *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &cmd_set_property_values__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
CmdSetPropertyValues *
|
|
cmd_set_property_values__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (CmdSetPropertyValues *)
|
|
protobuf_c_message_unpack (&cmd_set_property_values__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void cmd_set_property_values__free_unpacked
|
|
(CmdSetPropertyValues *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
if(!message)
|
|
return;
|
|
assert(message->base.descriptor == &cmd_set_property_values__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void resp_set_property_values__init
|
|
(RespSetPropertyValues *message)
|
|
{
|
|
static const RespSetPropertyValues init_value = RESP_SET_PROPERTY_VALUES__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t resp_set_property_values__get_packed_size
|
|
(const RespSetPropertyValues *message)
|
|
{
|
|
assert(message->base.descriptor == &resp_set_property_values__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t resp_set_property_values__pack
|
|
(const RespSetPropertyValues *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &resp_set_property_values__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t resp_set_property_values__pack_to_buffer
|
|
(const RespSetPropertyValues *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &resp_set_property_values__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
RespSetPropertyValues *
|
|
resp_set_property_values__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (RespSetPropertyValues *)
|
|
protobuf_c_message_unpack (&resp_set_property_values__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void resp_set_property_values__free_unpacked
|
|
(RespSetPropertyValues *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
if(!message)
|
|
return;
|
|
assert(message->base.descriptor == &resp_set_property_values__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
void local_ctrl_message__init
|
|
(LocalCtrlMessage *message)
|
|
{
|
|
static const LocalCtrlMessage init_value = LOCAL_CTRL_MESSAGE__INIT;
|
|
*message = init_value;
|
|
}
|
|
size_t local_ctrl_message__get_packed_size
|
|
(const LocalCtrlMessage *message)
|
|
{
|
|
assert(message->base.descriptor == &local_ctrl_message__descriptor);
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
|
}
|
|
size_t local_ctrl_message__pack
|
|
(const LocalCtrlMessage *message,
|
|
uint8_t *out)
|
|
{
|
|
assert(message->base.descriptor == &local_ctrl_message__descriptor);
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
|
}
|
|
size_t local_ctrl_message__pack_to_buffer
|
|
(const LocalCtrlMessage *message,
|
|
ProtobufCBuffer *buffer)
|
|
{
|
|
assert(message->base.descriptor == &local_ctrl_message__descriptor);
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
|
}
|
|
LocalCtrlMessage *
|
|
local_ctrl_message__unpack
|
|
(ProtobufCAllocator *allocator,
|
|
size_t len,
|
|
const uint8_t *data)
|
|
{
|
|
return (LocalCtrlMessage *)
|
|
protobuf_c_message_unpack (&local_ctrl_message__descriptor,
|
|
allocator, len, data);
|
|
}
|
|
void local_ctrl_message__free_unpacked
|
|
(LocalCtrlMessage *message,
|
|
ProtobufCAllocator *allocator)
|
|
{
|
|
if(!message)
|
|
return;
|
|
assert(message->base.descriptor == &local_ctrl_message__descriptor);
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
|
}
|
|
#define cmd_get_property_count__field_descriptors NULL
|
|
#define cmd_get_property_count__field_indices_by_name NULL
|
|
#define cmd_get_property_count__number_ranges NULL
|
|
const ProtobufCMessageDescriptor cmd_get_property_count__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"CmdGetPropertyCount",
|
|
"CmdGetPropertyCount",
|
|
"CmdGetPropertyCount",
|
|
"",
|
|
sizeof(CmdGetPropertyCount),
|
|
0,
|
|
cmd_get_property_count__field_descriptors,
|
|
cmd_get_property_count__field_indices_by_name,
|
|
0, cmd_get_property_count__number_ranges,
|
|
(ProtobufCMessageInit) cmd_get_property_count__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor resp_get_property_count__field_descriptors[2] =
|
|
{
|
|
{
|
|
"status",
|
|
1,
|
|
PROTOBUF_C_LABEL_NONE,
|
|
PROTOBUF_C_TYPE_ENUM,
|
|
0, /* quantifier_offset */
|
|
offsetof(RespGetPropertyCount, status),
|
|
&status__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"count",
|
|
2,
|
|
PROTOBUF_C_LABEL_NONE,
|
|
PROTOBUF_C_TYPE_UINT32,
|
|
0, /* quantifier_offset */
|
|
offsetof(RespGetPropertyCount, count),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned resp_get_property_count__field_indices_by_name[] = {
|
|
1, /* field[1] = count */
|
|
0, /* field[0] = status */
|
|
};
|
|
static const ProtobufCIntRange resp_get_property_count__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 2 }
|
|
};
|
|
const ProtobufCMessageDescriptor resp_get_property_count__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"RespGetPropertyCount",
|
|
"RespGetPropertyCount",
|
|
"RespGetPropertyCount",
|
|
"",
|
|
sizeof(RespGetPropertyCount),
|
|
2,
|
|
resp_get_property_count__field_descriptors,
|
|
resp_get_property_count__field_indices_by_name,
|
|
1, resp_get_property_count__number_ranges,
|
|
(ProtobufCMessageInit) resp_get_property_count__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor property_info__field_descriptors[5] =
|
|
{
|
|
{
|
|
"status",
|
|
1,
|
|
PROTOBUF_C_LABEL_NONE,
|
|
PROTOBUF_C_TYPE_ENUM,
|
|
0, /* quantifier_offset */
|
|
offsetof(PropertyInfo, status),
|
|
&status__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"name",
|
|
2,
|
|
PROTOBUF_C_LABEL_NONE,
|
|
PROTOBUF_C_TYPE_STRING,
|
|
0, /* quantifier_offset */
|
|
offsetof(PropertyInfo, name),
|
|
NULL,
|
|
&protobuf_c_empty_string,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"type",
|
|
3,
|
|
PROTOBUF_C_LABEL_NONE,
|
|
PROTOBUF_C_TYPE_UINT32,
|
|
0, /* quantifier_offset */
|
|
offsetof(PropertyInfo, type),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"flags",
|
|
4,
|
|
PROTOBUF_C_LABEL_NONE,
|
|
PROTOBUF_C_TYPE_UINT32,
|
|
0, /* quantifier_offset */
|
|
offsetof(PropertyInfo, flags),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"value",
|
|
5,
|
|
PROTOBUF_C_LABEL_NONE,
|
|
PROTOBUF_C_TYPE_BYTES,
|
|
0, /* quantifier_offset */
|
|
offsetof(PropertyInfo, value),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned property_info__field_indices_by_name[] = {
|
|
3, /* field[3] = flags */
|
|
1, /* field[1] = name */
|
|
0, /* field[0] = status */
|
|
2, /* field[2] = type */
|
|
4, /* field[4] = value */
|
|
};
|
|
static const ProtobufCIntRange property_info__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 5 }
|
|
};
|
|
const ProtobufCMessageDescriptor property_info__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"PropertyInfo",
|
|
"PropertyInfo",
|
|
"PropertyInfo",
|
|
"",
|
|
sizeof(PropertyInfo),
|
|
5,
|
|
property_info__field_descriptors,
|
|
property_info__field_indices_by_name,
|
|
1, property_info__number_ranges,
|
|
(ProtobufCMessageInit) property_info__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor cmd_get_property_values__field_descriptors[1] =
|
|
{
|
|
{
|
|
"indices",
|
|
1,
|
|
PROTOBUF_C_LABEL_REPEATED,
|
|
PROTOBUF_C_TYPE_UINT32,
|
|
offsetof(CmdGetPropertyValues, n_indices),
|
|
offsetof(CmdGetPropertyValues, indices),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned cmd_get_property_values__field_indices_by_name[] = {
|
|
0, /* field[0] = indices */
|
|
};
|
|
static const ProtobufCIntRange cmd_get_property_values__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 1 }
|
|
};
|
|
const ProtobufCMessageDescriptor cmd_get_property_values__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"CmdGetPropertyValues",
|
|
"CmdGetPropertyValues",
|
|
"CmdGetPropertyValues",
|
|
"",
|
|
sizeof(CmdGetPropertyValues),
|
|
1,
|
|
cmd_get_property_values__field_descriptors,
|
|
cmd_get_property_values__field_indices_by_name,
|
|
1, cmd_get_property_values__number_ranges,
|
|
(ProtobufCMessageInit) cmd_get_property_values__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor resp_get_property_values__field_descriptors[2] =
|
|
{
|
|
{
|
|
"status",
|
|
1,
|
|
PROTOBUF_C_LABEL_NONE,
|
|
PROTOBUF_C_TYPE_ENUM,
|
|
0, /* quantifier_offset */
|
|
offsetof(RespGetPropertyValues, status),
|
|
&status__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"props",
|
|
2,
|
|
PROTOBUF_C_LABEL_REPEATED,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(RespGetPropertyValues, n_props),
|
|
offsetof(RespGetPropertyValues, props),
|
|
&property_info__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned resp_get_property_values__field_indices_by_name[] = {
|
|
1, /* field[1] = props */
|
|
0, /* field[0] = status */
|
|
};
|
|
static const ProtobufCIntRange resp_get_property_values__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 2 }
|
|
};
|
|
const ProtobufCMessageDescriptor resp_get_property_values__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"RespGetPropertyValues",
|
|
"RespGetPropertyValues",
|
|
"RespGetPropertyValues",
|
|
"",
|
|
sizeof(RespGetPropertyValues),
|
|
2,
|
|
resp_get_property_values__field_descriptors,
|
|
resp_get_property_values__field_indices_by_name,
|
|
1, resp_get_property_values__number_ranges,
|
|
(ProtobufCMessageInit) resp_get_property_values__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor property_value__field_descriptors[2] =
|
|
{
|
|
{
|
|
"index",
|
|
1,
|
|
PROTOBUF_C_LABEL_NONE,
|
|
PROTOBUF_C_TYPE_UINT32,
|
|
0, /* quantifier_offset */
|
|
offsetof(PropertyValue, index),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"value",
|
|
2,
|
|
PROTOBUF_C_LABEL_NONE,
|
|
PROTOBUF_C_TYPE_BYTES,
|
|
0, /* quantifier_offset */
|
|
offsetof(PropertyValue, value),
|
|
NULL,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned property_value__field_indices_by_name[] = {
|
|
0, /* field[0] = index */
|
|
1, /* field[1] = value */
|
|
};
|
|
static const ProtobufCIntRange property_value__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 2 }
|
|
};
|
|
const ProtobufCMessageDescriptor property_value__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"PropertyValue",
|
|
"PropertyValue",
|
|
"PropertyValue",
|
|
"",
|
|
sizeof(PropertyValue),
|
|
2,
|
|
property_value__field_descriptors,
|
|
property_value__field_indices_by_name,
|
|
1, property_value__number_ranges,
|
|
(ProtobufCMessageInit) property_value__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor cmd_set_property_values__field_descriptors[1] =
|
|
{
|
|
{
|
|
"props",
|
|
1,
|
|
PROTOBUF_C_LABEL_REPEATED,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(CmdSetPropertyValues, n_props),
|
|
offsetof(CmdSetPropertyValues, props),
|
|
&property_value__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned cmd_set_property_values__field_indices_by_name[] = {
|
|
0, /* field[0] = props */
|
|
};
|
|
static const ProtobufCIntRange cmd_set_property_values__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 1 }
|
|
};
|
|
const ProtobufCMessageDescriptor cmd_set_property_values__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"CmdSetPropertyValues",
|
|
"CmdSetPropertyValues",
|
|
"CmdSetPropertyValues",
|
|
"",
|
|
sizeof(CmdSetPropertyValues),
|
|
1,
|
|
cmd_set_property_values__field_descriptors,
|
|
cmd_set_property_values__field_indices_by_name,
|
|
1, cmd_set_property_values__number_ranges,
|
|
(ProtobufCMessageInit) cmd_set_property_values__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor resp_set_property_values__field_descriptors[1] =
|
|
{
|
|
{
|
|
"status",
|
|
1,
|
|
PROTOBUF_C_LABEL_NONE,
|
|
PROTOBUF_C_TYPE_ENUM,
|
|
0, /* quantifier_offset */
|
|
offsetof(RespSetPropertyValues, status),
|
|
&status__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned resp_set_property_values__field_indices_by_name[] = {
|
|
0, /* field[0] = status */
|
|
};
|
|
static const ProtobufCIntRange resp_set_property_values__number_ranges[1 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 0, 1 }
|
|
};
|
|
const ProtobufCMessageDescriptor resp_set_property_values__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"RespSetPropertyValues",
|
|
"RespSetPropertyValues",
|
|
"RespSetPropertyValues",
|
|
"",
|
|
sizeof(RespSetPropertyValues),
|
|
1,
|
|
resp_set_property_values__field_descriptors,
|
|
resp_set_property_values__field_indices_by_name,
|
|
1, resp_set_property_values__number_ranges,
|
|
(ProtobufCMessageInit) resp_set_property_values__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCFieldDescriptor local_ctrl_message__field_descriptors[7] =
|
|
{
|
|
{
|
|
"msg",
|
|
1,
|
|
PROTOBUF_C_LABEL_NONE,
|
|
PROTOBUF_C_TYPE_ENUM,
|
|
0, /* quantifier_offset */
|
|
offsetof(LocalCtrlMessage, msg),
|
|
&local_ctrl_msg_type__descriptor,
|
|
NULL,
|
|
0, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"cmd_get_prop_count",
|
|
10,
|
|
PROTOBUF_C_LABEL_NONE,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(LocalCtrlMessage, payload_case),
|
|
offsetof(LocalCtrlMessage, cmd_get_prop_count),
|
|
&cmd_get_property_count__descriptor,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"resp_get_prop_count",
|
|
11,
|
|
PROTOBUF_C_LABEL_NONE,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(LocalCtrlMessage, payload_case),
|
|
offsetof(LocalCtrlMessage, resp_get_prop_count),
|
|
&resp_get_property_count__descriptor,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"cmd_get_prop_vals",
|
|
12,
|
|
PROTOBUF_C_LABEL_NONE,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(LocalCtrlMessage, payload_case),
|
|
offsetof(LocalCtrlMessage, cmd_get_prop_vals),
|
|
&cmd_get_property_values__descriptor,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"resp_get_prop_vals",
|
|
13,
|
|
PROTOBUF_C_LABEL_NONE,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(LocalCtrlMessage, payload_case),
|
|
offsetof(LocalCtrlMessage, resp_get_prop_vals),
|
|
&resp_get_property_values__descriptor,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"cmd_set_prop_vals",
|
|
14,
|
|
PROTOBUF_C_LABEL_NONE,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(LocalCtrlMessage, payload_case),
|
|
offsetof(LocalCtrlMessage, cmd_set_prop_vals),
|
|
&cmd_set_property_values__descriptor,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
{
|
|
"resp_set_prop_vals",
|
|
15,
|
|
PROTOBUF_C_LABEL_NONE,
|
|
PROTOBUF_C_TYPE_MESSAGE,
|
|
offsetof(LocalCtrlMessage, payload_case),
|
|
offsetof(LocalCtrlMessage, resp_set_prop_vals),
|
|
&resp_set_property_values__descriptor,
|
|
NULL,
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
|
},
|
|
};
|
|
static const unsigned local_ctrl_message__field_indices_by_name[] = {
|
|
1, /* field[1] = cmd_get_prop_count */
|
|
3, /* field[3] = cmd_get_prop_vals */
|
|
5, /* field[5] = cmd_set_prop_vals */
|
|
0, /* field[0] = msg */
|
|
2, /* field[2] = resp_get_prop_count */
|
|
4, /* field[4] = resp_get_prop_vals */
|
|
6, /* field[6] = resp_set_prop_vals */
|
|
};
|
|
static const ProtobufCIntRange local_ctrl_message__number_ranges[2 + 1] =
|
|
{
|
|
{ 1, 0 },
|
|
{ 10, 1 },
|
|
{ 0, 7 }
|
|
};
|
|
const ProtobufCMessageDescriptor local_ctrl_message__descriptor =
|
|
{
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
|
"LocalCtrlMessage",
|
|
"LocalCtrlMessage",
|
|
"LocalCtrlMessage",
|
|
"",
|
|
sizeof(LocalCtrlMessage),
|
|
7,
|
|
local_ctrl_message__field_descriptors,
|
|
local_ctrl_message__field_indices_by_name,
|
|
2, local_ctrl_message__number_ranges,
|
|
(ProtobufCMessageInit) local_ctrl_message__init,
|
|
NULL,NULL,NULL /* reserved[123] */
|
|
};
|
|
static const ProtobufCEnumValue local_ctrl_msg_type__enum_values_by_number[6] =
|
|
{
|
|
{ "TypeCmdGetPropertyCount", "LOCAL_CTRL_MSG_TYPE__TypeCmdGetPropertyCount", 0 },
|
|
{ "TypeRespGetPropertyCount", "LOCAL_CTRL_MSG_TYPE__TypeRespGetPropertyCount", 1 },
|
|
{ "TypeCmdGetPropertyValues", "LOCAL_CTRL_MSG_TYPE__TypeCmdGetPropertyValues", 4 },
|
|
{ "TypeRespGetPropertyValues", "LOCAL_CTRL_MSG_TYPE__TypeRespGetPropertyValues", 5 },
|
|
{ "TypeCmdSetPropertyValues", "LOCAL_CTRL_MSG_TYPE__TypeCmdSetPropertyValues", 6 },
|
|
{ "TypeRespSetPropertyValues", "LOCAL_CTRL_MSG_TYPE__TypeRespSetPropertyValues", 7 },
|
|
};
|
|
static const ProtobufCIntRange local_ctrl_msg_type__value_ranges[] = {
|
|
{0, 0},{4, 2},{0, 6}
|
|
};
|
|
static const ProtobufCEnumValueIndex local_ctrl_msg_type__enum_values_by_name[6] =
|
|
{
|
|
{ "TypeCmdGetPropertyCount", 0 },
|
|
{ "TypeCmdGetPropertyValues", 2 },
|
|
{ "TypeCmdSetPropertyValues", 4 },
|
|
{ "TypeRespGetPropertyCount", 1 },
|
|
{ "TypeRespGetPropertyValues", 3 },
|
|
{ "TypeRespSetPropertyValues", 5 },
|
|
};
|
|
const ProtobufCEnumDescriptor local_ctrl_msg_type__descriptor =
|
|
{
|
|
PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC,
|
|
"LocalCtrlMsgType",
|
|
"LocalCtrlMsgType",
|
|
"LocalCtrlMsgType",
|
|
"",
|
|
6,
|
|
local_ctrl_msg_type__enum_values_by_number,
|
|
6,
|
|
local_ctrl_msg_type__enum_values_by_name,
|
|
2,
|
|
local_ctrl_msg_type__value_ranges,
|
|
NULL,NULL,NULL,NULL /* reserved[1234] */
|
|
};
|