1 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2 /* Generated from: common_types.proto */
4 #ifndef PROTOBUF_C_common_5ftypes_2eproto__INCLUDED
5 #define PROTOBUF_C_common_5ftypes_2eproto__INCLUDED
7 #include <protobuf-c/protobuf-c.h>
9 PROTOBUF_C__BEGIN_DECLS
11 #if PROTOBUF_C_VERSION_NUMBER < 1003000
12 # error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
13 #elif 1003002 < PROTOBUF_C_MIN_COMPILER_VERSION
14 # 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.
18 typedef struct _StreamingProtobufs__Null StreamingProtobufs__Null;
19 typedef struct _StreamingProtobufs__ConfiguredOpt StreamingProtobufs__ConfiguredOpt;
20 typedef struct _StreamingProtobufs__TrueOpt StreamingProtobufs__TrueOpt;
21 typedef struct _StreamingProtobufs__FalseOpt StreamingProtobufs__FalseOpt;
22 typedef struct _StreamingProtobufs__EnabledOpt StreamingProtobufs__EnabledOpt;
23 typedef struct _StreamingProtobufs__DisabledOpt StreamingProtobufs__DisabledOpt;
24 typedef struct _StreamingProtobufs__EnabledDisabledOpt StreamingProtobufs__EnabledDisabledOpt;
25 typedef struct _StreamingProtobufs__OnOffOpt StreamingProtobufs__OnOffOpt;
30 typedef enum _StreamingProtobufs__ConfiguredOpt__Value {
31 STREAMING_PROTOBUFS__CONFIGURED_OPT__VALUE__protobuf_unspecified = 0,
32 STREAMING_PROTOBUFS__CONFIGURED_OPT__VALUE__configured = 1
33 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(STREAMING_PROTOBUFS__CONFIGURED_OPT__VALUE)
34 } StreamingProtobufs__ConfiguredOpt__Value;
35 typedef enum _StreamingProtobufs__TrueOpt__Value {
36 STREAMING_PROTOBUFS__TRUE_OPT__VALUE__protobuf_unspecified = 0,
37 STREAMING_PROTOBUFS__TRUE_OPT__VALUE__true = 1
38 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(STREAMING_PROTOBUFS__TRUE_OPT__VALUE)
39 } StreamingProtobufs__TrueOpt__Value;
40 typedef enum _StreamingProtobufs__FalseOpt__Value {
41 STREAMING_PROTOBUFS__FALSE_OPT__VALUE__protobuf_unspecified = 0,
42 STREAMING_PROTOBUFS__FALSE_OPT__VALUE__false = 1
43 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(STREAMING_PROTOBUFS__FALSE_OPT__VALUE)
44 } StreamingProtobufs__FalseOpt__Value;
45 typedef enum _StreamingProtobufs__EnabledOpt__Value {
46 STREAMING_PROTOBUFS__ENABLED_OPT__VALUE__protobuf_unspecified = 0,
47 STREAMING_PROTOBUFS__ENABLED_OPT__VALUE__enabled = 1
48 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(STREAMING_PROTOBUFS__ENABLED_OPT__VALUE)
49 } StreamingProtobufs__EnabledOpt__Value;
50 typedef enum _StreamingProtobufs__DisabledOpt__Value {
51 STREAMING_PROTOBUFS__DISABLED_OPT__VALUE__protobuf_unspecified = 0,
52 STREAMING_PROTOBUFS__DISABLED_OPT__VALUE__disabled = 1
53 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(STREAMING_PROTOBUFS__DISABLED_OPT__VALUE)
54 } StreamingProtobufs__DisabledOpt__Value;
55 typedef enum _StreamingProtobufs__EnabledDisabledOpt__Value {
56 STREAMING_PROTOBUFS__ENABLED_DISABLED_OPT__VALUE__protobuf_unspecified = 0,
57 STREAMING_PROTOBUFS__ENABLED_DISABLED_OPT__VALUE__enabled = 1,
58 STREAMING_PROTOBUFS__ENABLED_DISABLED_OPT__VALUE__disabled = 2
59 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(STREAMING_PROTOBUFS__ENABLED_DISABLED_OPT__VALUE)
60 } StreamingProtobufs__EnabledDisabledOpt__Value;
61 typedef enum _StreamingProtobufs__OnOffOpt__Value {
62 STREAMING_PROTOBUFS__ON_OFF_OPT__VALUE__protobuf_unspecified = 0,
63 STREAMING_PROTOBUFS__ON_OFF_OPT__VALUE__on = 1,
64 STREAMING_PROTOBUFS__ON_OFF_OPT__VALUE__off = 2
65 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(STREAMING_PROTOBUFS__ON_OFF_OPT__VALUE)
66 } StreamingProtobufs__OnOffOpt__Value;
68 /* --- messages --- */
70 struct _StreamingProtobufs__Null
72 ProtobufCMessage base;
74 #define STREAMING_PROTOBUFS__NULL__INIT \
75 { PROTOBUF_C_MESSAGE_INIT (&streaming_protobufs__null__descriptor) \
79 struct _StreamingProtobufs__ConfiguredOpt
81 ProtobufCMessage base;
82 StreamingProtobufs__ConfiguredOpt__Value value;
84 #define STREAMING_PROTOBUFS__CONFIGURED_OPT__INIT \
85 { PROTOBUF_C_MESSAGE_INIT (&streaming_protobufs__configured_opt__descriptor) \
86 , STREAMING_PROTOBUFS__CONFIGURED_OPT__VALUE__protobuf_unspecified }
89 struct _StreamingProtobufs__TrueOpt
91 ProtobufCMessage base;
92 StreamingProtobufs__TrueOpt__Value value;
94 #define STREAMING_PROTOBUFS__TRUE_OPT__INIT \
95 { PROTOBUF_C_MESSAGE_INIT (&streaming_protobufs__true_opt__descriptor) \
96 , STREAMING_PROTOBUFS__TRUE_OPT__VALUE__protobuf_unspecified }
99 struct _StreamingProtobufs__FalseOpt
101 ProtobufCMessage base;
102 StreamingProtobufs__FalseOpt__Value value;
104 #define STREAMING_PROTOBUFS__FALSE_OPT__INIT \
105 { PROTOBUF_C_MESSAGE_INIT (&streaming_protobufs__false_opt__descriptor) \
106 , STREAMING_PROTOBUFS__FALSE_OPT__VALUE__protobuf_unspecified }
109 struct _StreamingProtobufs__EnabledOpt
111 ProtobufCMessage base;
112 StreamingProtobufs__EnabledOpt__Value value;
114 #define STREAMING_PROTOBUFS__ENABLED_OPT__INIT \
115 { PROTOBUF_C_MESSAGE_INIT (&streaming_protobufs__enabled_opt__descriptor) \
116 , STREAMING_PROTOBUFS__ENABLED_OPT__VALUE__protobuf_unspecified }
119 struct _StreamingProtobufs__DisabledOpt
121 ProtobufCMessage base;
122 StreamingProtobufs__DisabledOpt__Value value;
124 #define STREAMING_PROTOBUFS__DISABLED_OPT__INIT \
125 { PROTOBUF_C_MESSAGE_INIT (&streaming_protobufs__disabled_opt__descriptor) \
126 , STREAMING_PROTOBUFS__DISABLED_OPT__VALUE__protobuf_unspecified }
129 struct _StreamingProtobufs__EnabledDisabledOpt
131 ProtobufCMessage base;
132 StreamingProtobufs__EnabledDisabledOpt__Value value;
134 #define STREAMING_PROTOBUFS__ENABLED_DISABLED_OPT__INIT \
135 { PROTOBUF_C_MESSAGE_INIT (&streaming_protobufs__enabled_disabled_opt__descriptor) \
136 , STREAMING_PROTOBUFS__ENABLED_DISABLED_OPT__VALUE__protobuf_unspecified }
139 struct _StreamingProtobufs__OnOffOpt
141 ProtobufCMessage base;
142 StreamingProtobufs__OnOffOpt__Value value;
144 #define STREAMING_PROTOBUFS__ON_OFF_OPT__INIT \
145 { PROTOBUF_C_MESSAGE_INIT (&streaming_protobufs__on_off_opt__descriptor) \
146 , STREAMING_PROTOBUFS__ON_OFF_OPT__VALUE__protobuf_unspecified }
149 /* StreamingProtobufs__Null methods */
150 void streaming_protobufs__null__init
151 (StreamingProtobufs__Null *message);
152 size_t streaming_protobufs__null__get_packed_size
153 (const StreamingProtobufs__Null *message);
154 size_t streaming_protobufs__null__pack
155 (const StreamingProtobufs__Null *message,
157 size_t streaming_protobufs__null__pack_to_buffer
158 (const StreamingProtobufs__Null *message,
159 ProtobufCBuffer *buffer);
160 StreamingProtobufs__Null *
161 streaming_protobufs__null__unpack
162 (ProtobufCAllocator *allocator,
164 const uint8_t *data);
165 void streaming_protobufs__null__free_unpacked
166 (StreamingProtobufs__Null *message,
167 ProtobufCAllocator *allocator);
168 /* StreamingProtobufs__ConfiguredOpt methods */
169 void streaming_protobufs__configured_opt__init
170 (StreamingProtobufs__ConfiguredOpt *message);
171 size_t streaming_protobufs__configured_opt__get_packed_size
172 (const StreamingProtobufs__ConfiguredOpt *message);
173 size_t streaming_protobufs__configured_opt__pack
174 (const StreamingProtobufs__ConfiguredOpt *message,
176 size_t streaming_protobufs__configured_opt__pack_to_buffer
177 (const StreamingProtobufs__ConfiguredOpt *message,
178 ProtobufCBuffer *buffer);
179 StreamingProtobufs__ConfiguredOpt *
180 streaming_protobufs__configured_opt__unpack
181 (ProtobufCAllocator *allocator,
183 const uint8_t *data);
184 void streaming_protobufs__configured_opt__free_unpacked
185 (StreamingProtobufs__ConfiguredOpt *message,
186 ProtobufCAllocator *allocator);
187 /* StreamingProtobufs__TrueOpt methods */
188 void streaming_protobufs__true_opt__init
189 (StreamingProtobufs__TrueOpt *message);
190 size_t streaming_protobufs__true_opt__get_packed_size
191 (const StreamingProtobufs__TrueOpt *message);
192 size_t streaming_protobufs__true_opt__pack
193 (const StreamingProtobufs__TrueOpt *message,
195 size_t streaming_protobufs__true_opt__pack_to_buffer
196 (const StreamingProtobufs__TrueOpt *message,
197 ProtobufCBuffer *buffer);
198 StreamingProtobufs__TrueOpt *
199 streaming_protobufs__true_opt__unpack
200 (ProtobufCAllocator *allocator,
202 const uint8_t *data);
203 void streaming_protobufs__true_opt__free_unpacked
204 (StreamingProtobufs__TrueOpt *message,
205 ProtobufCAllocator *allocator);
206 /* StreamingProtobufs__FalseOpt methods */
207 void streaming_protobufs__false_opt__init
208 (StreamingProtobufs__FalseOpt *message);
209 size_t streaming_protobufs__false_opt__get_packed_size
210 (const StreamingProtobufs__FalseOpt *message);
211 size_t streaming_protobufs__false_opt__pack
212 (const StreamingProtobufs__FalseOpt *message,
214 size_t streaming_protobufs__false_opt__pack_to_buffer
215 (const StreamingProtobufs__FalseOpt *message,
216 ProtobufCBuffer *buffer);
217 StreamingProtobufs__FalseOpt *
218 streaming_protobufs__false_opt__unpack
219 (ProtobufCAllocator *allocator,
221 const uint8_t *data);
222 void streaming_protobufs__false_opt__free_unpacked
223 (StreamingProtobufs__FalseOpt *message,
224 ProtobufCAllocator *allocator);
225 /* StreamingProtobufs__EnabledOpt methods */
226 void streaming_protobufs__enabled_opt__init
227 (StreamingProtobufs__EnabledOpt *message);
228 size_t streaming_protobufs__enabled_opt__get_packed_size
229 (const StreamingProtobufs__EnabledOpt *message);
230 size_t streaming_protobufs__enabled_opt__pack
231 (const StreamingProtobufs__EnabledOpt *message,
233 size_t streaming_protobufs__enabled_opt__pack_to_buffer
234 (const StreamingProtobufs__EnabledOpt *message,
235 ProtobufCBuffer *buffer);
236 StreamingProtobufs__EnabledOpt *
237 streaming_protobufs__enabled_opt__unpack
238 (ProtobufCAllocator *allocator,
240 const uint8_t *data);
241 void streaming_protobufs__enabled_opt__free_unpacked
242 (StreamingProtobufs__EnabledOpt *message,
243 ProtobufCAllocator *allocator);
244 /* StreamingProtobufs__DisabledOpt methods */
245 void streaming_protobufs__disabled_opt__init
246 (StreamingProtobufs__DisabledOpt *message);
247 size_t streaming_protobufs__disabled_opt__get_packed_size
248 (const StreamingProtobufs__DisabledOpt *message);
249 size_t streaming_protobufs__disabled_opt__pack
250 (const StreamingProtobufs__DisabledOpt *message,
252 size_t streaming_protobufs__disabled_opt__pack_to_buffer
253 (const StreamingProtobufs__DisabledOpt *message,
254 ProtobufCBuffer *buffer);
255 StreamingProtobufs__DisabledOpt *
256 streaming_protobufs__disabled_opt__unpack
257 (ProtobufCAllocator *allocator,
259 const uint8_t *data);
260 void streaming_protobufs__disabled_opt__free_unpacked
261 (StreamingProtobufs__DisabledOpt *message,
262 ProtobufCAllocator *allocator);
263 /* StreamingProtobufs__EnabledDisabledOpt methods */
264 void streaming_protobufs__enabled_disabled_opt__init
265 (StreamingProtobufs__EnabledDisabledOpt *message);
266 size_t streaming_protobufs__enabled_disabled_opt__get_packed_size
267 (const StreamingProtobufs__EnabledDisabledOpt *message);
268 size_t streaming_protobufs__enabled_disabled_opt__pack
269 (const StreamingProtobufs__EnabledDisabledOpt *message,
271 size_t streaming_protobufs__enabled_disabled_opt__pack_to_buffer
272 (const StreamingProtobufs__EnabledDisabledOpt *message,
273 ProtobufCBuffer *buffer);
274 StreamingProtobufs__EnabledDisabledOpt *
275 streaming_protobufs__enabled_disabled_opt__unpack
276 (ProtobufCAllocator *allocator,
278 const uint8_t *data);
279 void streaming_protobufs__enabled_disabled_opt__free_unpacked
280 (StreamingProtobufs__EnabledDisabledOpt *message,
281 ProtobufCAllocator *allocator);
282 /* StreamingProtobufs__OnOffOpt methods */
283 void streaming_protobufs__on_off_opt__init
284 (StreamingProtobufs__OnOffOpt *message);
285 size_t streaming_protobufs__on_off_opt__get_packed_size
286 (const StreamingProtobufs__OnOffOpt *message);
287 size_t streaming_protobufs__on_off_opt__pack
288 (const StreamingProtobufs__OnOffOpt *message,
290 size_t streaming_protobufs__on_off_opt__pack_to_buffer
291 (const StreamingProtobufs__OnOffOpt *message,
292 ProtobufCBuffer *buffer);
293 StreamingProtobufs__OnOffOpt *
294 streaming_protobufs__on_off_opt__unpack
295 (ProtobufCAllocator *allocator,
297 const uint8_t *data);
298 void streaming_protobufs__on_off_opt__free_unpacked
299 (StreamingProtobufs__OnOffOpt *message,
300 ProtobufCAllocator *allocator);
301 /* --- per-message closures --- */
303 typedef void (*StreamingProtobufs__Null_Closure)
304 (const StreamingProtobufs__Null *message,
306 typedef void (*StreamingProtobufs__ConfiguredOpt_Closure)
307 (const StreamingProtobufs__ConfiguredOpt *message,
309 typedef void (*StreamingProtobufs__TrueOpt_Closure)
310 (const StreamingProtobufs__TrueOpt *message,
312 typedef void (*StreamingProtobufs__FalseOpt_Closure)
313 (const StreamingProtobufs__FalseOpt *message,
315 typedef void (*StreamingProtobufs__EnabledOpt_Closure)
316 (const StreamingProtobufs__EnabledOpt *message,
318 typedef void (*StreamingProtobufs__DisabledOpt_Closure)
319 (const StreamingProtobufs__DisabledOpt *message,
321 typedef void (*StreamingProtobufs__EnabledDisabledOpt_Closure)
322 (const StreamingProtobufs__EnabledDisabledOpt *message,
324 typedef void (*StreamingProtobufs__OnOffOpt_Closure)
325 (const StreamingProtobufs__OnOffOpt *message,
328 /* --- services --- */
331 /* --- descriptors --- */
333 extern const ProtobufCMessageDescriptor streaming_protobufs__null__descriptor;
334 extern const ProtobufCMessageDescriptor streaming_protobufs__configured_opt__descriptor;
335 extern const ProtobufCEnumDescriptor streaming_protobufs__configured_opt__value__descriptor;
336 extern const ProtobufCMessageDescriptor streaming_protobufs__true_opt__descriptor;
337 extern const ProtobufCEnumDescriptor streaming_protobufs__true_opt__value__descriptor;
338 extern const ProtobufCMessageDescriptor streaming_protobufs__false_opt__descriptor;
339 extern const ProtobufCEnumDescriptor streaming_protobufs__false_opt__value__descriptor;
340 extern const ProtobufCMessageDescriptor streaming_protobufs__enabled_opt__descriptor;
341 extern const ProtobufCEnumDescriptor streaming_protobufs__enabled_opt__value__descriptor;
342 extern const ProtobufCMessageDescriptor streaming_protobufs__disabled_opt__descriptor;
343 extern const ProtobufCEnumDescriptor streaming_protobufs__disabled_opt__value__descriptor;
344 extern const ProtobufCMessageDescriptor streaming_protobufs__enabled_disabled_opt__descriptor;
345 extern const ProtobufCEnumDescriptor streaming_protobufs__enabled_disabled_opt__value__descriptor;
346 extern const ProtobufCMessageDescriptor streaming_protobufs__on_off_opt__descriptor;
347 extern const ProtobufCEnumDescriptor streaming_protobufs__on_off_opt__value__descriptor;
349 PROTOBUF_C__END_DECLS
352 #endif /* PROTOBUF_C_common_5ftypes_2eproto__INCLUDED */