Select one of the symbols to view example projects that use it.
 
Outline
#define PROTOBUF_C_sec0_2eproto__INCLUDED
#include <protobuf-c/protobuf-c.h>
#include "constants.pb-c.h"
S0SessionCmd
S0SessionResp
Sec0Payload
_Sec0MsgType
S0SessionCmd
S0SessionResp
Sec0Payload__PayloadCase
Sec0Payload
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 *);
S0SessionCmd_Closure
S0SessionResp_Closure
Sec0Payload_Closure
sec0_msg_type__descriptor;
s0_session_cmd__descriptor;
s0_session_resp__descriptor;
sec0_payload__descriptor;
Files
loading (1/5)...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/protocomm/proto-c/sec0.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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: sec0.proto */ #ifndef PROTOBUF_C_sec0_2eproto__INCLUDED #define PROTOBUF_C_sec0_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 1004000 < 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 S0SessionCmd S0SessionCmd; typedef struct S0SessionResp S0SessionResp; typedef struct Sec0Payload Sec0Payload; /* --- enums --- */ /* * A message must be of type Cmd or Resp *//* ... */ typedef enum _Sec0MsgType { SEC0_MSG_TYPE__S0_Session_Command = 0, SEC0_MSG_TYPE__S0_Session_Response = 1 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(SEC0_MSG_TYPE) }{ ... } Sec0MsgType; /* --- messages --- */ /* * Data structure of Session command/request packet *//* ... */ struct S0SessionCmd { ProtobufCMessage base; }{ ... }; #define S0_SESSION_CMD__INIT \ { PROTOBUF_C_MESSAGE_INIT (&s0_session_cmd__descriptor) \ }{...} ... /* * Data structure of Session response packet *//* ... */ struct S0SessionResp { ProtobufCMessage base; Status status; }{ ... }; #define S0_SESSION_RESP__INIT \ { PROTOBUF_C_MESSAGE_INIT (&s0_session_resp__descriptor) \ , STATUS__Success }{...} ... typedef enum { SEC0_PAYLOAD__PAYLOAD__NOT_SET = 0, SEC0_PAYLOAD__PAYLOAD_SC = 20, SEC0_PAYLOAD__PAYLOAD_SR = 21 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(SEC0_PAYLOAD__PAYLOAD__CASE) }{ ... } Sec0Payload__PayloadCase; /* * Payload structure of session data *//* ... */ struct Sec0Payload { ProtobufCMessage base; /* *!< Type of message *//* ... */ Sec0MsgType msg; Sec0Payload__PayloadCase payload_case; union { /* *!< Payload data interpreted as Cmd *//* ... */ S0SessionCmd *sc; /* *!< Payload data interpreted as Resp *//* ... */ S0SessionResp *sr; }{ ... }; }{ ... }; #define SEC0_PAYLOAD__INIT \ { PROTOBUF_C_MESSAGE_INIT (&sec0_payload__descriptor) \ , SEC0_MSG_TYPE__S0_Session_Command, SEC0_PAYLOAD__PAYLOAD__NOT_SET, {0} }{...} ... /* S0SessionCmd methods */ void s0_session_cmd__init (S0SessionCmd *message); size_t s0_session_cmd__get_packed_size (const S0SessionCmd *message); size_t s0_session_cmd__pack (const S0SessionCmd *message, uint8_t *out); size_t s0_session_cmd__pack_to_buffer (const S0SessionCmd *message, ProtobufCBuffer *buffer); S0SessionCmd * s0_session_cmd__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void s0_session_cmd__free_unpacked (S0SessionCmd *message, ProtobufCAllocator *allocator); /* S0SessionResp methods */ void s0_session_resp__init (S0SessionResp *message); size_t s0_session_resp__get_packed_size (const S0SessionResp *message); size_t s0_session_resp__pack (const S0SessionResp *message, uint8_t *out); size_t s0_session_resp__pack_to_buffer (const S0SessionResp *message, ProtobufCBuffer *buffer); S0SessionResp * s0_session_resp__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void s0_session_resp__free_unpacked (S0SessionResp *message, ProtobufCAllocator *allocator); /* Sec0Payload methods */ void sec0_payload__init (Sec0Payload *message); size_t sec0_payload__get_packed_size (const Sec0Payload *message); size_t sec0_payload__pack (const Sec0Payload *message, uint8_t *out); size_t sec0_payload__pack_to_buffer (const Sec0Payload *message, ProtobufCBuffer *buffer); Sec0Payload * sec0_payload__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void sec0_payload__free_unpacked (Sec0Payload *message, ProtobufCAllocator *allocator); /* --- per-message closures --- */ typedef void (*S0SessionCmd_Closure) (const S0SessionCmd *message, void *closure_data); typedef void (*S0SessionResp_Closure) (const S0SessionResp *message, void *closure_data); typedef void (*Sec0Payload_Closure) (const Sec0Payload *message, void *closure_data); /* --- services --- */ /* --- descriptors --- */ extern const ProtobufCEnumDescriptor sec0_msg_type__descriptor; extern const ProtobufCMessageDescriptor s0_session_cmd__descriptor; extern const ProtobufCMessageDescriptor s0_session_resp__descriptor; extern const ProtobufCMessageDescriptor sec0_payload__descriptor; PROTOBUF_C__END_DECLS /* ... */ #endif /* PROTOBUF_C_sec0_2eproto__INCLUDED */
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.