mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
ESP Local Control Feature Added
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
This commit is contained in:
942
components/esp_local_ctrl/proto-c/esp_local_ctrl.pb-c.c
Normal file
942
components/esp_local_ctrl/proto-c/esp_local_ctrl.pb-c.c
Normal file
@@ -0,0 +1,942 @@
|
||||
/* 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] */
|
||||
};
|
383
components/esp_local_ctrl/proto-c/esp_local_ctrl.pb-c.h
Normal file
383
components/esp_local_ctrl/proto-c/esp_local_ctrl.pb-c.h
Normal file
@@ -0,0 +1,383 @@
|
||||
/* Generated by the protocol buffer compiler. DO NOT EDIT! */
|
||||
/* Generated from: esp_local_ctrl.proto */
|
||||
|
||||
#ifndef PROTOBUF_C_esp_5flocal_5fctrl_2eproto__INCLUDED
|
||||
#define PROTOBUF_C_esp_5flocal_5fctrl_2eproto__INCLUDED
|
||||
|
||||
#include <protobuf-c/protobuf-c.h>
|
||||
|
||||
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 1003001 < 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
|
||||
|
||||
#include "constants.pb-c.h"
|
||||
|
||||
typedef struct _CmdGetPropertyCount CmdGetPropertyCount;
|
||||
typedef struct _RespGetPropertyCount RespGetPropertyCount;
|
||||
typedef struct _PropertyInfo PropertyInfo;
|
||||
typedef struct _CmdGetPropertyValues CmdGetPropertyValues;
|
||||
typedef struct _RespGetPropertyValues RespGetPropertyValues;
|
||||
typedef struct _PropertyValue PropertyValue;
|
||||
typedef struct _CmdSetPropertyValues CmdSetPropertyValues;
|
||||
typedef struct _RespSetPropertyValues RespSetPropertyValues;
|
||||
typedef struct _LocalCtrlMessage LocalCtrlMessage;
|
||||
|
||||
|
||||
/* --- enums --- */
|
||||
|
||||
typedef enum _LocalCtrlMsgType {
|
||||
LOCAL_CTRL_MSG_TYPE__TypeCmdGetPropertyCount = 0,
|
||||
LOCAL_CTRL_MSG_TYPE__TypeRespGetPropertyCount = 1,
|
||||
LOCAL_CTRL_MSG_TYPE__TypeCmdGetPropertyValues = 4,
|
||||
LOCAL_CTRL_MSG_TYPE__TypeRespGetPropertyValues = 5,
|
||||
LOCAL_CTRL_MSG_TYPE__TypeCmdSetPropertyValues = 6,
|
||||
LOCAL_CTRL_MSG_TYPE__TypeRespSetPropertyValues = 7
|
||||
PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(LOCAL_CTRL_MSG_TYPE)
|
||||
} LocalCtrlMsgType;
|
||||
|
||||
/* --- messages --- */
|
||||
|
||||
struct _CmdGetPropertyCount
|
||||
{
|
||||
ProtobufCMessage base;
|
||||
};
|
||||
#define CMD_GET_PROPERTY_COUNT__INIT \
|
||||
{ PROTOBUF_C_MESSAGE_INIT (&cmd_get_property_count__descriptor) \
|
||||
}
|
||||
|
||||
|
||||
struct _RespGetPropertyCount
|
||||
{
|
||||
ProtobufCMessage base;
|
||||
Status status;
|
||||
uint32_t count;
|
||||
};
|
||||
#define RESP_GET_PROPERTY_COUNT__INIT \
|
||||
{ PROTOBUF_C_MESSAGE_INIT (&resp_get_property_count__descriptor) \
|
||||
, STATUS__Success, 0 }
|
||||
|
||||
|
||||
struct _PropertyInfo
|
||||
{
|
||||
ProtobufCMessage base;
|
||||
Status status;
|
||||
char *name;
|
||||
uint32_t type;
|
||||
uint32_t flags;
|
||||
ProtobufCBinaryData value;
|
||||
};
|
||||
#define PROPERTY_INFO__INIT \
|
||||
{ PROTOBUF_C_MESSAGE_INIT (&property_info__descriptor) \
|
||||
, STATUS__Success, (char *)protobuf_c_empty_string, 0, 0, {0,NULL} }
|
||||
|
||||
|
||||
struct _CmdGetPropertyValues
|
||||
{
|
||||
ProtobufCMessage base;
|
||||
size_t n_indices;
|
||||
uint32_t *indices;
|
||||
};
|
||||
#define CMD_GET_PROPERTY_VALUES__INIT \
|
||||
{ PROTOBUF_C_MESSAGE_INIT (&cmd_get_property_values__descriptor) \
|
||||
, 0,NULL }
|
||||
|
||||
|
||||
struct _RespGetPropertyValues
|
||||
{
|
||||
ProtobufCMessage base;
|
||||
Status status;
|
||||
size_t n_props;
|
||||
PropertyInfo **props;
|
||||
};
|
||||
#define RESP_GET_PROPERTY_VALUES__INIT \
|
||||
{ PROTOBUF_C_MESSAGE_INIT (&resp_get_property_values__descriptor) \
|
||||
, STATUS__Success, 0,NULL }
|
||||
|
||||
|
||||
struct _PropertyValue
|
||||
{
|
||||
ProtobufCMessage base;
|
||||
uint32_t index;
|
||||
ProtobufCBinaryData value;
|
||||
};
|
||||
#define PROPERTY_VALUE__INIT \
|
||||
{ PROTOBUF_C_MESSAGE_INIT (&property_value__descriptor) \
|
||||
, 0, {0,NULL} }
|
||||
|
||||
|
||||
struct _CmdSetPropertyValues
|
||||
{
|
||||
ProtobufCMessage base;
|
||||
size_t n_props;
|
||||
PropertyValue **props;
|
||||
};
|
||||
#define CMD_SET_PROPERTY_VALUES__INIT \
|
||||
{ PROTOBUF_C_MESSAGE_INIT (&cmd_set_property_values__descriptor) \
|
||||
, 0,NULL }
|
||||
|
||||
|
||||
struct _RespSetPropertyValues
|
||||
{
|
||||
ProtobufCMessage base;
|
||||
Status status;
|
||||
};
|
||||
#define RESP_SET_PROPERTY_VALUES__INIT \
|
||||
{ PROTOBUF_C_MESSAGE_INIT (&resp_set_property_values__descriptor) \
|
||||
, STATUS__Success }
|
||||
|
||||
|
||||
typedef enum {
|
||||
LOCAL_CTRL_MESSAGE__PAYLOAD__NOT_SET = 0,
|
||||
LOCAL_CTRL_MESSAGE__PAYLOAD_CMD_GET_PROP_COUNT = 10,
|
||||
LOCAL_CTRL_MESSAGE__PAYLOAD_RESP_GET_PROP_COUNT = 11,
|
||||
LOCAL_CTRL_MESSAGE__PAYLOAD_CMD_GET_PROP_VALS = 12,
|
||||
LOCAL_CTRL_MESSAGE__PAYLOAD_RESP_GET_PROP_VALS = 13,
|
||||
LOCAL_CTRL_MESSAGE__PAYLOAD_CMD_SET_PROP_VALS = 14,
|
||||
LOCAL_CTRL_MESSAGE__PAYLOAD_RESP_SET_PROP_VALS = 15
|
||||
PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(LOCAL_CTRL_MESSAGE__PAYLOAD)
|
||||
} LocalCtrlMessage__PayloadCase;
|
||||
|
||||
struct _LocalCtrlMessage
|
||||
{
|
||||
ProtobufCMessage base;
|
||||
LocalCtrlMsgType msg;
|
||||
LocalCtrlMessage__PayloadCase payload_case;
|
||||
union {
|
||||
CmdGetPropertyCount *cmd_get_prop_count;
|
||||
RespGetPropertyCount *resp_get_prop_count;
|
||||
CmdGetPropertyValues *cmd_get_prop_vals;
|
||||
RespGetPropertyValues *resp_get_prop_vals;
|
||||
CmdSetPropertyValues *cmd_set_prop_vals;
|
||||
RespSetPropertyValues *resp_set_prop_vals;
|
||||
};
|
||||
};
|
||||
#define LOCAL_CTRL_MESSAGE__INIT \
|
||||
{ PROTOBUF_C_MESSAGE_INIT (&local_ctrl_message__descriptor) \
|
||||
, LOCAL_CTRL_MSG_TYPE__TypeCmdGetPropertyCount, LOCAL_CTRL_MESSAGE__PAYLOAD__NOT_SET, {0} }
|
||||
|
||||
|
||||
/* CmdGetPropertyCount methods */
|
||||
void cmd_get_property_count__init
|
||||
(CmdGetPropertyCount *message);
|
||||
size_t cmd_get_property_count__get_packed_size
|
||||
(const CmdGetPropertyCount *message);
|
||||
size_t cmd_get_property_count__pack
|
||||
(const CmdGetPropertyCount *message,
|
||||
uint8_t *out);
|
||||
size_t cmd_get_property_count__pack_to_buffer
|
||||
(const CmdGetPropertyCount *message,
|
||||
ProtobufCBuffer *buffer);
|
||||
CmdGetPropertyCount *
|
||||
cmd_get_property_count__unpack
|
||||
(ProtobufCAllocator *allocator,
|
||||
size_t len,
|
||||
const uint8_t *data);
|
||||
void cmd_get_property_count__free_unpacked
|
||||
(CmdGetPropertyCount *message,
|
||||
ProtobufCAllocator *allocator);
|
||||
/* RespGetPropertyCount methods */
|
||||
void resp_get_property_count__init
|
||||
(RespGetPropertyCount *message);
|
||||
size_t resp_get_property_count__get_packed_size
|
||||
(const RespGetPropertyCount *message);
|
||||
size_t resp_get_property_count__pack
|
||||
(const RespGetPropertyCount *message,
|
||||
uint8_t *out);
|
||||
size_t resp_get_property_count__pack_to_buffer
|
||||
(const RespGetPropertyCount *message,
|
||||
ProtobufCBuffer *buffer);
|
||||
RespGetPropertyCount *
|
||||
resp_get_property_count__unpack
|
||||
(ProtobufCAllocator *allocator,
|
||||
size_t len,
|
||||
const uint8_t *data);
|
||||
void resp_get_property_count__free_unpacked
|
||||
(RespGetPropertyCount *message,
|
||||
ProtobufCAllocator *allocator);
|
||||
/* PropertyInfo methods */
|
||||
void property_info__init
|
||||
(PropertyInfo *message);
|
||||
size_t property_info__get_packed_size
|
||||
(const PropertyInfo *message);
|
||||
size_t property_info__pack
|
||||
(const PropertyInfo *message,
|
||||
uint8_t *out);
|
||||
size_t property_info__pack_to_buffer
|
||||
(const PropertyInfo *message,
|
||||
ProtobufCBuffer *buffer);
|
||||
PropertyInfo *
|
||||
property_info__unpack
|
||||
(ProtobufCAllocator *allocator,
|
||||
size_t len,
|
||||
const uint8_t *data);
|
||||
void property_info__free_unpacked
|
||||
(PropertyInfo *message,
|
||||
ProtobufCAllocator *allocator);
|
||||
/* CmdGetPropertyValues methods */
|
||||
void cmd_get_property_values__init
|
||||
(CmdGetPropertyValues *message);
|
||||
size_t cmd_get_property_values__get_packed_size
|
||||
(const CmdGetPropertyValues *message);
|
||||
size_t cmd_get_property_values__pack
|
||||
(const CmdGetPropertyValues *message,
|
||||
uint8_t *out);
|
||||
size_t cmd_get_property_values__pack_to_buffer
|
||||
(const CmdGetPropertyValues *message,
|
||||
ProtobufCBuffer *buffer);
|
||||
CmdGetPropertyValues *
|
||||
cmd_get_property_values__unpack
|
||||
(ProtobufCAllocator *allocator,
|
||||
size_t len,
|
||||
const uint8_t *data);
|
||||
void cmd_get_property_values__free_unpacked
|
||||
(CmdGetPropertyValues *message,
|
||||
ProtobufCAllocator *allocator);
|
||||
/* RespGetPropertyValues methods */
|
||||
void resp_get_property_values__init
|
||||
(RespGetPropertyValues *message);
|
||||
size_t resp_get_property_values__get_packed_size
|
||||
(const RespGetPropertyValues *message);
|
||||
size_t resp_get_property_values__pack
|
||||
(const RespGetPropertyValues *message,
|
||||
uint8_t *out);
|
||||
size_t resp_get_property_values__pack_to_buffer
|
||||
(const RespGetPropertyValues *message,
|
||||
ProtobufCBuffer *buffer);
|
||||
RespGetPropertyValues *
|
||||
resp_get_property_values__unpack
|
||||
(ProtobufCAllocator *allocator,
|
||||
size_t len,
|
||||
const uint8_t *data);
|
||||
void resp_get_property_values__free_unpacked
|
||||
(RespGetPropertyValues *message,
|
||||
ProtobufCAllocator *allocator);
|
||||
/* PropertyValue methods */
|
||||
void property_value__init
|
||||
(PropertyValue *message);
|
||||
size_t property_value__get_packed_size
|
||||
(const PropertyValue *message);
|
||||
size_t property_value__pack
|
||||
(const PropertyValue *message,
|
||||
uint8_t *out);
|
||||
size_t property_value__pack_to_buffer
|
||||
(const PropertyValue *message,
|
||||
ProtobufCBuffer *buffer);
|
||||
PropertyValue *
|
||||
property_value__unpack
|
||||
(ProtobufCAllocator *allocator,
|
||||
size_t len,
|
||||
const uint8_t *data);
|
||||
void property_value__free_unpacked
|
||||
(PropertyValue *message,
|
||||
ProtobufCAllocator *allocator);
|
||||
/* CmdSetPropertyValues methods */
|
||||
void cmd_set_property_values__init
|
||||
(CmdSetPropertyValues *message);
|
||||
size_t cmd_set_property_values__get_packed_size
|
||||
(const CmdSetPropertyValues *message);
|
||||
size_t cmd_set_property_values__pack
|
||||
(const CmdSetPropertyValues *message,
|
||||
uint8_t *out);
|
||||
size_t cmd_set_property_values__pack_to_buffer
|
||||
(const CmdSetPropertyValues *message,
|
||||
ProtobufCBuffer *buffer);
|
||||
CmdSetPropertyValues *
|
||||
cmd_set_property_values__unpack
|
||||
(ProtobufCAllocator *allocator,
|
||||
size_t len,
|
||||
const uint8_t *data);
|
||||
void cmd_set_property_values__free_unpacked
|
||||
(CmdSetPropertyValues *message,
|
||||
ProtobufCAllocator *allocator);
|
||||
/* RespSetPropertyValues methods */
|
||||
void resp_set_property_values__init
|
||||
(RespSetPropertyValues *message);
|
||||
size_t resp_set_property_values__get_packed_size
|
||||
(const RespSetPropertyValues *message);
|
||||
size_t resp_set_property_values__pack
|
||||
(const RespSetPropertyValues *message,
|
||||
uint8_t *out);
|
||||
size_t resp_set_property_values__pack_to_buffer
|
||||
(const RespSetPropertyValues *message,
|
||||
ProtobufCBuffer *buffer);
|
||||
RespSetPropertyValues *
|
||||
resp_set_property_values__unpack
|
||||
(ProtobufCAllocator *allocator,
|
||||
size_t len,
|
||||
const uint8_t *data);
|
||||
void resp_set_property_values__free_unpacked
|
||||
(RespSetPropertyValues *message,
|
||||
ProtobufCAllocator *allocator);
|
||||
/* LocalCtrlMessage methods */
|
||||
void local_ctrl_message__init
|
||||
(LocalCtrlMessage *message);
|
||||
size_t local_ctrl_message__get_packed_size
|
||||
(const LocalCtrlMessage *message);
|
||||
size_t local_ctrl_message__pack
|
||||
(const LocalCtrlMessage *message,
|
||||
uint8_t *out);
|
||||
size_t local_ctrl_message__pack_to_buffer
|
||||
(const LocalCtrlMessage *message,
|
||||
ProtobufCBuffer *buffer);
|
||||
LocalCtrlMessage *
|
||||
local_ctrl_message__unpack
|
||||
(ProtobufCAllocator *allocator,
|
||||
size_t len,
|
||||
const uint8_t *data);
|
||||
void local_ctrl_message__free_unpacked
|
||||
(LocalCtrlMessage *message,
|
||||
ProtobufCAllocator *allocator);
|
||||
/* --- per-message closures --- */
|
||||
|
||||
typedef void (*CmdGetPropertyCount_Closure)
|
||||
(const CmdGetPropertyCount *message,
|
||||
void *closure_data);
|
||||
typedef void (*RespGetPropertyCount_Closure)
|
||||
(const RespGetPropertyCount *message,
|
||||
void *closure_data);
|
||||
typedef void (*PropertyInfo_Closure)
|
||||
(const PropertyInfo *message,
|
||||
void *closure_data);
|
||||
typedef void (*CmdGetPropertyValues_Closure)
|
||||
(const CmdGetPropertyValues *message,
|
||||
void *closure_data);
|
||||
typedef void (*RespGetPropertyValues_Closure)
|
||||
(const RespGetPropertyValues *message,
|
||||
void *closure_data);
|
||||
typedef void (*PropertyValue_Closure)
|
||||
(const PropertyValue *message,
|
||||
void *closure_data);
|
||||
typedef void (*CmdSetPropertyValues_Closure)
|
||||
(const CmdSetPropertyValues *message,
|
||||
void *closure_data);
|
||||
typedef void (*RespSetPropertyValues_Closure)
|
||||
(const RespSetPropertyValues *message,
|
||||
void *closure_data);
|
||||
typedef void (*LocalCtrlMessage_Closure)
|
||||
(const LocalCtrlMessage *message,
|
||||
void *closure_data);
|
||||
|
||||
/* --- services --- */
|
||||
|
||||
|
||||
/* --- descriptors --- */
|
||||
|
||||
extern const ProtobufCEnumDescriptor local_ctrl_msg_type__descriptor;
|
||||
extern const ProtobufCMessageDescriptor cmd_get_property_count__descriptor;
|
||||
extern const ProtobufCMessageDescriptor resp_get_property_count__descriptor;
|
||||
extern const ProtobufCMessageDescriptor property_info__descriptor;
|
||||
extern const ProtobufCMessageDescriptor cmd_get_property_values__descriptor;
|
||||
extern const ProtobufCMessageDescriptor resp_get_property_values__descriptor;
|
||||
extern const ProtobufCMessageDescriptor property_value__descriptor;
|
||||
extern const ProtobufCMessageDescriptor cmd_set_property_values__descriptor;
|
||||
extern const ProtobufCMessageDescriptor resp_set_property_values__descriptor;
|
||||
extern const ProtobufCMessageDescriptor local_ctrl_message__descriptor;
|
||||
|
||||
PROTOBUF_C__END_DECLS
|
||||
|
||||
|
||||
#endif /* PROTOBUF_C_esp_5flocal_5fctrl_2eproto__INCLUDED */
|
Reference in New Issue
Block a user