mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-16 04:22:22 +00:00
wifi_provisioning: added wifi-ctrl reset endpoint
This commit is contained in:
288
components/wifi_provisioning/proto-c/wifi_ctrl.pb-c.c
Normal file
288
components/wifi_provisioning/proto-c/wifi_ctrl.pb-c.c
Normal file
@@ -0,0 +1,288 @@
|
||||
/* Generated by the protocol buffer compiler. DO NOT EDIT! */
|
||||
/* Generated from: wifi_ctrl.proto */
|
||||
|
||||
/* Do not generate deprecated warnings for self */
|
||||
#ifndef PROTOBUF_C__NO_DEPRECATED
|
||||
#define PROTOBUF_C__NO_DEPRECATED
|
||||
#endif
|
||||
|
||||
#include "wifi_ctrl.pb-c.h"
|
||||
void cmd_ctrl_reset__init
|
||||
(CmdCtrlReset *message)
|
||||
{
|
||||
static const CmdCtrlReset init_value = CMD_CTRL_RESET__INIT;
|
||||
*message = init_value;
|
||||
}
|
||||
size_t cmd_ctrl_reset__get_packed_size
|
||||
(const CmdCtrlReset *message)
|
||||
{
|
||||
assert(message->base.descriptor == &cmd_ctrl_reset__descriptor);
|
||||
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
||||
}
|
||||
size_t cmd_ctrl_reset__pack
|
||||
(const CmdCtrlReset *message,
|
||||
uint8_t *out)
|
||||
{
|
||||
assert(message->base.descriptor == &cmd_ctrl_reset__descriptor);
|
||||
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
||||
}
|
||||
size_t cmd_ctrl_reset__pack_to_buffer
|
||||
(const CmdCtrlReset *message,
|
||||
ProtobufCBuffer *buffer)
|
||||
{
|
||||
assert(message->base.descriptor == &cmd_ctrl_reset__descriptor);
|
||||
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
||||
}
|
||||
CmdCtrlReset *
|
||||
cmd_ctrl_reset__unpack
|
||||
(ProtobufCAllocator *allocator,
|
||||
size_t len,
|
||||
const uint8_t *data)
|
||||
{
|
||||
return (CmdCtrlReset *)
|
||||
protobuf_c_message_unpack (&cmd_ctrl_reset__descriptor,
|
||||
allocator, len, data);
|
||||
}
|
||||
void cmd_ctrl_reset__free_unpacked
|
||||
(CmdCtrlReset *message,
|
||||
ProtobufCAllocator *allocator)
|
||||
{
|
||||
if(!message)
|
||||
return;
|
||||
assert(message->base.descriptor == &cmd_ctrl_reset__descriptor);
|
||||
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
||||
}
|
||||
void resp_ctrl_reset__init
|
||||
(RespCtrlReset *message)
|
||||
{
|
||||
static const RespCtrlReset init_value = RESP_CTRL_RESET__INIT;
|
||||
*message = init_value;
|
||||
}
|
||||
size_t resp_ctrl_reset__get_packed_size
|
||||
(const RespCtrlReset *message)
|
||||
{
|
||||
assert(message->base.descriptor == &resp_ctrl_reset__descriptor);
|
||||
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
||||
}
|
||||
size_t resp_ctrl_reset__pack
|
||||
(const RespCtrlReset *message,
|
||||
uint8_t *out)
|
||||
{
|
||||
assert(message->base.descriptor == &resp_ctrl_reset__descriptor);
|
||||
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
||||
}
|
||||
size_t resp_ctrl_reset__pack_to_buffer
|
||||
(const RespCtrlReset *message,
|
||||
ProtobufCBuffer *buffer)
|
||||
{
|
||||
assert(message->base.descriptor == &resp_ctrl_reset__descriptor);
|
||||
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
||||
}
|
||||
RespCtrlReset *
|
||||
resp_ctrl_reset__unpack
|
||||
(ProtobufCAllocator *allocator,
|
||||
size_t len,
|
||||
const uint8_t *data)
|
||||
{
|
||||
return (RespCtrlReset *)
|
||||
protobuf_c_message_unpack (&resp_ctrl_reset__descriptor,
|
||||
allocator, len, data);
|
||||
}
|
||||
void resp_ctrl_reset__free_unpacked
|
||||
(RespCtrlReset *message,
|
||||
ProtobufCAllocator *allocator)
|
||||
{
|
||||
if(!message)
|
||||
return;
|
||||
assert(message->base.descriptor == &resp_ctrl_reset__descriptor);
|
||||
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
||||
}
|
||||
void wi_fi_ctrl_payload__init
|
||||
(WiFiCtrlPayload *message)
|
||||
{
|
||||
static const WiFiCtrlPayload init_value = WI_FI_CTRL_PAYLOAD__INIT;
|
||||
*message = init_value;
|
||||
}
|
||||
size_t wi_fi_ctrl_payload__get_packed_size
|
||||
(const WiFiCtrlPayload *message)
|
||||
{
|
||||
assert(message->base.descriptor == &wi_fi_ctrl_payload__descriptor);
|
||||
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
||||
}
|
||||
size_t wi_fi_ctrl_payload__pack
|
||||
(const WiFiCtrlPayload *message,
|
||||
uint8_t *out)
|
||||
{
|
||||
assert(message->base.descriptor == &wi_fi_ctrl_payload__descriptor);
|
||||
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
||||
}
|
||||
size_t wi_fi_ctrl_payload__pack_to_buffer
|
||||
(const WiFiCtrlPayload *message,
|
||||
ProtobufCBuffer *buffer)
|
||||
{
|
||||
assert(message->base.descriptor == &wi_fi_ctrl_payload__descriptor);
|
||||
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
||||
}
|
||||
WiFiCtrlPayload *
|
||||
wi_fi_ctrl_payload__unpack
|
||||
(ProtobufCAllocator *allocator,
|
||||
size_t len,
|
||||
const uint8_t *data)
|
||||
{
|
||||
return (WiFiCtrlPayload *)
|
||||
protobuf_c_message_unpack (&wi_fi_ctrl_payload__descriptor,
|
||||
allocator, len, data);
|
||||
}
|
||||
void wi_fi_ctrl_payload__free_unpacked
|
||||
(WiFiCtrlPayload *message,
|
||||
ProtobufCAllocator *allocator)
|
||||
{
|
||||
if(!message)
|
||||
return;
|
||||
assert(message->base.descriptor == &wi_fi_ctrl_payload__descriptor);
|
||||
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
||||
}
|
||||
#define cmd_ctrl_reset__field_descriptors NULL
|
||||
#define cmd_ctrl_reset__field_indices_by_name NULL
|
||||
#define cmd_ctrl_reset__number_ranges NULL
|
||||
const ProtobufCMessageDescriptor cmd_ctrl_reset__descriptor =
|
||||
{
|
||||
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
||||
"CmdCtrlReset",
|
||||
"CmdCtrlReset",
|
||||
"CmdCtrlReset",
|
||||
"",
|
||||
sizeof(CmdCtrlReset),
|
||||
0,
|
||||
cmd_ctrl_reset__field_descriptors,
|
||||
cmd_ctrl_reset__field_indices_by_name,
|
||||
0, cmd_ctrl_reset__number_ranges,
|
||||
(ProtobufCMessageInit) cmd_ctrl_reset__init,
|
||||
NULL,NULL,NULL /* reserved[123] */
|
||||
};
|
||||
#define resp_ctrl_reset__field_descriptors NULL
|
||||
#define resp_ctrl_reset__field_indices_by_name NULL
|
||||
#define resp_ctrl_reset__number_ranges NULL
|
||||
const ProtobufCMessageDescriptor resp_ctrl_reset__descriptor =
|
||||
{
|
||||
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
||||
"RespCtrlReset",
|
||||
"RespCtrlReset",
|
||||
"RespCtrlReset",
|
||||
"",
|
||||
sizeof(RespCtrlReset),
|
||||
0,
|
||||
resp_ctrl_reset__field_descriptors,
|
||||
resp_ctrl_reset__field_indices_by_name,
|
||||
0, resp_ctrl_reset__number_ranges,
|
||||
(ProtobufCMessageInit) resp_ctrl_reset__init,
|
||||
NULL,NULL,NULL /* reserved[123] */
|
||||
};
|
||||
static const ProtobufCFieldDescriptor wi_fi_ctrl_payload__field_descriptors[4] =
|
||||
{
|
||||
{
|
||||
"msg",
|
||||
1,
|
||||
PROTOBUF_C_LABEL_NONE,
|
||||
PROTOBUF_C_TYPE_ENUM,
|
||||
0, /* quantifier_offset */
|
||||
offsetof(WiFiCtrlPayload, msg),
|
||||
&wi_fi_ctrl_msg_type__descriptor,
|
||||
NULL,
|
||||
0, /* flags */
|
||||
0,NULL,NULL /* reserved1,reserved2, etc */
|
||||
},
|
||||
{
|
||||
"status",
|
||||
2,
|
||||
PROTOBUF_C_LABEL_NONE,
|
||||
PROTOBUF_C_TYPE_ENUM,
|
||||
0, /* quantifier_offset */
|
||||
offsetof(WiFiCtrlPayload, status),
|
||||
&status__descriptor,
|
||||
NULL,
|
||||
0, /* flags */
|
||||
0,NULL,NULL /* reserved1,reserved2, etc */
|
||||
},
|
||||
{
|
||||
"cmd_ctrl_reset",
|
||||
11,
|
||||
PROTOBUF_C_LABEL_NONE,
|
||||
PROTOBUF_C_TYPE_MESSAGE,
|
||||
offsetof(WiFiCtrlPayload, payload_case),
|
||||
offsetof(WiFiCtrlPayload, cmd_ctrl_reset),
|
||||
&cmd_ctrl_reset__descriptor,
|
||||
NULL,
|
||||
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
||||
0,NULL,NULL /* reserved1,reserved2, etc */
|
||||
},
|
||||
{
|
||||
"resp_ctrl_reset",
|
||||
12,
|
||||
PROTOBUF_C_LABEL_NONE,
|
||||
PROTOBUF_C_TYPE_MESSAGE,
|
||||
offsetof(WiFiCtrlPayload, payload_case),
|
||||
offsetof(WiFiCtrlPayload, resp_ctrl_reset),
|
||||
&resp_ctrl_reset__descriptor,
|
||||
NULL,
|
||||
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */
|
||||
0,NULL,NULL /* reserved1,reserved2, etc */
|
||||
},
|
||||
};
|
||||
static const unsigned wi_fi_ctrl_payload__field_indices_by_name[] = {
|
||||
2, /* field[2] = cmd_ctrl_reset */
|
||||
0, /* field[0] = msg */
|
||||
3, /* field[3] = resp_ctrl_reset */
|
||||
1, /* field[1] = status */
|
||||
};
|
||||
static const ProtobufCIntRange wi_fi_ctrl_payload__number_ranges[2 + 1] =
|
||||
{
|
||||
{ 1, 0 },
|
||||
{ 11, 2 },
|
||||
{ 0, 4 }
|
||||
};
|
||||
const ProtobufCMessageDescriptor wi_fi_ctrl_payload__descriptor =
|
||||
{
|
||||
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
||||
"WiFiCtrlPayload",
|
||||
"WiFiCtrlPayload",
|
||||
"WiFiCtrlPayload",
|
||||
"",
|
||||
sizeof(WiFiCtrlPayload),
|
||||
4,
|
||||
wi_fi_ctrl_payload__field_descriptors,
|
||||
wi_fi_ctrl_payload__field_indices_by_name,
|
||||
2, wi_fi_ctrl_payload__number_ranges,
|
||||
(ProtobufCMessageInit) wi_fi_ctrl_payload__init,
|
||||
NULL,NULL,NULL /* reserved[123] */
|
||||
};
|
||||
static const ProtobufCEnumValue wi_fi_ctrl_msg_type__enum_values_by_number[3] =
|
||||
{
|
||||
{ "TypeCtrlReserved", "WI_FI_CTRL_MSG_TYPE__TypeCtrlReserved", 0 },
|
||||
{ "TypeCmdCtrlReset", "WI_FI_CTRL_MSG_TYPE__TypeCmdCtrlReset", 1 },
|
||||
{ "TypeRespCtrlReset", "WI_FI_CTRL_MSG_TYPE__TypeRespCtrlReset", 2 },
|
||||
};
|
||||
static const ProtobufCIntRange wi_fi_ctrl_msg_type__value_ranges[] = {
|
||||
{0, 0},{0, 3}
|
||||
};
|
||||
static const ProtobufCEnumValueIndex wi_fi_ctrl_msg_type__enum_values_by_name[3] =
|
||||
{
|
||||
{ "TypeCmdCtrlReset", 1 },
|
||||
{ "TypeCtrlReserved", 0 },
|
||||
{ "TypeRespCtrlReset", 2 },
|
||||
};
|
||||
const ProtobufCEnumDescriptor wi_fi_ctrl_msg_type__descriptor =
|
||||
{
|
||||
PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC,
|
||||
"WiFiCtrlMsgType",
|
||||
"WiFiCtrlMsgType",
|
||||
"WiFiCtrlMsgType",
|
||||
"",
|
||||
3,
|
||||
wi_fi_ctrl_msg_type__enum_values_by_number,
|
||||
3,
|
||||
wi_fi_ctrl_msg_type__enum_values_by_name,
|
||||
1,
|
||||
wi_fi_ctrl_msg_type__value_ranges,
|
||||
NULL,NULL,NULL,NULL /* reserved[1234] */
|
||||
};
|
||||
Reference in New Issue
Block a user