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 _Uenibstreamprotobuf__Null Uenibstreamprotobuf__Null;
19 typedef struct _Uenibstreamprotobuf__ConfiguredOpt Uenibstreamprotobuf__ConfiguredOpt;
20 typedef struct _Uenibstreamprotobuf__TrueOpt Uenibstreamprotobuf__TrueOpt;
21 typedef struct _Uenibstreamprotobuf__FalseOpt Uenibstreamprotobuf__FalseOpt;
22 typedef struct _Uenibstreamprotobuf__EnabledOpt Uenibstreamprotobuf__EnabledOpt;
23 typedef struct _Uenibstreamprotobuf__DisabledOpt Uenibstreamprotobuf__DisabledOpt;
24 typedef struct _Uenibstreamprotobuf__EnabledDisabledOpt Uenibstreamprotobuf__EnabledDisabledOpt;
25 typedef struct _Uenibstreamprotobuf__OnOffOpt Uenibstreamprotobuf__OnOffOpt;
30 typedef enum _Uenibstreamprotobuf__ConfiguredOpt__Value {
31 UENIBSTREAMPROTOBUF__CONFIGURED_OPT__VALUE__protobuf_unspecified = 0,
32 UENIBSTREAMPROTOBUF__CONFIGURED_OPT__VALUE__configured = 1
33 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(UENIBSTREAMPROTOBUF__CONFIGURED_OPT__VALUE)
34 } Uenibstreamprotobuf__ConfiguredOpt__Value;
35 typedef enum _Uenibstreamprotobuf__TrueOpt__Value {
36 UENIBSTREAMPROTOBUF__TRUE_OPT__VALUE__protobuf_unspecified = 0,
37 UENIBSTREAMPROTOBUF__TRUE_OPT__VALUE__true = 1
38 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(UENIBSTREAMPROTOBUF__TRUE_OPT__VALUE)
39 } Uenibstreamprotobuf__TrueOpt__Value;
40 typedef enum _Uenibstreamprotobuf__FalseOpt__Value {
41 UENIBSTREAMPROTOBUF__FALSE_OPT__VALUE__protobuf_unspecified = 0,
42 UENIBSTREAMPROTOBUF__FALSE_OPT__VALUE__false = 1
43 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(UENIBSTREAMPROTOBUF__FALSE_OPT__VALUE)
44 } Uenibstreamprotobuf__FalseOpt__Value;
45 typedef enum _Uenibstreamprotobuf__EnabledOpt__Value {
46 UENIBSTREAMPROTOBUF__ENABLED_OPT__VALUE__protobuf_unspecified = 0,
47 UENIBSTREAMPROTOBUF__ENABLED_OPT__VALUE__enabled = 1
48 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(UENIBSTREAMPROTOBUF__ENABLED_OPT__VALUE)
49 } Uenibstreamprotobuf__EnabledOpt__Value;
50 typedef enum _Uenibstreamprotobuf__DisabledOpt__Value {
51 UENIBSTREAMPROTOBUF__DISABLED_OPT__VALUE__protobuf_unspecified = 0,
52 UENIBSTREAMPROTOBUF__DISABLED_OPT__VALUE__disabled = 1
53 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(UENIBSTREAMPROTOBUF__DISABLED_OPT__VALUE)
54 } Uenibstreamprotobuf__DisabledOpt__Value;
55 typedef enum _Uenibstreamprotobuf__EnabledDisabledOpt__Value {
56 UENIBSTREAMPROTOBUF__ENABLED_DISABLED_OPT__VALUE__protobuf_unspecified = 0,
57 UENIBSTREAMPROTOBUF__ENABLED_DISABLED_OPT__VALUE__enabled = 1,
58 UENIBSTREAMPROTOBUF__ENABLED_DISABLED_OPT__VALUE__disabled = 2
59 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(UENIBSTREAMPROTOBUF__ENABLED_DISABLED_OPT__VALUE)
60 } Uenibstreamprotobuf__EnabledDisabledOpt__Value;
61 typedef enum _Uenibstreamprotobuf__OnOffOpt__Value {
62 UENIBSTREAMPROTOBUF__ON_OFF_OPT__VALUE__protobuf_unspecified = 0,
63 UENIBSTREAMPROTOBUF__ON_OFF_OPT__VALUE__on = 1,
64 UENIBSTREAMPROTOBUF__ON_OFF_OPT__VALUE__off = 2
65 PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(UENIBSTREAMPROTOBUF__ON_OFF_OPT__VALUE)
66 } Uenibstreamprotobuf__OnOffOpt__Value;
68 /* --- messages --- */
70 struct _Uenibstreamprotobuf__Null
72 ProtobufCMessage base;
74 #define UENIBSTREAMPROTOBUF__NULL__INIT \
75 { PROTOBUF_C_MESSAGE_INIT (&uenibstreamprotobuf__null__descriptor) \
79 struct _Uenibstreamprotobuf__ConfiguredOpt
81 ProtobufCMessage base;
82 Uenibstreamprotobuf__ConfiguredOpt__Value value;
84 #define UENIBSTREAMPROTOBUF__CONFIGURED_OPT__INIT \
85 { PROTOBUF_C_MESSAGE_INIT (&uenibstreamprotobuf__configured_opt__descriptor) \
86 , UENIBSTREAMPROTOBUF__CONFIGURED_OPT__VALUE__protobuf_unspecified }
89 struct _Uenibstreamprotobuf__TrueOpt
91 ProtobufCMessage base;
92 Uenibstreamprotobuf__TrueOpt__Value value;
94 #define UENIBSTREAMPROTOBUF__TRUE_OPT__INIT \
95 { PROTOBUF_C_MESSAGE_INIT (&uenibstreamprotobuf__true_opt__descriptor) \
96 , UENIBSTREAMPROTOBUF__TRUE_OPT__VALUE__protobuf_unspecified }
99 struct _Uenibstreamprotobuf__FalseOpt
101 ProtobufCMessage base;
102 Uenibstreamprotobuf__FalseOpt__Value value;
104 #define UENIBSTREAMPROTOBUF__FALSE_OPT__INIT \
105 { PROTOBUF_C_MESSAGE_INIT (&uenibstreamprotobuf__false_opt__descriptor) \
106 , UENIBSTREAMPROTOBUF__FALSE_OPT__VALUE__protobuf_unspecified }
109 struct _Uenibstreamprotobuf__EnabledOpt
111 ProtobufCMessage base;
112 Uenibstreamprotobuf__EnabledOpt__Value value;
114 #define UENIBSTREAMPROTOBUF__ENABLED_OPT__INIT \
115 { PROTOBUF_C_MESSAGE_INIT (&uenibstreamprotobuf__enabled_opt__descriptor) \
116 , UENIBSTREAMPROTOBUF__ENABLED_OPT__VALUE__protobuf_unspecified }
119 struct _Uenibstreamprotobuf__DisabledOpt
121 ProtobufCMessage base;
122 Uenibstreamprotobuf__DisabledOpt__Value value;
124 #define UENIBSTREAMPROTOBUF__DISABLED_OPT__INIT \
125 { PROTOBUF_C_MESSAGE_INIT (&uenibstreamprotobuf__disabled_opt__descriptor) \
126 , UENIBSTREAMPROTOBUF__DISABLED_OPT__VALUE__protobuf_unspecified }
129 struct _Uenibstreamprotobuf__EnabledDisabledOpt
131 ProtobufCMessage base;
132 Uenibstreamprotobuf__EnabledDisabledOpt__Value value;
134 #define UENIBSTREAMPROTOBUF__ENABLED_DISABLED_OPT__INIT \
135 { PROTOBUF_C_MESSAGE_INIT (&uenibstreamprotobuf__enabled_disabled_opt__descriptor) \
136 , UENIBSTREAMPROTOBUF__ENABLED_DISABLED_OPT__VALUE__protobuf_unspecified }
139 struct _Uenibstreamprotobuf__OnOffOpt
141 ProtobufCMessage base;
142 Uenibstreamprotobuf__OnOffOpt__Value value;
144 #define UENIBSTREAMPROTOBUF__ON_OFF_OPT__INIT \
145 { PROTOBUF_C_MESSAGE_INIT (&uenibstreamprotobuf__on_off_opt__descriptor) \
146 , UENIBSTREAMPROTOBUF__ON_OFF_OPT__VALUE__protobuf_unspecified }
149 /* Uenibstreamprotobuf__Null methods */
150 void uenibstreamprotobuf__null__init
151 (Uenibstreamprotobuf__Null *message);
152 size_t uenibstreamprotobuf__null__get_packed_size
153 (const Uenibstreamprotobuf__Null *message);
154 size_t uenibstreamprotobuf__null__pack
155 (const Uenibstreamprotobuf__Null *message,
157 size_t uenibstreamprotobuf__null__pack_to_buffer
158 (const Uenibstreamprotobuf__Null *message,
159 ProtobufCBuffer *buffer);
160 Uenibstreamprotobuf__Null *
161 uenibstreamprotobuf__null__unpack
162 (ProtobufCAllocator *allocator,
164 const uint8_t *data);
165 void uenibstreamprotobuf__null__free_unpacked
166 (Uenibstreamprotobuf__Null *message,
167 ProtobufCAllocator *allocator);
168 /* Uenibstreamprotobuf__ConfiguredOpt methods */
169 void uenibstreamprotobuf__configured_opt__init
170 (Uenibstreamprotobuf__ConfiguredOpt *message);
171 size_t uenibstreamprotobuf__configured_opt__get_packed_size
172 (const Uenibstreamprotobuf__ConfiguredOpt *message);
173 size_t uenibstreamprotobuf__configured_opt__pack
174 (const Uenibstreamprotobuf__ConfiguredOpt *message,
176 size_t uenibstreamprotobuf__configured_opt__pack_to_buffer
177 (const Uenibstreamprotobuf__ConfiguredOpt *message,
178 ProtobufCBuffer *buffer);
179 Uenibstreamprotobuf__ConfiguredOpt *
180 uenibstreamprotobuf__configured_opt__unpack
181 (ProtobufCAllocator *allocator,
183 const uint8_t *data);
184 void uenibstreamprotobuf__configured_opt__free_unpacked
185 (Uenibstreamprotobuf__ConfiguredOpt *message,
186 ProtobufCAllocator *allocator);
187 /* Uenibstreamprotobuf__TrueOpt methods */
188 void uenibstreamprotobuf__true_opt__init
189 (Uenibstreamprotobuf__TrueOpt *message);
190 size_t uenibstreamprotobuf__true_opt__get_packed_size
191 (const Uenibstreamprotobuf__TrueOpt *message);
192 size_t uenibstreamprotobuf__true_opt__pack
193 (const Uenibstreamprotobuf__TrueOpt *message,
195 size_t uenibstreamprotobuf__true_opt__pack_to_buffer
196 (const Uenibstreamprotobuf__TrueOpt *message,
197 ProtobufCBuffer *buffer);
198 Uenibstreamprotobuf__TrueOpt *
199 uenibstreamprotobuf__true_opt__unpack
200 (ProtobufCAllocator *allocator,
202 const uint8_t *data);
203 void uenibstreamprotobuf__true_opt__free_unpacked
204 (Uenibstreamprotobuf__TrueOpt *message,
205 ProtobufCAllocator *allocator);
206 /* Uenibstreamprotobuf__FalseOpt methods */
207 void uenibstreamprotobuf__false_opt__init
208 (Uenibstreamprotobuf__FalseOpt *message);
209 size_t uenibstreamprotobuf__false_opt__get_packed_size
210 (const Uenibstreamprotobuf__FalseOpt *message);
211 size_t uenibstreamprotobuf__false_opt__pack
212 (const Uenibstreamprotobuf__FalseOpt *message,
214 size_t uenibstreamprotobuf__false_opt__pack_to_buffer
215 (const Uenibstreamprotobuf__FalseOpt *message,
216 ProtobufCBuffer *buffer);
217 Uenibstreamprotobuf__FalseOpt *
218 uenibstreamprotobuf__false_opt__unpack
219 (ProtobufCAllocator *allocator,
221 const uint8_t *data);
222 void uenibstreamprotobuf__false_opt__free_unpacked
223 (Uenibstreamprotobuf__FalseOpt *message,
224 ProtobufCAllocator *allocator);
225 /* Uenibstreamprotobuf__EnabledOpt methods */
226 void uenibstreamprotobuf__enabled_opt__init
227 (Uenibstreamprotobuf__EnabledOpt *message);
228 size_t uenibstreamprotobuf__enabled_opt__get_packed_size
229 (const Uenibstreamprotobuf__EnabledOpt *message);
230 size_t uenibstreamprotobuf__enabled_opt__pack
231 (const Uenibstreamprotobuf__EnabledOpt *message,
233 size_t uenibstreamprotobuf__enabled_opt__pack_to_buffer
234 (const Uenibstreamprotobuf__EnabledOpt *message,
235 ProtobufCBuffer *buffer);
236 Uenibstreamprotobuf__EnabledOpt *
237 uenibstreamprotobuf__enabled_opt__unpack
238 (ProtobufCAllocator *allocator,
240 const uint8_t *data);
241 void uenibstreamprotobuf__enabled_opt__free_unpacked
242 (Uenibstreamprotobuf__EnabledOpt *message,
243 ProtobufCAllocator *allocator);
244 /* Uenibstreamprotobuf__DisabledOpt methods */
245 void uenibstreamprotobuf__disabled_opt__init
246 (Uenibstreamprotobuf__DisabledOpt *message);
247 size_t uenibstreamprotobuf__disabled_opt__get_packed_size
248 (const Uenibstreamprotobuf__DisabledOpt *message);
249 size_t uenibstreamprotobuf__disabled_opt__pack
250 (const Uenibstreamprotobuf__DisabledOpt *message,
252 size_t uenibstreamprotobuf__disabled_opt__pack_to_buffer
253 (const Uenibstreamprotobuf__DisabledOpt *message,
254 ProtobufCBuffer *buffer);
255 Uenibstreamprotobuf__DisabledOpt *
256 uenibstreamprotobuf__disabled_opt__unpack
257 (ProtobufCAllocator *allocator,
259 const uint8_t *data);
260 void uenibstreamprotobuf__disabled_opt__free_unpacked
261 (Uenibstreamprotobuf__DisabledOpt *message,
262 ProtobufCAllocator *allocator);
263 /* Uenibstreamprotobuf__EnabledDisabledOpt methods */
264 void uenibstreamprotobuf__enabled_disabled_opt__init
265 (Uenibstreamprotobuf__EnabledDisabledOpt *message);
266 size_t uenibstreamprotobuf__enabled_disabled_opt__get_packed_size
267 (const Uenibstreamprotobuf__EnabledDisabledOpt *message);
268 size_t uenibstreamprotobuf__enabled_disabled_opt__pack
269 (const Uenibstreamprotobuf__EnabledDisabledOpt *message,
271 size_t uenibstreamprotobuf__enabled_disabled_opt__pack_to_buffer
272 (const Uenibstreamprotobuf__EnabledDisabledOpt *message,
273 ProtobufCBuffer *buffer);
274 Uenibstreamprotobuf__EnabledDisabledOpt *
275 uenibstreamprotobuf__enabled_disabled_opt__unpack
276 (ProtobufCAllocator *allocator,
278 const uint8_t *data);
279 void uenibstreamprotobuf__enabled_disabled_opt__free_unpacked
280 (Uenibstreamprotobuf__EnabledDisabledOpt *message,
281 ProtobufCAllocator *allocator);
282 /* Uenibstreamprotobuf__OnOffOpt methods */
283 void uenibstreamprotobuf__on_off_opt__init
284 (Uenibstreamprotobuf__OnOffOpt *message);
285 size_t uenibstreamprotobuf__on_off_opt__get_packed_size
286 (const Uenibstreamprotobuf__OnOffOpt *message);
287 size_t uenibstreamprotobuf__on_off_opt__pack
288 (const Uenibstreamprotobuf__OnOffOpt *message,
290 size_t uenibstreamprotobuf__on_off_opt__pack_to_buffer
291 (const Uenibstreamprotobuf__OnOffOpt *message,
292 ProtobufCBuffer *buffer);
293 Uenibstreamprotobuf__OnOffOpt *
294 uenibstreamprotobuf__on_off_opt__unpack
295 (ProtobufCAllocator *allocator,
297 const uint8_t *data);
298 void uenibstreamprotobuf__on_off_opt__free_unpacked
299 (Uenibstreamprotobuf__OnOffOpt *message,
300 ProtobufCAllocator *allocator);
301 /* --- per-message closures --- */
303 typedef void (*Uenibstreamprotobuf__Null_Closure)
304 (const Uenibstreamprotobuf__Null *message,
306 typedef void (*Uenibstreamprotobuf__ConfiguredOpt_Closure)
307 (const Uenibstreamprotobuf__ConfiguredOpt *message,
309 typedef void (*Uenibstreamprotobuf__TrueOpt_Closure)
310 (const Uenibstreamprotobuf__TrueOpt *message,
312 typedef void (*Uenibstreamprotobuf__FalseOpt_Closure)
313 (const Uenibstreamprotobuf__FalseOpt *message,
315 typedef void (*Uenibstreamprotobuf__EnabledOpt_Closure)
316 (const Uenibstreamprotobuf__EnabledOpt *message,
318 typedef void (*Uenibstreamprotobuf__DisabledOpt_Closure)
319 (const Uenibstreamprotobuf__DisabledOpt *message,
321 typedef void (*Uenibstreamprotobuf__EnabledDisabledOpt_Closure)
322 (const Uenibstreamprotobuf__EnabledDisabledOpt *message,
324 typedef void (*Uenibstreamprotobuf__OnOffOpt_Closure)
325 (const Uenibstreamprotobuf__OnOffOpt *message,
328 /* --- services --- */
331 /* --- descriptors --- */
333 extern const ProtobufCMessageDescriptor uenibstreamprotobuf__null__descriptor;
334 extern const ProtobufCMessageDescriptor uenibstreamprotobuf__configured_opt__descriptor;
335 extern const ProtobufCEnumDescriptor uenibstreamprotobuf__configured_opt__value__descriptor;
336 extern const ProtobufCMessageDescriptor uenibstreamprotobuf__true_opt__descriptor;
337 extern const ProtobufCEnumDescriptor uenibstreamprotobuf__true_opt__value__descriptor;
338 extern const ProtobufCMessageDescriptor uenibstreamprotobuf__false_opt__descriptor;
339 extern const ProtobufCEnumDescriptor uenibstreamprotobuf__false_opt__value__descriptor;
340 extern const ProtobufCMessageDescriptor uenibstreamprotobuf__enabled_opt__descriptor;
341 extern const ProtobufCEnumDescriptor uenibstreamprotobuf__enabled_opt__value__descriptor;
342 extern const ProtobufCMessageDescriptor uenibstreamprotobuf__disabled_opt__descriptor;
343 extern const ProtobufCEnumDescriptor uenibstreamprotobuf__disabled_opt__value__descriptor;
344 extern const ProtobufCMessageDescriptor uenibstreamprotobuf__enabled_disabled_opt__descriptor;
345 extern const ProtobufCEnumDescriptor uenibstreamprotobuf__enabled_disabled_opt__value__descriptor;
346 extern const ProtobufCMessageDescriptor uenibstreamprotobuf__on_off_opt__descriptor;
347 extern const ProtobufCEnumDescriptor uenibstreamprotobuf__on_off_opt__value__descriptor;
349 PROTOBUF_C__END_DECLS
352 #endif /* PROTOBUF_C_common_5ftypes_2eproto__INCLUDED */