Select one of the symbols to view example projects that use it.
 
Outline
#define PROTOBUF_C_wifi_5fconfig_2eproto__INCLUDED
#include <protobuf-c/protobuf-c.h>
#include "constants.pb-c.h"
#include "wifi_constants.pb-c.h"
CmdGetStatus
RespGetStatus
CmdSetConfig
RespSetConfig
CmdApplyConfig
RespApplyConfig
WiFiConfigPayload
_WiFiConfigMsgType
CmdGetStatus
RespGetStatus__StateCase
RespGetStatus
CmdSetConfig
RespSetConfig
CmdApplyConfig
RespApplyConfig
WiFiConfigPayload__PayloadCase
WiFiConfigPayload
cmd_get_status__init(CmdGetStatus *);
cmd_get_status__get_packed_size(const CmdGetStatus *);
cmd_get_status__pack(const CmdGetStatus *, uint8_t *);
cmd_get_status__pack_to_buffer(const CmdGetStatus *, ProtobufCBuffer *);
cmd_get_status__unpack(ProtobufCAllocator *, size_t, const uint8_t *);
cmd_get_status__free_unpacked(CmdGetStatus *, ProtobufCAllocator *);
resp_get_status__init(RespGetStatus *);
resp_get_status__get_packed_size(const RespGetStatus *);
resp_get_status__pack(const RespGetStatus *, uint8_t *);
resp_get_status__pack_to_buffer(const RespGetStatus *, ProtobufCBuffer *);
resp_get_status__unpack(ProtobufCAllocator *, size_t, const uint8_t *);
resp_get_status__free_unpacked(RespGetStatus *, ProtobufCAllocator *);
cmd_set_config__init(CmdSetConfig *);
cmd_set_config__get_packed_size(const CmdSetConfig *);
cmd_set_config__pack(const CmdSetConfig *, uint8_t *);
cmd_set_config__pack_to_buffer(const CmdSetConfig *, ProtobufCBuffer *);
cmd_set_config__unpack(ProtobufCAllocator *, size_t, const uint8_t *);
cmd_set_config__free_unpacked(CmdSetConfig *, ProtobufCAllocator *);
resp_set_config__init(RespSetConfig *);
resp_set_config__get_packed_size(const RespSetConfig *);
resp_set_config__pack(const RespSetConfig *, uint8_t *);
resp_set_config__pack_to_buffer(const RespSetConfig *, ProtobufCBuffer *);
resp_set_config__unpack(ProtobufCAllocator *, size_t, const uint8_t *);
resp_set_config__free_unpacked(RespSetConfig *, ProtobufCAllocator *);
cmd_apply_config__init(CmdApplyConfig *);
cmd_apply_config__get_packed_size(const CmdApplyConfig *);
cmd_apply_config__pack(const CmdApplyConfig *, uint8_t *);
cmd_apply_config__pack_to_buffer(const CmdApplyConfig *, ProtobufCBuffer *);
cmd_apply_config__unpack(ProtobufCAllocator *, size_t, const uint8_t *);
cmd_apply_config__free_unpacked(CmdApplyConfig *, ProtobufCAllocator *);
resp_apply_config__init(RespApplyConfig *);
resp_apply_config__get_packed_size(const RespApplyConfig *);
resp_apply_config__pack(const RespApplyConfig *, uint8_t *);
resp_apply_config__pack_to_buffer(const RespApplyConfig *, ProtobufCBuffer *);
resp_apply_config__unpack(ProtobufCAllocator *, size_t, const uint8_t *);
resp_apply_config__free_unpacked(RespApplyConfig *, ProtobufCAllocator *);
wi_fi_config_payload__init(WiFiConfigPayload *);
wi_fi_config_payload__get_packed_size(const WiFiConfigPayload *);
wi_fi_config_payload__pack(const WiFiConfigPayload *, uint8_t *);
wi_fi_config_payload__pack_to_buffer(const WiFiConfigPayload *, ProtobufCBuffer *);
wi_fi_config_payload__unpack(ProtobufCAllocator *, size_t, const uint8_t *);
wi_fi_config_payload__free_unpacked(WiFiConfigPayload *, ProtobufCAllocator *);
CmdGetStatus_Closure
RespGetStatus_Closure
CmdSetConfig_Closure
RespSetConfig_Closure
CmdApplyConfig_Closure
RespApplyConfig_Closure
WiFiConfigPayload_Closure
wi_fi_config_msg_type__descriptor;
cmd_get_status__descriptor;
resp_get_status__descriptor;
cmd_set_config__descriptor;
resp_set_config__descriptor;
cmd_apply_config__descriptor;
resp_apply_config__descriptor;
wi_fi_config_payload__descriptor;
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/wifi_provisioning/proto-c/wifi_config.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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: wifi_config.proto */ #ifndef PROTOBUF_C_wifi_5fconfig_2eproto__INCLUDED #define PROTOBUF_C_wifi_5fconfig_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 CmdGetStatus CmdGetStatus; typedef struct RespGetStatus RespGetStatus; typedef struct CmdSetConfig CmdSetConfig; typedef struct RespSetConfig RespSetConfig; typedef struct CmdApplyConfig CmdApplyConfig; typedef struct RespApplyConfig RespApplyConfig; typedef struct WiFiConfigPayload WiFiConfigPayload; /* --- enums --- */ typedef enum _WiFiConfigMsgType { WI_FI_CONFIG_MSG_TYPE__TypeCmdGetStatus = 0, WI_FI_CONFIG_MSG_TYPE__TypeRespGetStatus = 1, WI_FI_CONFIG_MSG_TYPE__TypeCmdSetConfig = 2, WI_FI_CONFIG_MSG_TYPE__TypeRespSetConfig = 3, WI_FI_CONFIG_MSG_TYPE__TypeCmdApplyConfig = 4, WI_FI_CONFIG_MSG_TYPE__TypeRespApplyConfig = 5 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(WI_FI_CONFIG_MSG_TYPE) }{ ... } WiFiConfigMsgType; /* --- messages --- */ struct CmdGetStatus { ProtobufCMessage base; }{ ... }; #define CMD_GET_STATUS__INIT \ { PROTOBUF_C_MESSAGE_INIT (&cmd_get_status__descriptor) \ }{...} ... typedef enum { RESP_GET_STATUS__STATE__NOT_SET = 0, RESP_GET_STATUS__STATE_FAIL_REASON = 10, RESP_GET_STATUS__STATE_CONNECTED = 11, RESP_GET_STATUS__STATE_ATTEMPT_FAILED = 12 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(RESP_GET_STATUS__STATE__CASE) }{ ... } RespGetStatus__StateCase; struct RespGetStatus { ProtobufCMessage base; Status status; WifiStationState sta_state; RespGetStatus__StateCase state_case; union { WifiConnectFailedReason fail_reason; WifiConnectedState *connected; WifiAttemptFailed *attempt_failed; }{ ... }; }{ ... }; #define RESP_GET_STATUS__INIT \ { PROTOBUF_C_MESSAGE_INIT (&resp_get_status__descriptor) \ , STATUS__Success, WIFI_STATION_STATE__Connected, RESP_GET_STATUS__STATE__NOT_SET, {0} }{...} ... struct CmdSetConfig { ProtobufCMessage base; ProtobufCBinaryData ssid; ProtobufCBinaryData passphrase; ProtobufCBinaryData bssid; int32_t channel; }{ ... }; #define CMD_SET_CONFIG__INIT \ { PROTOBUF_C_MESSAGE_INIT (&cmd_set_config__descriptor) \ , {0,NULL}, {0,NULL}, {0,NULL}, 0 }{...} ... struct RespSetConfig { ProtobufCMessage base; Status status; }{ ... }; #define RESP_SET_CONFIG__INIT \ { PROTOBUF_C_MESSAGE_INIT (&resp_set_config__descriptor) \ , STATUS__Success }{...} ... struct CmdApplyConfig { ProtobufCMessage base; }{ ... }; #define CMD_APPLY_CONFIG__INIT \ { PROTOBUF_C_MESSAGE_INIT (&cmd_apply_config__descriptor) \ }{...} ... struct RespApplyConfig { ProtobufCMessage base; Status status; }{ ... }; #define RESP_APPLY_CONFIG__INIT \ { PROTOBUF_C_MESSAGE_INIT (&resp_apply_config__descriptor) \ , STATUS__Success }{...} ... typedef enum { WI_FI_CONFIG_PAYLOAD__PAYLOAD__NOT_SET = 0, WI_FI_CONFIG_PAYLOAD__PAYLOAD_CMD_GET_STATUS = 10, WI_FI_CONFIG_PAYLOAD__PAYLOAD_RESP_GET_STATUS = 11, WI_FI_CONFIG_PAYLOAD__PAYLOAD_CMD_SET_CONFIG = 12, WI_FI_CONFIG_PAYLOAD__PAYLOAD_RESP_SET_CONFIG = 13, WI_FI_CONFIG_PAYLOAD__PAYLOAD_CMD_APPLY_CONFIG = 14, WI_FI_CONFIG_PAYLOAD__PAYLOAD_RESP_APPLY_CONFIG = 15 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(WI_FI_CONFIG_PAYLOAD__PAYLOAD__CASE) }{ ... } WiFiConfigPayload__PayloadCase; struct WiFiConfigPayload { ProtobufCMessage base; WiFiConfigMsgType msg; WiFiConfigPayload__PayloadCase payload_case; union { CmdGetStatus *cmd_get_status; RespGetStatus *resp_get_status; CmdSetConfig *cmd_set_config; RespSetConfig *resp_set_config; CmdApplyConfig *cmd_apply_config; RespApplyConfig *resp_apply_config; }{ ... }; }{ ... }; #define WI_FI_CONFIG_PAYLOAD__INIT \ { PROTOBUF_C_MESSAGE_INIT (&wi_fi_config_payload__descriptor) \ , WI_FI_CONFIG_MSG_TYPE__TypeCmdGetStatus, WI_FI_CONFIG_PAYLOAD__PAYLOAD__NOT_SET, {0} }{...} ... /* CmdGetStatus methods */ void cmd_get_status__init (CmdGetStatus *message); size_t cmd_get_status__get_packed_size (const CmdGetStatus *message); size_t cmd_get_status__pack (const CmdGetStatus *message, uint8_t *out); size_t cmd_get_status__pack_to_buffer (const CmdGetStatus *message, ProtobufCBuffer *buffer); CmdGetStatus * cmd_get_status__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void cmd_get_status__free_unpacked (CmdGetStatus *message, ProtobufCAllocator *allocator); /* RespGetStatus methods */ void resp_get_status__init (RespGetStatus *message); size_t resp_get_status__get_packed_size (const RespGetStatus *message); size_t resp_get_status__pack (const RespGetStatus *message, uint8_t *out); size_t resp_get_status__pack_to_buffer (const RespGetStatus *message, ProtobufCBuffer *buffer); RespGetStatus * resp_get_status__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void resp_get_status__free_unpacked (RespGetStatus *message, ProtobufCAllocator *allocator); /* CmdSetConfig methods */ void cmd_set_config__init (CmdSetConfig *message); size_t cmd_set_config__get_packed_size (const CmdSetConfig *message); size_t cmd_set_config__pack (const CmdSetConfig *message, uint8_t *out); size_t cmd_set_config__pack_to_buffer (const CmdSetConfig *message, ProtobufCBuffer *buffer); CmdSetConfig * cmd_set_config__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void cmd_set_config__free_unpacked (CmdSetConfig *message, ProtobufCAllocator *allocator); /* RespSetConfig methods */ void resp_set_config__init (RespSetConfig *message); size_t resp_set_config__get_packed_size (const RespSetConfig *message); size_t resp_set_config__pack (const RespSetConfig *message, uint8_t *out); size_t resp_set_config__pack_to_buffer (const RespSetConfig *message, ProtobufCBuffer *buffer); RespSetConfig * resp_set_config__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void resp_set_config__free_unpacked (RespSetConfig *message, ProtobufCAllocator *allocator); /* CmdApplyConfig methods */ void cmd_apply_config__init (CmdApplyConfig *message); size_t cmd_apply_config__get_packed_size (const CmdApplyConfig *message); size_t cmd_apply_config__pack (const CmdApplyConfig *message, uint8_t *out); size_t cmd_apply_config__pack_to_buffer (const CmdApplyConfig *message, ProtobufCBuffer *buffer); CmdApplyConfig * cmd_apply_config__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void cmd_apply_config__free_unpacked (CmdApplyConfig *message, ProtobufCAllocator *allocator); /* RespApplyConfig methods */ void resp_apply_config__init (RespApplyConfig *message); size_t resp_apply_config__get_packed_size (const RespApplyConfig *message); size_t resp_apply_config__pack (const RespApplyConfig *message, uint8_t *out); size_t resp_apply_config__pack_to_buffer (const RespApplyConfig *message, ProtobufCBuffer *buffer); RespApplyConfig * resp_apply_config__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void resp_apply_config__free_unpacked (RespApplyConfig *message, ProtobufCAllocator *allocator); /* WiFiConfigPayload methods */ void wi_fi_config_payload__init (WiFiConfigPayload *message); size_t wi_fi_config_payload__get_packed_size (const WiFiConfigPayload *message); size_t wi_fi_config_payload__pack (const WiFiConfigPayload *message, uint8_t *out); size_t wi_fi_config_payload__pack_to_buffer (const WiFiConfigPayload *message, ProtobufCBuffer *buffer); WiFiConfigPayload * wi_fi_config_payload__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void wi_fi_config_payload__free_unpacked (WiFiConfigPayload *message, ProtobufCAllocator *allocator); /* --- per-message closures --- */ typedef void (*CmdGetStatus_Closure) (const CmdGetStatus *message, void *closure_data); typedef void (*RespGetStatus_Closure) (const RespGetStatus *message, void *closure_data); typedef void (*CmdSetConfig_Closure) (const CmdSetConfig *message, void *closure_data); typedef void (*RespSetConfig_Closure) (const RespSetConfig *message, void *closure_data); typedef void (*CmdApplyConfig_Closure) (const CmdApplyConfig *message, void *closure_data); typedef void (*RespApplyConfig_Closure) (const RespApplyConfig *message, void *closure_data); typedef void (*WiFiConfigPayload_Closure) (const WiFiConfigPayload *message, void *closure_data); /* --- services --- */ /* --- descriptors --- */ extern const ProtobufCEnumDescriptor wi_fi_config_msg_type__descriptor; extern const ProtobufCMessageDescriptor cmd_get_status__descriptor; extern const ProtobufCMessageDescriptor resp_get_status__descriptor; extern const ProtobufCMessageDescriptor cmd_set_config__descriptor; extern const ProtobufCMessageDescriptor resp_set_config__descriptor; extern const ProtobufCMessageDescriptor cmd_apply_config__descriptor; extern const ProtobufCMessageDescriptor resp_apply_config__descriptor; extern const ProtobufCMessageDescriptor wi_fi_config_payload__descriptor; PROTOBUF_C__END_DECLS /* ... */ #endif /* PROTOBUF_C_wifi_5fconfig_2eproto__INCLUDED */
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.