Select one of the symbols to view example projects that use it.
 
Outline
#define PROTOBUF_C__NO_DEPRECATED
#include "session.pb-c.h"
session_data__init(SessionData *)
session_data__get_packed_size(const SessionData *)
session_data__pack(const SessionData *, uint8_t *)
session_data__pack_to_buffer(const SessionData *, ProtobufCBuffer *)
session_data__unpack(ProtobufCAllocator *, size_t, const uint8_t *)
session_data__free_unpacked(SessionData *, ProtobufCAllocator *)
session_data__field_descriptors
session_data__field_indices_by_name
session_data__number_ranges
session_data__descriptor
sec_scheme_version__enum_values_by_number
sec_scheme_version__value_ranges
sec_scheme_version__enum_values_by_name
sec_scheme_version__descriptor
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/protocomm/proto-c/session.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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: session.proto */ /* Do not generate deprecated warnings for self */ #ifndef PROTOBUF_C__NO_DEPRECATED #define PROTOBUF_C__NO_DEPRECATED #endif #include "session.pb-c.h" void session_data__init (SessionData *message) { static const SessionData init_value = SESSION_DATA__INIT; *message = init_value; }{ ... } size_t session_data__get_packed_size (const SessionData *message) { assert(message->base.descriptor == &session_data__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); }{ ... } size_t session_data__pack (const SessionData *message, uint8_t *out) { assert(message->base.descriptor == &session_data__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); }{ ... } size_t session_data__pack_to_buffer (const SessionData *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &session_data__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); }{ ... } SessionData * session_data__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (SessionData *) protobuf_c_message_unpack (&session_data__descriptor, allocator, len, data); }{ ... } void session_data__free_unpacked (SessionData *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &session_data__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); }{ ... } static const ProtobufCFieldDescriptor session_data__field_descriptors[4] = { { "sec_ver", 2, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_ENUM, 0, /* quantifier_offset */ offsetof(SessionData, sec_ver), &sec_scheme_version__descriptor, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }{...}, { "sec0", 10, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(SessionData, proto_case), offsetof(SessionData, sec0), &sec0_payload__descriptor, NULL, 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }{...}, { "sec1", 11, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(SessionData, proto_case), offsetof(SessionData, sec1), &sec1_payload__descriptor, NULL, 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }{...}, { "sec2", 12, PROTOBUF_C_LABEL_NONE, PROTOBUF_C_TYPE_MESSAGE, offsetof(SessionData, proto_case), offsetof(SessionData, sec2), &sec2_payload__descriptor, NULL, 0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }{...}, }{...}; static const unsigned session_data__field_indices_by_name[] = { 1, /* field[1] = sec0 */ 2, /* field[2] = sec1 */ 3, /* field[3] = sec2 */ 0, /* field[0] = sec_ver */ }{...}; static const ProtobufCIntRange session_data__number_ranges[2 + 1] = { { 2, 0 }, { 10, 1 }, { 0, 4 } }{...}; const ProtobufCMessageDescriptor session_data__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "SessionData", "SessionData", "SessionData", "", sizeof(SessionData), 4, session_data__field_descriptors, session_data__field_indices_by_name, 2, session_data__number_ranges, (ProtobufCMessageInit) session_data__init, NULL,NULL,NULL /* reserved[123] */ }{...}; static const ProtobufCEnumValue sec_scheme_version__enum_values_by_number[3] = { { "SecScheme0", "SEC_SCHEME_VERSION__SecScheme0", 0 }, { "SecScheme1", "SEC_SCHEME_VERSION__SecScheme1", 1 }, { "SecScheme2", "SEC_SCHEME_VERSION__SecScheme2", 2 }, }{...}; static const ProtobufCIntRange sec_scheme_version__value_ranges[] = { {0, 0},{0, 3} }{...}; static const ProtobufCEnumValueIndex sec_scheme_version__enum_values_by_name[3] = { { "SecScheme0", 0 }, { "SecScheme1", 1 }, { "SecScheme2", 2 }, }{...}; const ProtobufCEnumDescriptor sec_scheme_version__descriptor = { PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, "SecSchemeVersion", "SecSchemeVersion", "SecSchemeVersion", "", 3, sec_scheme_version__enum_values_by_number, 3, sec_scheme_version__enum_values_by_name, 1, sec_scheme_version__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.