Select one of the symbols to view example projects that use it.
 
Outline
#define PROTOBUF_C_wifi_5fscan_2eproto__INCLUDED
#include <protobuf-c/protobuf-c.h>
#include "constants.pb-c.h"
#include "wifi_constants.pb-c.h"
CmdScanStart
RespScanStart
CmdScanStatus
RespScanStatus
CmdScanResult
WiFiScanResult
RespScanResult
WiFiScanPayload
_WiFiScanMsgType
CmdScanStart
RespScanStart
CmdScanStatus
RespScanStatus
CmdScanResult
WiFiScanResult
RespScanResult
WiFiScanPayload__PayloadCase
WiFiScanPayload
cmd_scan_start__init(CmdScanStart *);
cmd_scan_start__get_packed_size(const CmdScanStart *);
cmd_scan_start__pack(const CmdScanStart *, uint8_t *);
cmd_scan_start__pack_to_buffer(const CmdScanStart *, ProtobufCBuffer *);
cmd_scan_start__unpack(ProtobufCAllocator *, size_t, const uint8_t *);
cmd_scan_start__free_unpacked(CmdScanStart *, ProtobufCAllocator *);
resp_scan_start__init(RespScanStart *);
resp_scan_start__get_packed_size(const RespScanStart *);
resp_scan_start__pack(const RespScanStart *, uint8_t *);
resp_scan_start__pack_to_buffer(const RespScanStart *, ProtobufCBuffer *);
resp_scan_start__unpack(ProtobufCAllocator *, size_t, const uint8_t *);
resp_scan_start__free_unpacked(RespScanStart *, ProtobufCAllocator *);
cmd_scan_status__init(CmdScanStatus *);
cmd_scan_status__get_packed_size(const CmdScanStatus *);
cmd_scan_status__pack(const CmdScanStatus *, uint8_t *);
cmd_scan_status__pack_to_buffer(const CmdScanStatus *, ProtobufCBuffer *);
cmd_scan_status__unpack(ProtobufCAllocator *, size_t, const uint8_t *);
cmd_scan_status__free_unpacked(CmdScanStatus *, ProtobufCAllocator *);
resp_scan_status__init(RespScanStatus *);
resp_scan_status__get_packed_size(const RespScanStatus *);
resp_scan_status__pack(const RespScanStatus *, uint8_t *);
resp_scan_status__pack_to_buffer(const RespScanStatus *, ProtobufCBuffer *);
resp_scan_status__unpack(ProtobufCAllocator *, size_t, const uint8_t *);
resp_scan_status__free_unpacked(RespScanStatus *, ProtobufCAllocator *);
cmd_scan_result__init(CmdScanResult *);
cmd_scan_result__get_packed_size(const CmdScanResult *);
cmd_scan_result__pack(const CmdScanResult *, uint8_t *);
cmd_scan_result__pack_to_buffer(const CmdScanResult *, ProtobufCBuffer *);
cmd_scan_result__unpack(ProtobufCAllocator *, size_t, const uint8_t *);
cmd_scan_result__free_unpacked(CmdScanResult *, ProtobufCAllocator *);
wi_fi_scan_result__init(WiFiScanResult *);
wi_fi_scan_result__get_packed_size(const WiFiScanResult *);
wi_fi_scan_result__pack(const WiFiScanResult *, uint8_t *);
wi_fi_scan_result__pack_to_buffer(const WiFiScanResult *, ProtobufCBuffer *);
wi_fi_scan_result__unpack(ProtobufCAllocator *, size_t, const uint8_t *);
wi_fi_scan_result__free_unpacked(WiFiScanResult *, ProtobufCAllocator *);
resp_scan_result__init(RespScanResult *);
resp_scan_result__get_packed_size(const RespScanResult *);
resp_scan_result__pack(const RespScanResult *, uint8_t *);
resp_scan_result__pack_to_buffer(const RespScanResult *, ProtobufCBuffer *);
resp_scan_result__unpack(ProtobufCAllocator *, size_t, const uint8_t *);
resp_scan_result__free_unpacked(RespScanResult *, ProtobufCAllocator *);
wi_fi_scan_payload__init(WiFiScanPayload *);
wi_fi_scan_payload__get_packed_size(const WiFiScanPayload *);
wi_fi_scan_payload__pack(const WiFiScanPayload *, uint8_t *);
wi_fi_scan_payload__pack_to_buffer(const WiFiScanPayload *, ProtobufCBuffer *);
wi_fi_scan_payload__unpack(ProtobufCAllocator *, size_t, const uint8_t *);
wi_fi_scan_payload__free_unpacked(WiFiScanPayload *, ProtobufCAllocator *);
CmdScanStart_Closure
RespScanStart_Closure
CmdScanStatus_Closure
RespScanStatus_Closure
CmdScanResult_Closure
WiFiScanResult_Closure
RespScanResult_Closure
WiFiScanPayload_Closure
wi_fi_scan_msg_type__descriptor;
cmd_scan_start__descriptor;
resp_scan_start__descriptor;
cmd_scan_status__descriptor;
resp_scan_status__descriptor;
cmd_scan_result__descriptor;
wi_fi_scan_result__descriptor;
resp_scan_result__descriptor;
wi_fi_scan_payload__descriptor;
Files
loading (4/5)...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/wifi_provisioning/proto-c/wifi_scan.pb-c.h
 
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
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: wifi_scan.proto */ #ifndef PROTOBUF_C_wifi_5fscan_2eproto__INCLUDED #define PROTOBUF_C_wifi_5fscan_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 1004001 < 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" #include "wifi_constants.pb-c.h" typedef struct CmdScanStart CmdScanStart; typedef struct RespScanStart RespScanStart; typedef struct CmdScanStatus CmdScanStatus; typedef struct RespScanStatus RespScanStatus; typedef struct CmdScanResult CmdScanResult; typedef struct WiFiScanResult WiFiScanResult; typedef struct RespScanResult RespScanResult; typedef struct WiFiScanPayload WiFiScanPayload; /* --- enums --- */ typedef enum _WiFiScanMsgType { WI_FI_SCAN_MSG_TYPE__TypeCmdScanStart = 0, WI_FI_SCAN_MSG_TYPE__TypeRespScanStart = 1, WI_FI_SCAN_MSG_TYPE__TypeCmdScanStatus = 2, WI_FI_SCAN_MSG_TYPE__TypeRespScanStatus = 3, WI_FI_SCAN_MSG_TYPE__TypeCmdScanResult = 4, WI_FI_SCAN_MSG_TYPE__TypeRespScanResult = 5 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(WI_FI_SCAN_MSG_TYPE) }{ ... } WiFiScanMsgType; /* --- messages --- */ struct CmdScanStart { ProtobufCMessage base; protobuf_c_boolean blocking; protobuf_c_boolean passive; uint32_t group_channels; uint32_t period_ms; }{ ... }; #define CMD_SCAN_START__INIT \ { PROTOBUF_C_MESSAGE_INIT (&cmd_scan_start__descriptor) \ , 0, 0, 0, 0 }{...} ... struct RespScanStart { ProtobufCMessage base; }{ ... }; #define RESP_SCAN_START__INIT \ { PROTOBUF_C_MESSAGE_INIT (&resp_scan_start__descriptor) \ }{...} ... struct CmdScanStatus { ProtobufCMessage base; }{ ... }; #define CMD_SCAN_STATUS__INIT \ { PROTOBUF_C_MESSAGE_INIT (&cmd_scan_status__descriptor) \ }{...} ... struct RespScanStatus { ProtobufCMessage base; protobuf_c_boolean scan_finished; uint32_t result_count; }{ ... }; #define RESP_SCAN_STATUS__INIT \ { PROTOBUF_C_MESSAGE_INIT (&resp_scan_status__descriptor) \ , 0, 0 }{...} ... struct CmdScanResult { ProtobufCMessage base; uint32_t start_index; uint32_t count; }{ ... }; #define CMD_SCAN_RESULT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&cmd_scan_result__descriptor) \ , 0, 0 }{...} ... struct WiFiScanResult { ProtobufCMessage base; ProtobufCBinaryData ssid; uint32_t channel; int32_t rssi; ProtobufCBinaryData bssid; WifiAuthMode auth; }{ ... }; #define WI_FI_SCAN_RESULT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&wi_fi_scan_result__descriptor) \ , {0,NULL}, 0, 0, {0,NULL}, WIFI_AUTH_MODE__Open }{...} ... struct RespScanResult { ProtobufCMessage base; size_t n_entries; WiFiScanResult **entries; }{ ... }; #define RESP_SCAN_RESULT__INIT \ { PROTOBUF_C_MESSAGE_INIT (&resp_scan_result__descriptor) \ , 0,NULL }{...} ... typedef enum { WI_FI_SCAN_PAYLOAD__PAYLOAD__NOT_SET = 0, WI_FI_SCAN_PAYLOAD__PAYLOAD_CMD_SCAN_START = 10, WI_FI_SCAN_PAYLOAD__PAYLOAD_RESP_SCAN_START = 11, WI_FI_SCAN_PAYLOAD__PAYLOAD_CMD_SCAN_STATUS = 12, WI_FI_SCAN_PAYLOAD__PAYLOAD_RESP_SCAN_STATUS = 13, WI_FI_SCAN_PAYLOAD__PAYLOAD_CMD_SCAN_RESULT = 14, WI_FI_SCAN_PAYLOAD__PAYLOAD_RESP_SCAN_RESULT = 15 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(WI_FI_SCAN_PAYLOAD__PAYLOAD__CASE) }{ ... } WiFiScanPayload__PayloadCase; struct WiFiScanPayload { ProtobufCMessage base; WiFiScanMsgType msg; Status status; WiFiScanPayload__PayloadCase payload_case; union { CmdScanStart *cmd_scan_start; RespScanStart *resp_scan_start; CmdScanStatus *cmd_scan_status; RespScanStatus *resp_scan_status; CmdScanResult *cmd_scan_result; RespScanResult *resp_scan_result; }{ ... }; }{ ... }; #define WI_FI_SCAN_PAYLOAD__INIT \ { PROTOBUF_C_MESSAGE_INIT (&wi_fi_scan_payload__descriptor) \ , WI_FI_SCAN_MSG_TYPE__TypeCmdScanStart, STATUS__Success, WI_FI_SCAN_PAYLOAD__PAYLOAD__NOT_SET, {0} }{...} ... /* CmdScanStart methods */ void cmd_scan_start__init (CmdScanStart *message); size_t cmd_scan_start__get_packed_size (const CmdScanStart *message); size_t cmd_scan_start__pack (const CmdScanStart *message, uint8_t *out); size_t cmd_scan_start__pack_to_buffer (const CmdScanStart *message, ProtobufCBuffer *buffer); CmdScanStart * cmd_scan_start__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void cmd_scan_start__free_unpacked (CmdScanStart *message, ProtobufCAllocator *allocator); /* RespScanStart methods */ void resp_scan_start__init (RespScanStart *message); size_t resp_scan_start__get_packed_size (const RespScanStart *message); size_t resp_scan_start__pack (const RespScanStart *message, uint8_t *out); size_t resp_scan_start__pack_to_buffer (const RespScanStart *message, ProtobufCBuffer *buffer); RespScanStart * resp_scan_start__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void resp_scan_start__free_unpacked (RespScanStart *message, ProtobufCAllocator *allocator); /* CmdScanStatus methods */ void cmd_scan_status__init (CmdScanStatus *message); size_t cmd_scan_status__get_packed_size (const CmdScanStatus *message); size_t cmd_scan_status__pack (const CmdScanStatus *message, uint8_t *out); size_t cmd_scan_status__pack_to_buffer (const CmdScanStatus *message, ProtobufCBuffer *buffer); CmdScanStatus * cmd_scan_status__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void cmd_scan_status__free_unpacked (CmdScanStatus *message, ProtobufCAllocator *allocator); /* RespScanStatus methods */ void resp_scan_status__init (RespScanStatus *message); size_t resp_scan_status__get_packed_size (const RespScanStatus *message); size_t resp_scan_status__pack (const RespScanStatus *message, uint8_t *out); size_t resp_scan_status__pack_to_buffer (const RespScanStatus *message, ProtobufCBuffer *buffer); RespScanStatus * resp_scan_status__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void resp_scan_status__free_unpacked (RespScanStatus *message, ProtobufCAllocator *allocator); /* CmdScanResult methods */ void cmd_scan_result__init (CmdScanResult *message); size_t cmd_scan_result__get_packed_size (const CmdScanResult *message); size_t cmd_scan_result__pack (const CmdScanResult *message, uint8_t *out); size_t cmd_scan_result__pack_to_buffer (const CmdScanResult *message, ProtobufCBuffer *buffer); CmdScanResult * cmd_scan_result__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void cmd_scan_result__free_unpacked (CmdScanResult *message, ProtobufCAllocator *allocator); /* WiFiScanResult methods */ void wi_fi_scan_result__init (WiFiScanResult *message); size_t wi_fi_scan_result__get_packed_size (const WiFiScanResult *message); size_t wi_fi_scan_result__pack (const WiFiScanResult *message, uint8_t *out); size_t wi_fi_scan_result__pack_to_buffer (const WiFiScanResult *message, ProtobufCBuffer *buffer); WiFiScanResult * wi_fi_scan_result__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void wi_fi_scan_result__free_unpacked (WiFiScanResult *message, ProtobufCAllocator *allocator); /* RespScanResult methods */ void resp_scan_result__init (RespScanResult *message); size_t resp_scan_result__get_packed_size (const RespScanResult *message); size_t resp_scan_result__pack (const RespScanResult *message, uint8_t *out); size_t resp_scan_result__pack_to_buffer (const RespScanResult *message, ProtobufCBuffer *buffer); RespScanResult * resp_scan_result__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void resp_scan_result__free_unpacked (RespScanResult *message, ProtobufCAllocator *allocator); /* WiFiScanPayload methods */ void wi_fi_scan_payload__init (WiFiScanPayload *message); size_t wi_fi_scan_payload__get_packed_size (const WiFiScanPayload *message); size_t wi_fi_scan_payload__pack (const WiFiScanPayload *message, uint8_t *out); size_t wi_fi_scan_payload__pack_to_buffer (const WiFiScanPayload *message, ProtobufCBuffer *buffer); WiFiScanPayload * wi_fi_scan_payload__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void wi_fi_scan_payload__free_unpacked (WiFiScanPayload *message, ProtobufCAllocator *allocator); /* --- per-message closures --- */ typedef void (*CmdScanStart_Closure) (const CmdScanStart *message, void *closure_data); typedef void (*RespScanStart_Closure) (const RespScanStart *message, void *closure_data); typedef void (*CmdScanStatus_Closure) (const CmdScanStatus *message, void *closure_data); typedef void (*RespScanStatus_Closure) (const RespScanStatus *message, void *closure_data); typedef void (*CmdScanResult_Closure) (const CmdScanResult *message, void *closure_data); typedef void (*WiFiScanResult_Closure) (const WiFiScanResult *message, void *closure_data); typedef void (*RespScanResult_Closure) (const RespScanResult *message, void *closure_data); typedef void (*WiFiScanPayload_Closure) (const WiFiScanPayload *message, void *closure_data); /* --- services --- */ /* --- descriptors --- */ extern const ProtobufCEnumDescriptor wi_fi_scan_msg_type__descriptor; extern const ProtobufCMessageDescriptor cmd_scan_start__descriptor; extern const ProtobufCMessageDescriptor resp_scan_start__descriptor; extern const ProtobufCMessageDescriptor cmd_scan_status__descriptor; extern const ProtobufCMessageDescriptor resp_scan_status__descriptor; extern const ProtobufCMessageDescriptor cmd_scan_result__descriptor; extern const ProtobufCMessageDescriptor wi_fi_scan_result__descriptor; extern const ProtobufCMessageDescriptor resp_scan_result__descriptor; extern const ProtobufCMessageDescriptor wi_fi_scan_payload__descriptor; PROTOBUF_C__END_DECLS /* ... */ #endif /* PROTOBUF_C_wifi_5fscan_2eproto__INCLUDED */
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.