pbf_parser 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e6239b4100dfc86129e84cec4952cfd68a278ef
|
4
|
+
data.tar.gz: 64404cd0061c724624e3f67ae81b7daaf6e08d33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0c735698a0df9589358b3ad9fa39058fbac6218b903e18e01bae760893599cbdb7495f17e91f9b8438877b20794052e0fcce3b478567a7c5e964a02c89cde04
|
7
|
+
data.tar.gz: 03c8ee81d468ec20f62b8330c76ee29196cf37f78ec644cda128156eac817c2ae3d7d90a27d9b6156ab74992b9fdca436c1d9d7bc8ca8866809ddab8fe83669e
|
data/ext/pbf_parser/extconf.rb
CHANGED
@@ -17,10 +17,10 @@ LIB_DIRS = [
|
|
17
17
|
LIBDIR
|
18
18
|
]
|
19
19
|
|
20
|
-
dir_config('
|
20
|
+
dir_config('libprotobuf-c', HEADER_DIRS, LIB_DIRS)
|
21
21
|
dir_config('zlib', HEADER_DIRS, LIB_DIRS)
|
22
22
|
|
23
|
-
abort "protobuf-c is required" unless find_header('
|
23
|
+
abort "protobuf-c is required" unless find_header('protobuf-c/protobuf-c.h')
|
24
24
|
abort "zlib is required" unless find_header('zlib.h')
|
25
25
|
|
26
26
|
abort "protobuf-c is required" unless find_library('protobuf-c', 'protobuf_c_message_unpack')
|
@@ -1,109 +1,110 @@
|
|
1
1
|
/* Generated by the protocol buffer compiler. DO NOT EDIT! */
|
2
|
+
/* Generated from: fileformat.proto */
|
2
3
|
|
3
4
|
/* Do not generate deprecated warnings for self */
|
4
|
-
#ifndef
|
5
|
-
#define
|
5
|
+
#ifndef PROTOBUF_C__NO_DEPRECATED
|
6
|
+
#define PROTOBUF_C__NO_DEPRECATED
|
6
7
|
#endif
|
7
8
|
|
8
9
|
#include "fileformat.pb-c.h"
|
9
|
-
void
|
10
|
-
(
|
10
|
+
void osmpbf__blob__init
|
11
|
+
(OSMPBF__Blob *message)
|
11
12
|
{
|
12
|
-
static
|
13
|
+
static OSMPBF__Blob init_value = OSMPBF__BLOB__INIT;
|
13
14
|
*message = init_value;
|
14
15
|
}
|
15
|
-
size_t
|
16
|
-
(const
|
16
|
+
size_t osmpbf__blob__get_packed_size
|
17
|
+
(const OSMPBF__Blob *message)
|
17
18
|
{
|
18
|
-
|
19
|
+
assert(message->base.descriptor == &osmpbf__blob__descriptor);
|
19
20
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
20
21
|
}
|
21
|
-
size_t
|
22
|
-
(const
|
22
|
+
size_t osmpbf__blob__pack
|
23
|
+
(const OSMPBF__Blob *message,
|
23
24
|
uint8_t *out)
|
24
25
|
{
|
25
|
-
|
26
|
+
assert(message->base.descriptor == &osmpbf__blob__descriptor);
|
26
27
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
27
28
|
}
|
28
|
-
size_t
|
29
|
-
(const
|
29
|
+
size_t osmpbf__blob__pack_to_buffer
|
30
|
+
(const OSMPBF__Blob *message,
|
30
31
|
ProtobufCBuffer *buffer)
|
31
32
|
{
|
32
|
-
|
33
|
+
assert(message->base.descriptor == &osmpbf__blob__descriptor);
|
33
34
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
34
35
|
}
|
35
|
-
|
36
|
-
|
36
|
+
OSMPBF__Blob *
|
37
|
+
osmpbf__blob__unpack
|
37
38
|
(ProtobufCAllocator *allocator,
|
38
39
|
size_t len,
|
39
40
|
const uint8_t *data)
|
40
41
|
{
|
41
|
-
return (
|
42
|
-
protobuf_c_message_unpack (&
|
42
|
+
return (OSMPBF__Blob *)
|
43
|
+
protobuf_c_message_unpack (&osmpbf__blob__descriptor,
|
43
44
|
allocator, len, data);
|
44
45
|
}
|
45
|
-
void
|
46
|
-
(
|
46
|
+
void osmpbf__blob__free_unpacked
|
47
|
+
(OSMPBF__Blob *message,
|
47
48
|
ProtobufCAllocator *allocator)
|
48
49
|
{
|
49
|
-
|
50
|
+
assert(message->base.descriptor == &osmpbf__blob__descriptor);
|
50
51
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
51
52
|
}
|
52
|
-
void
|
53
|
-
(
|
53
|
+
void osmpbf__blob_header__init
|
54
|
+
(OSMPBF__BlobHeader *message)
|
54
55
|
{
|
55
|
-
static
|
56
|
+
static OSMPBF__BlobHeader init_value = OSMPBF__BLOB_HEADER__INIT;
|
56
57
|
*message = init_value;
|
57
58
|
}
|
58
|
-
size_t
|
59
|
-
(const
|
59
|
+
size_t osmpbf__blob_header__get_packed_size
|
60
|
+
(const OSMPBF__BlobHeader *message)
|
60
61
|
{
|
61
|
-
|
62
|
+
assert(message->base.descriptor == &osmpbf__blob_header__descriptor);
|
62
63
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
|
63
64
|
}
|
64
|
-
size_t
|
65
|
-
(const
|
65
|
+
size_t osmpbf__blob_header__pack
|
66
|
+
(const OSMPBF__BlobHeader *message,
|
66
67
|
uint8_t *out)
|
67
68
|
{
|
68
|
-
|
69
|
+
assert(message->base.descriptor == &osmpbf__blob_header__descriptor);
|
69
70
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
|
70
71
|
}
|
71
|
-
size_t
|
72
|
-
(const
|
72
|
+
size_t osmpbf__blob_header__pack_to_buffer
|
73
|
+
(const OSMPBF__BlobHeader *message,
|
73
74
|
ProtobufCBuffer *buffer)
|
74
75
|
{
|
75
|
-
|
76
|
+
assert(message->base.descriptor == &osmpbf__blob_header__descriptor);
|
76
77
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
|
77
78
|
}
|
78
|
-
|
79
|
-
|
79
|
+
OSMPBF__BlobHeader *
|
80
|
+
osmpbf__blob_header__unpack
|
80
81
|
(ProtobufCAllocator *allocator,
|
81
82
|
size_t len,
|
82
83
|
const uint8_t *data)
|
83
84
|
{
|
84
|
-
return (
|
85
|
-
protobuf_c_message_unpack (&
|
85
|
+
return (OSMPBF__BlobHeader *)
|
86
|
+
protobuf_c_message_unpack (&osmpbf__blob_header__descriptor,
|
86
87
|
allocator, len, data);
|
87
88
|
}
|
88
|
-
void
|
89
|
-
(
|
89
|
+
void osmpbf__blob_header__free_unpacked
|
90
|
+
(OSMPBF__BlobHeader *message,
|
90
91
|
ProtobufCAllocator *allocator)
|
91
92
|
{
|
92
|
-
|
93
|
+
assert(message->base.descriptor == &osmpbf__blob_header__descriptor);
|
93
94
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
|
94
95
|
}
|
95
|
-
static const ProtobufCFieldDescriptor
|
96
|
+
static const ProtobufCFieldDescriptor osmpbf__blob__field_descriptors[5] =
|
96
97
|
{
|
97
98
|
{
|
98
99
|
"raw",
|
99
100
|
1,
|
100
101
|
PROTOBUF_C_LABEL_OPTIONAL,
|
101
102
|
PROTOBUF_C_TYPE_BYTES,
|
102
|
-
|
103
|
-
|
103
|
+
offsetof(OSMPBF__Blob, has_raw),
|
104
|
+
offsetof(OSMPBF__Blob, raw),
|
104
105
|
NULL,
|
105
106
|
NULL,
|
106
|
-
0,
|
107
|
+
0, /* flags */
|
107
108
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
108
109
|
},
|
109
110
|
{
|
@@ -111,11 +112,11 @@ static const ProtobufCFieldDescriptor blob__field_descriptors[5] =
|
|
111
112
|
2,
|
112
113
|
PROTOBUF_C_LABEL_OPTIONAL,
|
113
114
|
PROTOBUF_C_TYPE_INT32,
|
114
|
-
|
115
|
-
|
115
|
+
offsetof(OSMPBF__Blob, has_raw_size),
|
116
|
+
offsetof(OSMPBF__Blob, raw_size),
|
116
117
|
NULL,
|
117
118
|
NULL,
|
118
|
-
0,
|
119
|
+
0, /* flags */
|
119
120
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
120
121
|
},
|
121
122
|
{
|
@@ -123,11 +124,11 @@ static const ProtobufCFieldDescriptor blob__field_descriptors[5] =
|
|
123
124
|
3,
|
124
125
|
PROTOBUF_C_LABEL_OPTIONAL,
|
125
126
|
PROTOBUF_C_TYPE_BYTES,
|
126
|
-
|
127
|
-
|
127
|
+
offsetof(OSMPBF__Blob, has_zlib_data),
|
128
|
+
offsetof(OSMPBF__Blob, zlib_data),
|
128
129
|
NULL,
|
129
130
|
NULL,
|
130
|
-
0,
|
131
|
+
0, /* flags */
|
131
132
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
132
133
|
},
|
133
134
|
{
|
@@ -135,11 +136,11 @@ static const ProtobufCFieldDescriptor blob__field_descriptors[5] =
|
|
135
136
|
4,
|
136
137
|
PROTOBUF_C_LABEL_OPTIONAL,
|
137
138
|
PROTOBUF_C_TYPE_BYTES,
|
138
|
-
|
139
|
-
|
139
|
+
offsetof(OSMPBF__Blob, has_lzma_data),
|
140
|
+
offsetof(OSMPBF__Blob, lzma_data),
|
140
141
|
NULL,
|
141
142
|
NULL,
|
142
|
-
0,
|
143
|
+
0, /* flags */
|
143
144
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
144
145
|
},
|
145
146
|
{
|
@@ -147,42 +148,42 @@ static const ProtobufCFieldDescriptor blob__field_descriptors[5] =
|
|
147
148
|
5,
|
148
149
|
PROTOBUF_C_LABEL_OPTIONAL,
|
149
150
|
PROTOBUF_C_TYPE_BYTES,
|
150
|
-
|
151
|
-
|
151
|
+
offsetof(OSMPBF__Blob, has_obsolete_bzip2_data),
|
152
|
+
offsetof(OSMPBF__Blob, obsolete_bzip2_data),
|
152
153
|
NULL,
|
153
154
|
NULL,
|
154
|
-
0,
|
155
|
+
0 | PROTOBUF_C_FIELD_FLAG_DEPRECATED, /* flags */
|
155
156
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
156
157
|
},
|
157
158
|
};
|
158
|
-
static const unsigned
|
159
|
+
static const unsigned osmpbf__blob__field_indices_by_name[] = {
|
159
160
|
4, /* field[4] = OBSOLETE_bzip2_data */
|
160
161
|
3, /* field[3] = lzma_data */
|
161
162
|
0, /* field[0] = raw */
|
162
163
|
1, /* field[1] = raw_size */
|
163
164
|
2, /* field[2] = zlib_data */
|
164
165
|
};
|
165
|
-
static const ProtobufCIntRange
|
166
|
+
static const ProtobufCIntRange osmpbf__blob__number_ranges[1 + 1] =
|
166
167
|
{
|
167
168
|
{ 1, 0 },
|
168
169
|
{ 0, 5 }
|
169
170
|
};
|
170
|
-
const ProtobufCMessageDescriptor
|
171
|
+
const ProtobufCMessageDescriptor osmpbf__blob__descriptor =
|
171
172
|
{
|
172
|
-
|
173
|
+
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
174
|
+
"OSMPBF.Blob",
|
173
175
|
"Blob",
|
174
|
-
"
|
175
|
-
"
|
176
|
-
|
177
|
-
sizeof(Blob),
|
176
|
+
"OSMPBF__Blob",
|
177
|
+
"OSMPBF",
|
178
|
+
sizeof(OSMPBF__Blob),
|
178
179
|
5,
|
179
|
-
|
180
|
-
|
181
|
-
1,
|
182
|
-
(ProtobufCMessageInit)
|
180
|
+
osmpbf__blob__field_descriptors,
|
181
|
+
osmpbf__blob__field_indices_by_name,
|
182
|
+
1, osmpbf__blob__number_ranges,
|
183
|
+
(ProtobufCMessageInit) osmpbf__blob__init,
|
183
184
|
NULL,NULL,NULL /* reserved[123] */
|
184
185
|
};
|
185
|
-
static const ProtobufCFieldDescriptor
|
186
|
+
static const ProtobufCFieldDescriptor osmpbf__blob_header__field_descriptors[3] =
|
186
187
|
{
|
187
188
|
{
|
188
189
|
"type",
|
@@ -190,10 +191,10 @@ static const ProtobufCFieldDescriptor blob_header__field_descriptors[3] =
|
|
190
191
|
PROTOBUF_C_LABEL_REQUIRED,
|
191
192
|
PROTOBUF_C_TYPE_STRING,
|
192
193
|
0, /* quantifier_offset */
|
193
|
-
|
194
|
+
offsetof(OSMPBF__BlobHeader, type),
|
194
195
|
NULL,
|
195
196
|
NULL,
|
196
|
-
0,
|
197
|
+
0, /* flags */
|
197
198
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
198
199
|
},
|
199
200
|
{
|
@@ -201,11 +202,11 @@ static const ProtobufCFieldDescriptor blob_header__field_descriptors[3] =
|
|
201
202
|
2,
|
202
203
|
PROTOBUF_C_LABEL_OPTIONAL,
|
203
204
|
PROTOBUF_C_TYPE_BYTES,
|
204
|
-
|
205
|
-
|
205
|
+
offsetof(OSMPBF__BlobHeader, has_indexdata),
|
206
|
+
offsetof(OSMPBF__BlobHeader, indexdata),
|
206
207
|
NULL,
|
207
208
|
NULL,
|
208
|
-
0,
|
209
|
+
0, /* flags */
|
209
210
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
210
211
|
},
|
211
212
|
{
|
@@ -214,35 +215,35 @@ static const ProtobufCFieldDescriptor blob_header__field_descriptors[3] =
|
|
214
215
|
PROTOBUF_C_LABEL_REQUIRED,
|
215
216
|
PROTOBUF_C_TYPE_INT32,
|
216
217
|
0, /* quantifier_offset */
|
217
|
-
|
218
|
+
offsetof(OSMPBF__BlobHeader, datasize),
|
218
219
|
NULL,
|
219
220
|
NULL,
|
220
|
-
0,
|
221
|
+
0, /* flags */
|
221
222
|
0,NULL,NULL /* reserved1,reserved2, etc */
|
222
223
|
},
|
223
224
|
};
|
224
|
-
static const unsigned
|
225
|
+
static const unsigned osmpbf__blob_header__field_indices_by_name[] = {
|
225
226
|
2, /* field[2] = datasize */
|
226
227
|
1, /* field[1] = indexdata */
|
227
228
|
0, /* field[0] = type */
|
228
229
|
};
|
229
|
-
static const ProtobufCIntRange
|
230
|
+
static const ProtobufCIntRange osmpbf__blob_header__number_ranges[1 + 1] =
|
230
231
|
{
|
231
232
|
{ 1, 0 },
|
232
233
|
{ 0, 3 }
|
233
234
|
};
|
234
|
-
const ProtobufCMessageDescriptor
|
235
|
+
const ProtobufCMessageDescriptor osmpbf__blob_header__descriptor =
|
235
236
|
{
|
236
|
-
|
237
|
-
"BlobHeader",
|
238
|
-
"BlobHeader",
|
237
|
+
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
|
238
|
+
"OSMPBF.BlobHeader",
|
239
239
|
"BlobHeader",
|
240
|
-
"",
|
241
|
-
|
240
|
+
"OSMPBF__BlobHeader",
|
241
|
+
"OSMPBF",
|
242
|
+
sizeof(OSMPBF__BlobHeader),
|
242
243
|
3,
|
243
|
-
|
244
|
-
|
245
|
-
1,
|
246
|
-
(ProtobufCMessageInit)
|
244
|
+
osmpbf__blob_header__field_descriptors,
|
245
|
+
osmpbf__blob_header__field_indices_by_name,
|
246
|
+
1, osmpbf__blob_header__number_ranges,
|
247
|
+
(ProtobufCMessageInit) osmpbf__blob_header__init,
|
247
248
|
NULL,NULL,NULL /* reserved[123] */
|
248
249
|
};
|
@@ -1,15 +1,22 @@
|
|
1
1
|
/* Generated by the protocol buffer compiler. DO NOT EDIT! */
|
2
|
+
/* Generated from: fileformat.proto */
|
2
3
|
|
3
4
|
#ifndef PROTOBUF_C_fileformat_2eproto__INCLUDED
|
4
5
|
#define PROTOBUF_C_fileformat_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
|
17
|
+
|
18
|
+
typedef struct _OSMPBF__Blob OSMPBF__Blob;
|
19
|
+
typedef struct _OSMPBF__BlobHeader OSMPBF__BlobHeader;
|
13
20
|
|
14
21
|
|
15
22
|
/* --- enums --- */
|
@@ -17,7 +24,7 @@ typedef struct _BlobHeader BlobHeader;
|
|
17
24
|
|
18
25
|
/* --- messages --- */
|
19
26
|
|
20
|
-
struct
|
27
|
+
struct _OSMPBF__Blob
|
21
28
|
{
|
22
29
|
ProtobufCMessage base;
|
23
30
|
protobuf_c_boolean has_raw;
|
@@ -28,15 +35,15 @@ struct _Blob
|
|
28
35
|
ProtobufCBinaryData zlib_data;
|
29
36
|
protobuf_c_boolean has_lzma_data;
|
30
37
|
ProtobufCBinaryData lzma_data;
|
31
|
-
protobuf_c_boolean has_obsolete_bzip2_data
|
32
|
-
ProtobufCBinaryData obsolete_bzip2_data
|
38
|
+
protobuf_c_boolean has_obsolete_bzip2_data PROTOBUF_C__DEPRECATED;
|
39
|
+
ProtobufCBinaryData obsolete_bzip2_data PROTOBUF_C__DEPRECATED;
|
33
40
|
};
|
34
|
-
#define
|
35
|
-
{ PROTOBUF_C_MESSAGE_INIT (&
|
41
|
+
#define OSMPBF__BLOB__INIT \
|
42
|
+
{ PROTOBUF_C_MESSAGE_INIT (&osmpbf__blob__descriptor) \
|
36
43
|
, 0,{0,NULL}, 0,0, 0,{0,NULL}, 0,{0,NULL}, 0,{0,NULL} }
|
37
44
|
|
38
45
|
|
39
|
-
struct
|
46
|
+
struct _OSMPBF__BlobHeader
|
40
47
|
{
|
41
48
|
ProtobufCMessage base;
|
42
49
|
char *type;
|
@@ -44,56 +51,56 @@ struct _BlobHeader
|
|
44
51
|
ProtobufCBinaryData indexdata;
|
45
52
|
int32_t datasize;
|
46
53
|
};
|
47
|
-
#define
|
48
|
-
{ PROTOBUF_C_MESSAGE_INIT (&
|
54
|
+
#define OSMPBF__BLOB_HEADER__INIT \
|
55
|
+
{ PROTOBUF_C_MESSAGE_INIT (&osmpbf__blob_header__descriptor) \
|
49
56
|
, NULL, 0,{0,NULL}, 0 }
|
50
57
|
|
51
58
|
|
52
|
-
/*
|
53
|
-
void
|
54
|
-
(
|
55
|
-
size_t
|
56
|
-
(const
|
57
|
-
size_t
|
58
|
-
(const
|
59
|
+
/* OSMPBF__Blob methods */
|
60
|
+
void osmpbf__blob__init
|
61
|
+
(OSMPBF__Blob *message);
|
62
|
+
size_t osmpbf__blob__get_packed_size
|
63
|
+
(const OSMPBF__Blob *message);
|
64
|
+
size_t osmpbf__blob__pack
|
65
|
+
(const OSMPBF__Blob *message,
|
59
66
|
uint8_t *out);
|
60
|
-
size_t
|
61
|
-
(const
|
67
|
+
size_t osmpbf__blob__pack_to_buffer
|
68
|
+
(const OSMPBF__Blob *message,
|
62
69
|
ProtobufCBuffer *buffer);
|
63
|
-
|
64
|
-
|
70
|
+
OSMPBF__Blob *
|
71
|
+
osmpbf__blob__unpack
|
65
72
|
(ProtobufCAllocator *allocator,
|
66
73
|
size_t len,
|
67
74
|
const uint8_t *data);
|
68
|
-
void
|
69
|
-
(
|
75
|
+
void osmpbf__blob__free_unpacked
|
76
|
+
(OSMPBF__Blob *message,
|
70
77
|
ProtobufCAllocator *allocator);
|
71
|
-
/*
|
72
|
-
void
|
73
|
-
(
|
74
|
-
size_t
|
75
|
-
(const
|
76
|
-
size_t
|
77
|
-
(const
|
78
|
+
/* OSMPBF__BlobHeader methods */
|
79
|
+
void osmpbf__blob_header__init
|
80
|
+
(OSMPBF__BlobHeader *message);
|
81
|
+
size_t osmpbf__blob_header__get_packed_size
|
82
|
+
(const OSMPBF__BlobHeader *message);
|
83
|
+
size_t osmpbf__blob_header__pack
|
84
|
+
(const OSMPBF__BlobHeader *message,
|
78
85
|
uint8_t *out);
|
79
|
-
size_t
|
80
|
-
(const
|
86
|
+
size_t osmpbf__blob_header__pack_to_buffer
|
87
|
+
(const OSMPBF__BlobHeader *message,
|
81
88
|
ProtobufCBuffer *buffer);
|
82
|
-
|
83
|
-
|
89
|
+
OSMPBF__BlobHeader *
|
90
|
+
osmpbf__blob_header__unpack
|
84
91
|
(ProtobufCAllocator *allocator,
|
85
92
|
size_t len,
|
86
93
|
const uint8_t *data);
|
87
|
-
void
|
88
|
-
(
|
94
|
+
void osmpbf__blob_header__free_unpacked
|
95
|
+
(OSMPBF__BlobHeader *message,
|
89
96
|
ProtobufCAllocator *allocator);
|
90
97
|
/* --- per-message closures --- */
|
91
98
|
|
92
|
-
typedef void (*
|
93
|
-
(const
|
99
|
+
typedef void (*OSMPBF__Blob_Closure)
|
100
|
+
(const OSMPBF__Blob *message,
|
94
101
|
void *closure_data);
|
95
|
-
typedef void (*
|
96
|
-
(const
|
102
|
+
typedef void (*OSMPBF__BlobHeader_Closure)
|
103
|
+
(const OSMPBF__BlobHeader *message,
|
97
104
|
void *closure_data);
|
98
105
|
|
99
106
|
/* --- services --- */
|
@@ -101,10 +108,10 @@ typedef void (*BlobHeader_Closure)
|
|
101
108
|
|
102
109
|
/* --- descriptors --- */
|
103
110
|
|
104
|
-
extern const ProtobufCMessageDescriptor
|
105
|
-
extern const ProtobufCMessageDescriptor
|
111
|
+
extern const ProtobufCMessageDescriptor osmpbf__blob__descriptor;
|
112
|
+
extern const ProtobufCMessageDescriptor osmpbf__blob_header__descriptor;
|
106
113
|
|
107
|
-
|
114
|
+
PROTOBUF_C__END_DECLS
|
108
115
|
|
109
116
|
|
110
|
-
#endif /*
|
117
|
+
#endif /* PROTOBUF_C_fileformat_2eproto__INCLUDED */
|