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

Contents of /navit/navit/maptool/generated-code/fileformat.pb-c.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8 - (hide annotations) (download)
Fri Oct 28 21:39:42 2011 UTC (12 years, 5 months ago) by zoff99
File MIME type: text/plain
File size: 7537 byte(s)
import
1 zoff99 8 /* Generated by the protocol buffer compiler. DO NOT EDIT! */
2    
3     /* Do not generate deprecated warnings for self */
4     #ifndef PROTOBUF_C_NO_DEPRECATED
5     #define PROTOBUF_C_NO_DEPRECATED
6     #endif
7    
8     #include "fileformat.pb-c.h"
9     void osmpbf__blob__init
10     (OSMPBF__Blob *message)
11     {
12     static OSMPBF__Blob init_value = OSMPBF__BLOB__INIT;
13     *message = init_value;
14     }
15     size_t osmpbf__blob__get_packed_size
16     (const OSMPBF__Blob *message)
17     {
18     PROTOBUF_C_ASSERT (message->base.descriptor == &osmpbf__blob__descriptor);
19     return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
20     }
21     size_t osmpbf__blob__pack
22     (const OSMPBF__Blob *message,
23     uint8_t *out)
24     {
25     PROTOBUF_C_ASSERT (message->base.descriptor == &osmpbf__blob__descriptor);
26     return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
27     }
28     size_t osmpbf__blob__pack_to_buffer
29     (const OSMPBF__Blob *message,
30     ProtobufCBuffer *buffer)
31     {
32     PROTOBUF_C_ASSERT (message->base.descriptor == &osmpbf__blob__descriptor);
33     return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
34     }
35     OSMPBF__Blob *
36     osmpbf__blob__unpack
37     (ProtobufCAllocator *allocator,
38     size_t len,
39     const uint8_t *data)
40     {
41     return (OSMPBF__Blob *)
42     protobuf_c_message_unpack (&osmpbf__blob__descriptor,
43     allocator, len, data);
44     }
45     void osmpbf__blob__free_unpacked
46     (OSMPBF__Blob *message,
47     ProtobufCAllocator *allocator)
48     {
49     PROTOBUF_C_ASSERT (message->base.descriptor == &osmpbf__blob__descriptor);
50     protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
51     }
52     void osmpbf__blob_header__init
53     (OSMPBF__BlobHeader *message)
54     {
55     static OSMPBF__BlobHeader init_value = OSMPBF__BLOB_HEADER__INIT;
56     *message = init_value;
57     }
58     size_t osmpbf__blob_header__get_packed_size
59     (const OSMPBF__BlobHeader *message)
60     {
61     PROTOBUF_C_ASSERT (message->base.descriptor == &osmpbf__blob_header__descriptor);
62     return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
63     }
64     size_t osmpbf__blob_header__pack
65     (const OSMPBF__BlobHeader *message,
66     uint8_t *out)
67     {
68     PROTOBUF_C_ASSERT (message->base.descriptor == &osmpbf__blob_header__descriptor);
69     return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
70     }
71     size_t osmpbf__blob_header__pack_to_buffer
72     (const OSMPBF__BlobHeader *message,
73     ProtobufCBuffer *buffer)
74     {
75     PROTOBUF_C_ASSERT (message->base.descriptor == &osmpbf__blob_header__descriptor);
76     return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
77     }
78     OSMPBF__BlobHeader *
79     osmpbf__blob_header__unpack
80     (ProtobufCAllocator *allocator,
81     size_t len,
82     const uint8_t *data)
83     {
84     return (OSMPBF__BlobHeader *)
85     protobuf_c_message_unpack (&osmpbf__blob_header__descriptor,
86     allocator, len, data);
87     }
88     void osmpbf__blob_header__free_unpacked
89     (OSMPBF__BlobHeader *message,
90     ProtobufCAllocator *allocator)
91     {
92     PROTOBUF_C_ASSERT (message->base.descriptor == &osmpbf__blob_header__descriptor);
93     protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
94     }
95     static const ProtobufCFieldDescriptor osmpbf__blob__field_descriptors[5] =
96     {
97     {
98     "raw",
99     1,
100     PROTOBUF_C_LABEL_OPTIONAL,
101     PROTOBUF_C_TYPE_BYTES,
102     PROTOBUF_C_OFFSETOF(OSMPBF__Blob, has_raw),
103     PROTOBUF_C_OFFSETOF(OSMPBF__Blob, raw),
104     NULL,
105     NULL,
106     0, /* packed */
107     0,NULL,NULL /* reserved1,reserved2, etc */
108     },
109     {
110     "raw_size",
111     2,
112     PROTOBUF_C_LABEL_OPTIONAL,
113     PROTOBUF_C_TYPE_INT32,
114     PROTOBUF_C_OFFSETOF(OSMPBF__Blob, has_raw_size),
115     PROTOBUF_C_OFFSETOF(OSMPBF__Blob, raw_size),
116     NULL,
117     NULL,
118     0, /* packed */
119     0,NULL,NULL /* reserved1,reserved2, etc */
120     },
121     {
122     "zlib_data",
123     3,
124     PROTOBUF_C_LABEL_OPTIONAL,
125     PROTOBUF_C_TYPE_BYTES,
126     PROTOBUF_C_OFFSETOF(OSMPBF__Blob, has_zlib_data),
127     PROTOBUF_C_OFFSETOF(OSMPBF__Blob, zlib_data),
128     NULL,
129     NULL,
130     0, /* packed */
131     0,NULL,NULL /* reserved1,reserved2, etc */
132     },
133     {
134     "lzma_data",
135     4,
136     PROTOBUF_C_LABEL_OPTIONAL,
137     PROTOBUF_C_TYPE_BYTES,
138     PROTOBUF_C_OFFSETOF(OSMPBF__Blob, has_lzma_data),
139     PROTOBUF_C_OFFSETOF(OSMPBF__Blob, lzma_data),
140     NULL,
141     NULL,
142     0, /* packed */
143     0,NULL,NULL /* reserved1,reserved2, etc */
144     },
145     {
146     "OBSOLETE_bzip2_data",
147     5,
148     PROTOBUF_C_LABEL_OPTIONAL,
149     PROTOBUF_C_TYPE_BYTES,
150     PROTOBUF_C_OFFSETOF(OSMPBF__Blob, has_obsolete_bzip2_data),
151     PROTOBUF_C_OFFSETOF(OSMPBF__Blob, obsolete_bzip2_data),
152     NULL,
153     NULL,
154     0, /* packed */
155     0,NULL,NULL /* reserved1,reserved2, etc */
156     },
157     };
158     static const unsigned osmpbf__blob__field_indices_by_name[] = {
159     4, /* field[4] = OBSOLETE_bzip2_data */
160     3, /* field[3] = lzma_data */
161     0, /* field[0] = raw */
162     1, /* field[1] = raw_size */
163     2, /* field[2] = zlib_data */
164     };
165     static const ProtobufCIntRange osmpbf__blob__number_ranges[1 + 1] =
166     {
167     { 1, 0 },
168     { 0, 5 }
169     };
170     const ProtobufCMessageDescriptor osmpbf__blob__descriptor =
171     {
172     PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC,
173     "OSMPBF.Blob",
174     "Blob",
175     "OSMPBF__Blob",
176     "OSMPBF",
177     sizeof(OSMPBF__Blob),
178     5,
179     osmpbf__blob__field_descriptors,
180     osmpbf__blob__field_indices_by_name,
181     1, osmpbf__blob__number_ranges,
182     (ProtobufCMessageInit) osmpbf__blob__init,
183     NULL,NULL,NULL /* reserved[123] */
184     };
185     static const ProtobufCFieldDescriptor osmpbf__blob_header__field_descriptors[3] =
186     {
187     {
188     "type",
189     1,
190     PROTOBUF_C_LABEL_REQUIRED,
191     PROTOBUF_C_TYPE_STRING,
192     0, /* quantifier_offset */
193     PROTOBUF_C_OFFSETOF(OSMPBF__BlobHeader, type),
194     NULL,
195     NULL,
196     0, /* packed */
197     0,NULL,NULL /* reserved1,reserved2, etc */
198     },
199     {
200     "indexdata",
201     2,
202     PROTOBUF_C_LABEL_OPTIONAL,
203     PROTOBUF_C_TYPE_BYTES,
204     PROTOBUF_C_OFFSETOF(OSMPBF__BlobHeader, has_indexdata),
205     PROTOBUF_C_OFFSETOF(OSMPBF__BlobHeader, indexdata),
206     NULL,
207     NULL,
208     0, /* packed */
209     0,NULL,NULL /* reserved1,reserved2, etc */
210     },
211     {
212     "datasize",
213     3,
214     PROTOBUF_C_LABEL_REQUIRED,
215     PROTOBUF_C_TYPE_INT32,
216     0, /* quantifier_offset */
217     PROTOBUF_C_OFFSETOF(OSMPBF__BlobHeader, datasize),
218     NULL,
219     NULL,
220     0, /* packed */
221     0,NULL,NULL /* reserved1,reserved2, etc */
222     },
223     };
224     static const unsigned osmpbf__blob_header__field_indices_by_name[] = {
225     2, /* field[2] = datasize */
226     1, /* field[1] = indexdata */
227     0, /* field[0] = type */
228     };
229     static const ProtobufCIntRange osmpbf__blob_header__number_ranges[1 + 1] =
230     {
231     { 1, 0 },
232     { 0, 3 }
233     };
234     const ProtobufCMessageDescriptor osmpbf__blob_header__descriptor =
235     {
236     PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC,
237     "OSMPBF.BlobHeader",
238     "BlobHeader",
239     "OSMPBF__BlobHeader",
240     "OSMPBF",
241     sizeof(OSMPBF__BlobHeader),
242     3,
243     osmpbf__blob_header__field_descriptors,
244     osmpbf__blob_header__field_indices_by_name,
245     1, osmpbf__blob_header__number_ranges,
246     (ProtobufCMessageInit) osmpbf__blob_header__init,
247     NULL,NULL,NULL /* reserved[123] */
248     };

   
Visit the ZANavi Wiki