/[zanavi_public1]/navit/navit/maptool/generated-code/osmformat.pb-c.h
ZANavi

Diff of /navit/navit/maptool/generated-code/osmformat.pb-c.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 8 Revision 31
1/* Generated by the protocol buffer compiler. DO NOT EDIT! */
2
3#ifndef PROTOBUF_C_osmformat_2eproto__INCLUDED
4#define PROTOBUF_C_osmformat_2eproto__INCLUDED
5
6#include <google/protobuf-c/protobuf-c.h>
7
8PROTOBUF_C_BEGIN_DECLS
9
10
11typedef struct _OSMPBF__HeaderBlock OSMPBF__HeaderBlock;
12typedef struct _OSMPBF__HeaderBBox OSMPBF__HeaderBBox;
13typedef struct _OSMPBF__PrimitiveBlock OSMPBF__PrimitiveBlock;
14typedef struct _OSMPBF__PrimitiveGroup OSMPBF__PrimitiveGroup;
15typedef struct _OSMPBF__StringTable OSMPBF__StringTable;
16typedef struct _OSMPBF__Info OSMPBF__Info;
17typedef struct _OSMPBF__DenseInfo OSMPBF__DenseInfo;
18typedef struct _OSMPBF__ChangeSet OSMPBF__ChangeSet;
19typedef struct _OSMPBF__Node OSMPBF__Node;
20typedef struct _OSMPBF__DenseNodes OSMPBF__DenseNodes;
21typedef struct _OSMPBF__Way OSMPBF__Way;
22typedef struct _OSMPBF__Relation OSMPBF__Relation;
23
24
25/* --- enums --- */
26
27typedef enum _OSMPBF__Relation__MemberType {
28 OSMPBF__RELATION__MEMBER_TYPE__NODE = 0,
29 OSMPBF__RELATION__MEMBER_TYPE__WAY = 1,
30 OSMPBF__RELATION__MEMBER_TYPE__RELATION = 2
31} OSMPBF__Relation__MemberType;
32
33/* --- messages --- */
34
35struct _OSMPBF__HeaderBlock
36{
37 ProtobufCMessage base;
38 OSMPBF__HeaderBBox *bbox;
39 size_t n_required_features;
40 char **required_features;
41 size_t n_optional_features;
42 char **optional_features;
43 char *writingprogram;
44 char *source;
45};
46#define OSMPBF__HEADER_BLOCK__INIT \
47 { PROTOBUF_C_MESSAGE_INIT (&osmpbf__header_block__descriptor) \
48 , NULL, 0,NULL, 0,NULL, NULL, NULL }
49
50
51struct _OSMPBF__HeaderBBox
52{
53 ProtobufCMessage base;
54 int64_t left;
55 int64_t right;
56 int64_t top;
57 int64_t bottom;
58};
59#define OSMPBF__HEADER_BBOX__INIT \
60 { PROTOBUF_C_MESSAGE_INIT (&osmpbf__header_bbox__descriptor) \
61 , 0, 0, 0, 0 }
62
63
64struct _OSMPBF__PrimitiveBlock
65{
66 ProtobufCMessage base;
67 OSMPBF__StringTable *stringtable;
68 size_t n_primitivegroup;
69 OSMPBF__PrimitiveGroup **primitivegroup;
70 protobuf_c_boolean has_granularity;
71 int32_t granularity;
72 protobuf_c_boolean has_lat_offset;
73 int64_t lat_offset;
74 protobuf_c_boolean has_lon_offset;
75 int64_t lon_offset;
76 protobuf_c_boolean has_date_granularity;
77 int32_t date_granularity;
78};
79#define OSMPBF__PRIMITIVE_BLOCK__INIT \
80 { PROTOBUF_C_MESSAGE_INIT (&osmpbf__primitive_block__descriptor) \
81 , NULL, 0,NULL, 0,100, 0,0, 0,0, 0,1000 }
82
83
84struct _OSMPBF__PrimitiveGroup
85{
86 ProtobufCMessage base;
87 size_t n_nodes;
88 OSMPBF__Node **nodes;
89 OSMPBF__DenseNodes *dense;
90 size_t n_ways;
91 OSMPBF__Way **ways;
92 size_t n_relations;
93 OSMPBF__Relation **relations;
94 size_t n_changesets;
95 OSMPBF__ChangeSet **changesets;
96};
97#define OSMPBF__PRIMITIVE_GROUP__INIT \
98 { PROTOBUF_C_MESSAGE_INIT (&osmpbf__primitive_group__descriptor) \
99 , 0,NULL, NULL, 0,NULL, 0,NULL, 0,NULL }
100
101
102struct _OSMPBF__StringTable
103{
104 ProtobufCMessage base;
105 size_t n_s;
106 ProtobufCBinaryData *s;
107};
108#define OSMPBF__STRING_TABLE__INIT \
109 { PROTOBUF_C_MESSAGE_INIT (&osmpbf__string_table__descriptor) \
110 , 0,NULL }
111
112
113struct _OSMPBF__Info
114{
115 ProtobufCMessage base;
116 protobuf_c_boolean has_version;
117 int32_t version;
118 protobuf_c_boolean has_timestamp;
119 int64_t timestamp;
120 protobuf_c_boolean has_changeset;
121 int64_t changeset;
122 protobuf_c_boolean has_uid;
123 int32_t uid;
124 protobuf_c_boolean has_user_sid;
125 uint32_t user_sid;
126};
127#define OSMPBF__INFO__INIT \
128 { PROTOBUF_C_MESSAGE_INIT (&osmpbf__info__descriptor) \
129 , 0,-1, 0,0, 0,0, 0,0, 0,0 }
130
131
132struct _OSMPBF__DenseInfo
133{
134 ProtobufCMessage base;
135 size_t n_version;
136 int32_t *version;
137 size_t n_timestamp;
138 int64_t *timestamp;
139 size_t n_changeset;
140 int64_t *changeset;
141 size_t n_uid;
142 int32_t *uid;
143 size_t n_user_sid;
144 int32_t *user_sid;
145};
146#define OSMPBF__DENSE_INFO__INIT \
147 { PROTOBUF_C_MESSAGE_INIT (&osmpbf__dense_info__descriptor) \
148 , 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL }
149
150
151struct _OSMPBF__ChangeSet
152{
153 ProtobufCMessage base;
154 int64_t id;
155};
156#define OSMPBF__CHANGE_SET__INIT \
157 { PROTOBUF_C_MESSAGE_INIT (&osmpbf__change_set__descriptor) \
158 , 0 }
159
160
161struct _OSMPBF__Node
162{
163 ProtobufCMessage base;
164 int64_t id;
165 size_t n_keys;
166 uint32_t *keys;
167 size_t n_vals;
168 uint32_t *vals;
169 OSMPBF__Info *info;
170 int64_t lat;
171 int64_t lon;
172};
173#define OSMPBF__NODE__INIT \
174 { PROTOBUF_C_MESSAGE_INIT (&osmpbf__node__descriptor) \
175 , 0, 0,NULL, 0,NULL, NULL, 0, 0 }
176
177
178struct _OSMPBF__DenseNodes
179{
180 ProtobufCMessage base;
181 size_t n_id;
182 int64_t *id;
183 OSMPBF__DenseInfo *denseinfo;
184 size_t n_lat;
185 int64_t *lat;
186 size_t n_lon;
187 int64_t *lon;
188 size_t n_keys_vals;
189 int32_t *keys_vals;
190};
191#define OSMPBF__DENSE_NODES__INIT \
192 { PROTOBUF_C_MESSAGE_INIT (&osmpbf__dense_nodes__descriptor) \
193 , 0,NULL, NULL, 0,NULL, 0,NULL, 0,NULL }
194
195
196struct _OSMPBF__Way
197{
198 ProtobufCMessage base;
199 int64_t id;
200 size_t n_keys;
201 uint32_t *keys;
202 size_t n_vals;
203 uint32_t *vals;
204 OSMPBF__Info *info;
205 size_t n_refs;
206 int64_t *refs;
207};
208#define OSMPBF__WAY__INIT \
209 { PROTOBUF_C_MESSAGE_INIT (&osmpbf__way__descriptor) \
210 , 0, 0,NULL, 0,NULL, NULL, 0,NULL }
211
212
213struct _OSMPBF__Relation
214{
215 ProtobufCMessage base;
216 int64_t id;
217 size_t n_keys;
218 uint32_t *keys;
219 size_t n_vals;
220 uint32_t *vals;
221 OSMPBF__Info *info;
222 size_t n_roles_sid;
223 int32_t *roles_sid;
224 size_t n_memids;
225 int64_t *memids;
226 size_t n_types;
227 OSMPBF__Relation__MemberType *types;
228};
229#define OSMPBF__RELATION__INIT \
230 { PROTOBUF_C_MESSAGE_INIT (&osmpbf__relation__descriptor) \
231 , 0, 0,NULL, 0,NULL, NULL, 0,NULL, 0,NULL, 0,NULL }
232
233
234/* OSMPBF__HeaderBlock methods */
235void osmpbf__header_block__init
236 (OSMPBF__HeaderBlock *message);
237size_t osmpbf__header_block__get_packed_size
238 (const OSMPBF__HeaderBlock *message);
239size_t osmpbf__header_block__pack
240 (const OSMPBF__HeaderBlock *message,
241 uint8_t *out);
242size_t osmpbf__header_block__pack_to_buffer
243 (const OSMPBF__HeaderBlock *message,
244 ProtobufCBuffer *buffer);
245OSMPBF__HeaderBlock *
246 osmpbf__header_block__unpack
247 (ProtobufCAllocator *allocator,
248 size_t len,
249 const uint8_t *data);
250void osmpbf__header_block__free_unpacked
251 (OSMPBF__HeaderBlock *message,
252 ProtobufCAllocator *allocator);
253/* OSMPBF__HeaderBBox methods */
254void osmpbf__header_bbox__init
255 (OSMPBF__HeaderBBox *message);
256size_t osmpbf__header_bbox__get_packed_size
257 (const OSMPBF__HeaderBBox *message);
258size_t osmpbf__header_bbox__pack
259 (const OSMPBF__HeaderBBox *message,
260 uint8_t *out);
261size_t osmpbf__header_bbox__pack_to_buffer
262 (const OSMPBF__HeaderBBox *message,
263 ProtobufCBuffer *buffer);
264OSMPBF__HeaderBBox *
265 osmpbf__header_bbox__unpack
266 (ProtobufCAllocator *allocator,
267 size_t len,
268 const uint8_t *data);
269void osmpbf__header_bbox__free_unpacked
270 (OSMPBF__HeaderBBox *message,
271 ProtobufCAllocator *allocator);
272/* OSMPBF__PrimitiveBlock methods */
273void osmpbf__primitive_block__init
274 (OSMPBF__PrimitiveBlock *message);
275size_t osmpbf__primitive_block__get_packed_size
276 (const OSMPBF__PrimitiveBlock *message);
277size_t osmpbf__primitive_block__pack
278 (const OSMPBF__PrimitiveBlock *message,
279 uint8_t *out);
280size_t osmpbf__primitive_block__pack_to_buffer
281 (const OSMPBF__PrimitiveBlock *message,
282 ProtobufCBuffer *buffer);
283OSMPBF__PrimitiveBlock *
284 osmpbf__primitive_block__unpack
285 (ProtobufCAllocator *allocator,
286 size_t len,
287 const uint8_t *data);
288void osmpbf__primitive_block__free_unpacked
289 (OSMPBF__PrimitiveBlock *message,
290 ProtobufCAllocator *allocator);
291/* OSMPBF__PrimitiveGroup methods */
292void osmpbf__primitive_group__init
293 (OSMPBF__PrimitiveGroup *message);
294size_t osmpbf__primitive_group__get_packed_size
295 (const OSMPBF__PrimitiveGroup *message);
296size_t osmpbf__primitive_group__pack
297 (const OSMPBF__PrimitiveGroup *message,
298 uint8_t *out);
299size_t osmpbf__primitive_group__pack_to_buffer
300 (const OSMPBF__PrimitiveGroup *message,
301 ProtobufCBuffer *buffer);
302OSMPBF__PrimitiveGroup *
303 osmpbf__primitive_group__unpack
304 (ProtobufCAllocator *allocator,
305 size_t len,
306 const uint8_t *data);
307void osmpbf__primitive_group__free_unpacked
308 (OSMPBF__PrimitiveGroup *message,
309 ProtobufCAllocator *allocator);
310/* OSMPBF__StringTable methods */
311void osmpbf__string_table__init
312 (OSMPBF__StringTable *message);
313size_t osmpbf__string_table__get_packed_size
314 (const OSMPBF__StringTable *message);
315size_t osmpbf__string_table__pack
316 (const OSMPBF__StringTable *message,
317 uint8_t *out);
318size_t osmpbf__string_table__pack_to_buffer
319 (const OSMPBF__StringTable *message,
320 ProtobufCBuffer *buffer);
321OSMPBF__StringTable *
322 osmpbf__string_table__unpack
323 (ProtobufCAllocator *allocator,
324 size_t len,
325 const uint8_t *data);
326void osmpbf__string_table__free_unpacked
327 (OSMPBF__StringTable *message,
328 ProtobufCAllocator *allocator);
329/* OSMPBF__Info methods */
330void osmpbf__info__init
331 (OSMPBF__Info *message);
332size_t osmpbf__info__get_packed_size
333 (const OSMPBF__Info *message);
334size_t osmpbf__info__pack
335 (const OSMPBF__Info *message,
336 uint8_t *out);
337size_t osmpbf__info__pack_to_buffer
338 (const OSMPBF__Info *message,
339 ProtobufCBuffer *buffer);
340OSMPBF__Info *
341 osmpbf__info__unpack
342 (ProtobufCAllocator *allocator,
343 size_t len,
344 const uint8_t *data);
345void osmpbf__info__free_unpacked
346 (OSMPBF__Info *message,
347 ProtobufCAllocator *allocator);
348/* OSMPBF__DenseInfo methods */
349void osmpbf__dense_info__init
350 (OSMPBF__DenseInfo *message);
351size_t osmpbf__dense_info__get_packed_size
352 (const OSMPBF__DenseInfo *message);
353size_t osmpbf__dense_info__pack
354 (const OSMPBF__DenseInfo *message,
355 uint8_t *out);
356size_t osmpbf__dense_info__pack_to_buffer
357 (const OSMPBF__DenseInfo *message,
358 ProtobufCBuffer *buffer);
359OSMPBF__DenseInfo *
360 osmpbf__dense_info__unpack
361 (ProtobufCAllocator *allocator,
362 size_t len,
363 const uint8_t *data);
364void osmpbf__dense_info__free_unpacked
365 (OSMPBF__DenseInfo *message,
366 ProtobufCAllocator *allocator);
367/* OSMPBF__ChangeSet methods */
368void osmpbf__change_set__init
369 (OSMPBF__ChangeSet *message);
370size_t osmpbf__change_set__get_packed_size
371 (const OSMPBF__ChangeSet *message);
372size_t osmpbf__change_set__pack
373 (const OSMPBF__ChangeSet *message,
374 uint8_t *out);
375size_t osmpbf__change_set__pack_to_buffer
376 (const OSMPBF__ChangeSet *message,
377 ProtobufCBuffer *buffer);
378OSMPBF__ChangeSet *
379 osmpbf__change_set__unpack
380 (ProtobufCAllocator *allocator,
381 size_t len,
382 const uint8_t *data);
383void osmpbf__change_set__free_unpacked
384 (OSMPBF__ChangeSet *message,
385 ProtobufCAllocator *allocator);
386/* OSMPBF__Node methods */
387void osmpbf__node__init
388 (OSMPBF__Node *message);
389size_t osmpbf__node__get_packed_size
390 (const OSMPBF__Node *message);
391size_t osmpbf__node__pack
392 (const OSMPBF__Node *message,
393 uint8_t *out);
394size_t osmpbf__node__pack_to_buffer
395 (const OSMPBF__Node *message,
396 ProtobufCBuffer *buffer);
397OSMPBF__Node *
398 osmpbf__node__unpack
399 (ProtobufCAllocator *allocator,
400 size_t len,
401 const uint8_t *data);
402void osmpbf__node__free_unpacked
403 (OSMPBF__Node *message,
404 ProtobufCAllocator *allocator);
405/* OSMPBF__DenseNodes methods */
406void osmpbf__dense_nodes__init
407 (OSMPBF__DenseNodes *message);
408size_t osmpbf__dense_nodes__get_packed_size
409 (const OSMPBF__DenseNodes *message);
410size_t osmpbf__dense_nodes__pack
411 (const OSMPBF__DenseNodes *message,
412 uint8_t *out);
413size_t osmpbf__dense_nodes__pack_to_buffer
414 (const OSMPBF__DenseNodes *message,
415 ProtobufCBuffer *buffer);
416OSMPBF__DenseNodes *
417 osmpbf__dense_nodes__unpack
418 (ProtobufCAllocator *allocator,
419 size_t len,
420 const uint8_t *data);
421void osmpbf__dense_nodes__free_unpacked
422 (OSMPBF__DenseNodes *message,
423 ProtobufCAllocator *allocator);
424/* OSMPBF__Way methods */
425void osmpbf__way__init
426 (OSMPBF__Way *message);
427size_t osmpbf__way__get_packed_size
428 (const OSMPBF__Way *message);
429size_t osmpbf__way__pack
430 (const OSMPBF__Way *message,
431 uint8_t *out);
432size_t osmpbf__way__pack_to_buffer
433 (const OSMPBF__Way *message,
434 ProtobufCBuffer *buffer);
435OSMPBF__Way *
436 osmpbf__way__unpack
437 (ProtobufCAllocator *allocator,
438 size_t len,
439 const uint8_t *data);
440void osmpbf__way__free_unpacked
441 (OSMPBF__Way *message,
442 ProtobufCAllocator *allocator);
443/* OSMPBF__Relation methods */
444void osmpbf__relation__init
445 (OSMPBF__Relation *message);
446size_t osmpbf__relation__get_packed_size
447 (const OSMPBF__Relation *message);
448size_t osmpbf__relation__pack
449 (const OSMPBF__Relation *message,
450 uint8_t *out);
451size_t osmpbf__relation__pack_to_buffer
452 (const OSMPBF__Relation *message,
453 ProtobufCBuffer *buffer);
454OSMPBF__Relation *
455 osmpbf__relation__unpack
456 (ProtobufCAllocator *allocator,
457 size_t len,
458 const uint8_t *data);
459void osmpbf__relation__free_unpacked
460 (OSMPBF__Relation *message,
461 ProtobufCAllocator *allocator);
462/* --- per-message closures --- */
463
464typedef void (*OSMPBF__HeaderBlock_Closure)
465 (const OSMPBF__HeaderBlock *message,
466 void *closure_data);
467typedef void (*OSMPBF__HeaderBBox_Closure)
468 (const OSMPBF__HeaderBBox *message,
469 void *closure_data);
470typedef void (*OSMPBF__PrimitiveBlock_Closure)
471 (const OSMPBF__PrimitiveBlock *message,
472 void *closure_data);
473typedef void (*OSMPBF__PrimitiveGroup_Closure)
474 (const OSMPBF__PrimitiveGroup *message,
475 void *closure_data);
476typedef void (*OSMPBF__StringTable_Closure)
477 (const OSMPBF__StringTable *message,
478 void *closure_data);
479typedef void (*OSMPBF__Info_Closure)
480 (const OSMPBF__Info *message,
481 void *closure_data);
482typedef void (*OSMPBF__DenseInfo_Closure)
483 (const OSMPBF__DenseInfo *message,
484 void *closure_data);
485typedef void (*OSMPBF__ChangeSet_Closure)
486 (const OSMPBF__ChangeSet *message,
487 void *closure_data);
488typedef void (*OSMPBF__Node_Closure)
489 (const OSMPBF__Node *message,
490 void *closure_data);
491typedef void (*OSMPBF__DenseNodes_Closure)
492 (const OSMPBF__DenseNodes *message,
493 void *closure_data);
494typedef void (*OSMPBF__Way_Closure)
495 (const OSMPBF__Way *message,
496 void *closure_data);
497typedef void (*OSMPBF__Relation_Closure)
498 (const OSMPBF__Relation *message,
499 void *closure_data);
500
501/* --- services --- */
502
503
504/* --- descriptors --- */
505
506extern const ProtobufCMessageDescriptor osmpbf__header_block__descriptor;
507extern const ProtobufCMessageDescriptor osmpbf__header_bbox__descriptor;
508extern const ProtobufCMessageDescriptor osmpbf__primitive_block__descriptor;
509extern const ProtobufCMessageDescriptor osmpbf__primitive_group__descriptor;
510extern const ProtobufCMessageDescriptor osmpbf__string_table__descriptor;
511extern const ProtobufCMessageDescriptor osmpbf__info__descriptor;
512extern const ProtobufCMessageDescriptor osmpbf__dense_info__descriptor;
513extern const ProtobufCMessageDescriptor osmpbf__change_set__descriptor;
514extern const ProtobufCMessageDescriptor osmpbf__node__descriptor;
515extern const ProtobufCMessageDescriptor osmpbf__dense_nodes__descriptor;
516extern const ProtobufCMessageDescriptor osmpbf__way__descriptor;
517extern const ProtobufCMessageDescriptor osmpbf__relation__descriptor;
518extern const ProtobufCEnumDescriptor osmpbf__relation__member_type__descriptor;
519
520PROTOBUF_C_END_DECLS
521
522
523#endif /* PROTOBUF_osmformat_2eproto__INCLUDED */

Legend:
Removed from v.8  
changed lines
  Added in v.31

   
Visit the ZANavi Wiki