Select one of the symbols to view example projects that use it.
 
Outline
#define PROTOBUF_C__NO_DEPRECATED
#include "sec0.pb-c.h"
s0_session_cmd__init(S0SessionCmd *)
s0_session_cmd__get_packed_size(const S0SessionCmd *)
s0_session_cmd__pack(const S0SessionCmd *, uint8_t *)
s0_session_cmd__pack_to_buffer(const S0SessionCmd *, ProtobufCBuffer *)
s0_session_cmd__unpack(ProtobufCAllocator *, size_t, const uint8_t *)
s0_session_cmd__free_unpacked(S0SessionCmd *, ProtobufCAllocator *)
s0_session_resp__init(S0SessionResp *)
s0_session_resp__get_packed_size(const S0SessionResp *)
s0_session_resp__pack(const S0SessionResp *, uint8_t *)
s0_session_resp__pack_to_buffer(const S0SessionResp *, ProtobufCBuffer *)
s0_session_resp__unpack(ProtobufCAllocator *, size_t, const uint8_t *)
s0_session_resp__free_unpacked(S0SessionResp *, ProtobufCAllocator *)
sec0_payload__init(Sec0Payload *)
sec0_payload__get_packed_size(const Sec0Payload *)
sec0_payload__pack(const Sec0Payload *, uint8_t *)
sec0_payload__pack_to_buffer(const Sec0Payload *, ProtobufCBuffer *)
sec0_payload__unpack(ProtobufCAllocator *, size_t, const uint8_t *)
sec0_payload__free_unpacked(Sec0Payload *, ProtobufCAllocator *)
#define s0_session_cmd__field_descriptors
#define s0_session_cmd__field_indices_by_name
#define s0_session_cmd__number_ranges
s0_session_cmd__descriptor
s0_session_resp__field_descriptors
s0_session_resp__field_indices_by_name
s0_session_resp__number_ranges
s0_session_resp__descriptor
sec0_payload__field_descriptors
sec0_payload__field_indices_by_name
sec0_payload__number_ranges
sec0_payload__descriptor
sec0_msg_type__enum_values_by_number
sec0_msg_type__value_ranges
sec0_msg_type__enum_values_by_name
sec0_msg_type__descriptor
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/protocomm/proto-c/sec0.pb-c.c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: sec0.proto */ /* Do not generate deprecated warnings for self */ #ifndef PROTOBUF_C__NO_DEPRECATED #define PROTOBUF_C__NO_DEPRECATED #endif #include "sec0.pb-c.h" void s0_session_cmd__init (S0SessionCmd *message) { static const S0SessionCmd init_value = S0_SESSION_CMD__INIT; *message = init_value; }{ ... } size_t s0_session_cmd__get_packed_size (const S0SessionCmd *message) { assert(message->base.descriptor == &s0_session_cmd__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); }{ ... } size_t s0_session_cmd__pack (const S0SessionCmd *message, uint8_t *out) { assert(message->base.descriptor == &s0_session_cmd__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); }{ ... } size_t s0_session_cmd__pack_to_buffer (const S0SessionCmd *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &s0_session_cmd__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); }{ ... } S0SessionCmd * s0_session_cmd__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (S0SessionCmd *) protobuf_c_message_unpack (&s0_session_cmd__descriptor, allocator, len, data); }{ ... } void s0_session_cmd__free_unpacked (S0SessionCmd *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &s0_session_cmd__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); }{ ... } void s0_session_resp__init (S0SessionResp *message) { static const S0SessionResp init_value = S0_SESSION_RESP__INIT; *message = init_value; }{ ... } size_t s0_session_resp__get_packed_size (const S0SessionResp *message) { assert(message->base.descriptor == &s0_session_resp__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); }{ ... } size_t s0_session_resp__pack (const S0SessionResp *message, uint8_t *out) { assert(message->base.descriptor == &s0_session_resp__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); }{ ... } size_t s0_session_resp__pack_to_buffer (const S0SessionResp *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &s0_session_resp__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); }{ ... } S0SessionResp * s0_session_resp__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (S0SessionResp *) protobuf_c_message_unpack (&s0_session_resp__descriptor, allocator, len, data); }{ ... } void s0_session_resp__free_unpacked (S0SessionResp *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &s0_session_resp__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); }{ ... } void sec0_payload__init (Sec0Payload *message) { static const Sec0Payload init_value = SEC0_PAYLOAD__INIT; *message = init_value; }{ ... } size_t sec0_payload__get_packed_size (const Sec0Payload *message) { assert(message->base.descriptor == &sec0_payload__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); }{ ... } size_t sec0_payload__pack (const Sec0Payload *message, uint8_t *out) { assert(message->base.descriptor == &sec0_payload__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); }{ ... } size_t sec0_payload__pack_to_buffer (const Sec0Payload *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &sec0_payload__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); }{ ... } Sec0Payload * sec0_payload__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (Sec0Payload *) protobuf_c_message_unpack (&sec0_payload__descriptor, allocator, len, data); }{ ... } void sec0_payload__free_unpacked (Sec0Payload *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &sec0_payload__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); }{ ... } #define s0_session_cmd__field_descriptors NULL #define s0_session_cmd__field_indices_by_name NULL #define s0_session_cmd__number_ranges NULL const ProtobufCMessageDescriptor s0_session_cmd__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "S0SessionCmd", "S0SessionCmd", "S0SessionCmd", "", sizeof(S0SessionCmd), 0, s0_session_cmd__field_descriptors, s0_session_cmd__field_indices_by_name, 0, s0_session_cmd__number_ranges, (ProtobufCMessageInit) s0_session_cmd__init, NULL,NULL,NULL /* reserved[123] */ }{...}; static const ProtobufCFieldDescriptor s0_session_resp__field_descriptors[1] = { { "status", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ offsetof(S0SessionResp, status), &status__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }{...}, }{...}; static const unsigned s0_session_resp__field_indices_by_name[] = { 0, /* field[0] = status */ }{...}; static const ProtobufCIntRange s0_session_resp__number_ranges[1 + 1] = { { 1, 0 }, { 0, 1 } }{...}; const ProtobufCMessageDescriptor s0_session_resp__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "S0SessionResp", "S0SessionResp", "S0SessionResp", "", sizeof(S0SessionResp), 1, s0_session_resp__field_descriptors, s0_session_resp__field_indices_by_name, 1, s0_session_resp__number_ranges, (ProtobufCMessageInit) s0_session_resp__init, NULL,NULL,NULL /* reserved[123] */ }{...}; static const ProtobufCFieldDescriptor sec0_payload__field_descriptors[3] = { { "msg", 1, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ offsetof(Sec0Payload, msg), &sec0_msg_type__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }{...}, { "sc", 20, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(Sec0Payload, payload_case), offsetof(Sec0Payload, sc), &s0_session_cmd__descriptor, NULL, 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }{...}, { "sr", 21, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(Sec0Payload, payload_case), offsetof(Sec0Payload, sr), &s0_session_resp__descriptor, NULL, 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }{...}, }{...}; static const unsigned sec0_payload__field_indices_by_name[] = { 0, /* field[0] = msg */ 1, /* field[1] = sc */ 2, /* field[2] = sr */ }{...}; static const ProtobufCIntRange sec0_payload__number_ranges[2 + 1] = { { 1, 0 }, { 20, 1 }, { 0, 3 } }{...}; const ProtobufCMessageDescriptor sec0_payload__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "Sec0Payload", "Sec0Payload", "Sec0Payload", "", sizeof(Sec0Payload), 3, sec0_payload__field_descriptors, sec0_payload__field_indices_by_name, 2, sec0_payload__number_ranges, (ProtobufCMessageInit) sec0_payload__init, NULL,NULL,NULL /* reserved[123] */ }{...}; static const ProtobufCEnumValue sec0_msg_type__enum_values_by_number[2] = { { "S0_Session_Command", "SEC0_MSG_TYPE__S0_Session_Command", 0 }, { "S0_Session_Response", "SEC0_MSG_TYPE__S0_Session_Response", 1 }, }{...}; static const ProtobufCIntRange sec0_msg_type__value_ranges[] = { {0, 0},{0, 2} }{...}; static const ProtobufCEnumValueIndex sec0_msg_type__enum_values_by_name[2] = { { "S0_Session_Command", 0 }, { "S0_Session_Response", 1 }, }{...}; const ProtobufCEnumDescriptor sec0_msg_type__descriptor = { PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, "Sec0MsgType", "Sec0MsgType", "Sec0MsgType", "", 2, sec0_msg_type__enum_values_by_number, 2, sec0_msg_type__enum_values_by_name, 1, sec0_msg_type__value_ranges, NULL,NULL,NULL,NULL /* reserved[1234] */ }{...};
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.