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