Navit SVN

/work/compile/navit/src/navit/maptool/generated-code/osmformat.pb-c.h

00001 /* Generated by the protocol buffer compiler.  DO NOT EDIT! */
00002 
00003 #ifndef PROTOBUF_C_osmformat_2eproto__INCLUDED
00004 #define PROTOBUF_C_osmformat_2eproto__INCLUDED
00005 
00006 #include <google/protobuf-c/protobuf-c.h>
00007 
00008 PROTOBUF_C_BEGIN_DECLS
00009 
00010 
00011 typedef struct _OSMPBF__HeaderBlock OSMPBF__HeaderBlock;
00012 typedef struct _OSMPBF__HeaderBBox OSMPBF__HeaderBBox;
00013 typedef struct _OSMPBF__PrimitiveBlock OSMPBF__PrimitiveBlock;
00014 typedef struct _OSMPBF__PrimitiveGroup OSMPBF__PrimitiveGroup;
00015 typedef struct _OSMPBF__StringTable OSMPBF__StringTable;
00016 typedef struct _OSMPBF__Info OSMPBF__Info;
00017 typedef struct _OSMPBF__DenseInfo OSMPBF__DenseInfo;
00018 typedef struct _OSMPBF__ChangeSet OSMPBF__ChangeSet;
00019 typedef struct _OSMPBF__Node OSMPBF__Node;
00020 typedef struct _OSMPBF__DenseNodes OSMPBF__DenseNodes;
00021 typedef struct _OSMPBF__Way OSMPBF__Way;
00022 typedef struct _OSMPBF__Relation OSMPBF__Relation;
00023 
00024 
00025 /* --- enums --- */
00026 
00027 typedef enum _OSMPBF__Relation__MemberType {
00028   OSMPBF__RELATION__MEMBER_TYPE__NODE = 0,
00029   OSMPBF__RELATION__MEMBER_TYPE__WAY = 1,
00030   OSMPBF__RELATION__MEMBER_TYPE__RELATION = 2
00031 } OSMPBF__Relation__MemberType;
00032 
00033 /* --- messages --- */
00034 
00035 struct  _OSMPBF__HeaderBlock
00036 {
00037   ProtobufCMessage base;
00038   OSMPBF__HeaderBBox *bbox;
00039   size_t n_required_features;
00040   char **required_features;
00041   size_t n_optional_features;
00042   char **optional_features;
00043   char *writingprogram;
00044   char *source;
00045 };
00046 #define OSMPBF__HEADER_BLOCK__INIT \
00047  { PROTOBUF_C_MESSAGE_INIT (&osmpbf__header_block__descriptor) \
00048     , NULL, 0,NULL, 0,NULL, NULL, NULL }
00049 
00050 
00051 struct  _OSMPBF__HeaderBBox
00052 {
00053   ProtobufCMessage base;
00054   int64_t left;
00055   int64_t right;
00056   int64_t top;
00057   int64_t bottom;
00058 };
00059 #define OSMPBF__HEADER_BBOX__INIT \
00060  { PROTOBUF_C_MESSAGE_INIT (&osmpbf__header_bbox__descriptor) \
00061     , 0, 0, 0, 0 }
00062 
00063 
00064 struct  _OSMPBF__PrimitiveBlock
00065 {
00066   ProtobufCMessage base;
00067   OSMPBF__StringTable *stringtable;
00068   size_t n_primitivegroup;
00069   OSMPBF__PrimitiveGroup **primitivegroup;
00070   protobuf_c_boolean has_granularity;
00071   int32_t granularity;
00072   protobuf_c_boolean has_lat_offset;
00073   int64_t lat_offset;
00074   protobuf_c_boolean has_lon_offset;
00075   int64_t lon_offset;
00076   protobuf_c_boolean has_date_granularity;
00077   int32_t date_granularity;
00078 };
00079 #define OSMPBF__PRIMITIVE_BLOCK__INIT \
00080  { PROTOBUF_C_MESSAGE_INIT (&osmpbf__primitive_block__descriptor) \
00081     , NULL, 0,NULL, 0,100, 0,0, 0,0, 0,1000 }
00082 
00083 
00084 struct  _OSMPBF__PrimitiveGroup
00085 {
00086   ProtobufCMessage base;
00087   size_t n_nodes;
00088   OSMPBF__Node **nodes;
00089   OSMPBF__DenseNodes *dense;
00090   size_t n_ways;
00091   OSMPBF__Way **ways;
00092   size_t n_relations;
00093   OSMPBF__Relation **relations;
00094   size_t n_changesets;
00095   OSMPBF__ChangeSet **changesets;
00096 };
00097 #define OSMPBF__PRIMITIVE_GROUP__INIT \
00098  { PROTOBUF_C_MESSAGE_INIT (&osmpbf__primitive_group__descriptor) \
00099     , 0,NULL, NULL, 0,NULL, 0,NULL, 0,NULL }
00100 
00101 
00102 struct  _OSMPBF__StringTable
00103 {
00104   ProtobufCMessage base;
00105   size_t n_s;
00106   ProtobufCBinaryData *s;
00107 };
00108 #define OSMPBF__STRING_TABLE__INIT \
00109  { PROTOBUF_C_MESSAGE_INIT (&osmpbf__string_table__descriptor) \
00110     , 0,NULL }
00111 
00112 
00113 struct  _OSMPBF__Info
00114 {
00115   ProtobufCMessage base;
00116   protobuf_c_boolean has_version;
00117   int32_t version;
00118   protobuf_c_boolean has_timestamp;
00119   int64_t timestamp;
00120   protobuf_c_boolean has_changeset;
00121   int64_t changeset;
00122   protobuf_c_boolean has_uid;
00123   int32_t uid;
00124   protobuf_c_boolean has_user_sid;
00125   uint32_t user_sid;
00126 };
00127 #define OSMPBF__INFO__INIT \
00128  { PROTOBUF_C_MESSAGE_INIT (&osmpbf__info__descriptor) \
00129     , 0,-1, 0,0, 0,0, 0,0, 0,0 }
00130 
00131 
00132 struct  _OSMPBF__DenseInfo
00133 {
00134   ProtobufCMessage base;
00135   size_t n_version;
00136   int32_t *version;
00137   size_t n_timestamp;
00138   int64_t *timestamp;
00139   size_t n_changeset;
00140   int64_t *changeset;
00141   size_t n_uid;
00142   int32_t *uid;
00143   size_t n_user_sid;
00144   int32_t *user_sid;
00145 };
00146 #define OSMPBF__DENSE_INFO__INIT \
00147  { PROTOBUF_C_MESSAGE_INIT (&osmpbf__dense_info__descriptor) \
00148     , 0,NULL, 0,NULL, 0,NULL, 0,NULL, 0,NULL }
00149 
00150 
00151 struct  _OSMPBF__ChangeSet
00152 {
00153   ProtobufCMessage base;
00154   int64_t id;
00155 };
00156 #define OSMPBF__CHANGE_SET__INIT \
00157  { PROTOBUF_C_MESSAGE_INIT (&osmpbf__change_set__descriptor) \
00158     , 0 }
00159 
00160 
00161 struct  _OSMPBF__Node
00162 {
00163   ProtobufCMessage base;
00164   int64_t id;
00165   size_t n_keys;
00166   uint32_t *keys;
00167   size_t n_vals;
00168   uint32_t *vals;
00169   OSMPBF__Info *info;
00170   int64_t lat;
00171   int64_t lon;
00172 };
00173 #define OSMPBF__NODE__INIT \
00174  { PROTOBUF_C_MESSAGE_INIT (&osmpbf__node__descriptor) \
00175     , 0, 0,NULL, 0,NULL, NULL, 0, 0 }
00176 
00177 
00178 struct  _OSMPBF__DenseNodes
00179 {
00180   ProtobufCMessage base;
00181   size_t n_id;
00182   int64_t *id;
00183   OSMPBF__DenseInfo *denseinfo;
00184   size_t n_lat;
00185   int64_t *lat;
00186   size_t n_lon;
00187   int64_t *lon;
00188   size_t n_keys_vals;
00189   int32_t *keys_vals;
00190 };
00191 #define OSMPBF__DENSE_NODES__INIT \
00192  { PROTOBUF_C_MESSAGE_INIT (&osmpbf__dense_nodes__descriptor) \
00193     , 0,NULL, NULL, 0,NULL, 0,NULL, 0,NULL }
00194 
00195 
00196 struct  _OSMPBF__Way
00197 {
00198   ProtobufCMessage base;
00199   int64_t id;
00200   size_t n_keys;
00201   uint32_t *keys;
00202   size_t n_vals;
00203   uint32_t *vals;
00204   OSMPBF__Info *info;
00205   size_t n_refs;
00206   int64_t *refs;
00207 };
00208 #define OSMPBF__WAY__INIT \
00209  { PROTOBUF_C_MESSAGE_INIT (&osmpbf__way__descriptor) \
00210     , 0, 0,NULL, 0,NULL, NULL, 0,NULL }
00211 
00212 
00213 struct  _OSMPBF__Relation
00214 {
00215   ProtobufCMessage base;
00216   int64_t id;
00217   size_t n_keys;
00218   uint32_t *keys;
00219   size_t n_vals;
00220   uint32_t *vals;
00221   OSMPBF__Info *info;
00222   size_t n_roles_sid;
00223   int32_t *roles_sid;
00224   size_t n_memids;
00225   int64_t *memids;
00226   size_t n_types;
00227   OSMPBF__Relation__MemberType *types;
00228 };
00229 #define OSMPBF__RELATION__INIT \
00230  { PROTOBUF_C_MESSAGE_INIT (&osmpbf__relation__descriptor) \
00231     , 0, 0,NULL, 0,NULL, NULL, 0,NULL, 0,NULL, 0,NULL }
00232 
00233 
00234 /* OSMPBF__HeaderBlock methods */
00235 void   osmpbf__header_block__init
00236                      (OSMPBF__HeaderBlock         *message);
00237 size_t osmpbf__header_block__get_packed_size
00238                      (const OSMPBF__HeaderBlock   *message);
00239 size_t osmpbf__header_block__pack
00240                      (const OSMPBF__HeaderBlock   *message,
00241                       uint8_t             *out);
00242 size_t osmpbf__header_block__pack_to_buffer
00243                      (const OSMPBF__HeaderBlock   *message,
00244                       ProtobufCBuffer     *buffer);
00245 OSMPBF__HeaderBlock *
00246        osmpbf__header_block__unpack
00247                      (ProtobufCAllocator  *allocator,
00248                       size_t               len,
00249                       const uint8_t       *data);
00250 void   osmpbf__header_block__free_unpacked
00251                      (OSMPBF__HeaderBlock *message,
00252                       ProtobufCAllocator *allocator);
00253 /* OSMPBF__HeaderBBox methods */
00254 void   osmpbf__header_bbox__init
00255                      (OSMPBF__HeaderBBox         *message);
00256 size_t osmpbf__header_bbox__get_packed_size
00257                      (const OSMPBF__HeaderBBox   *message);
00258 size_t osmpbf__header_bbox__pack
00259                      (const OSMPBF__HeaderBBox   *message,
00260                       uint8_t             *out);
00261 size_t osmpbf__header_bbox__pack_to_buffer
00262                      (const OSMPBF__HeaderBBox   *message,
00263                       ProtobufCBuffer     *buffer);
00264 OSMPBF__HeaderBBox *
00265        osmpbf__header_bbox__unpack
00266                      (ProtobufCAllocator  *allocator,
00267                       size_t               len,
00268                       const uint8_t       *data);
00269 void   osmpbf__header_bbox__free_unpacked
00270                      (OSMPBF__HeaderBBox *message,
00271                       ProtobufCAllocator *allocator);
00272 /* OSMPBF__PrimitiveBlock methods */
00273 void   osmpbf__primitive_block__init
00274                      (OSMPBF__PrimitiveBlock         *message);
00275 size_t osmpbf__primitive_block__get_packed_size
00276                      (const OSMPBF__PrimitiveBlock   *message);
00277 size_t osmpbf__primitive_block__pack
00278                      (const OSMPBF__PrimitiveBlock   *message,
00279                       uint8_t             *out);
00280 size_t osmpbf__primitive_block__pack_to_buffer
00281                      (const OSMPBF__PrimitiveBlock   *message,
00282                       ProtobufCBuffer     *buffer);
00283 OSMPBF__PrimitiveBlock *
00284        osmpbf__primitive_block__unpack
00285                      (ProtobufCAllocator  *allocator,
00286                       size_t               len,
00287                       const uint8_t       *data);
00288 void   osmpbf__primitive_block__free_unpacked
00289                      (OSMPBF__PrimitiveBlock *message,
00290                       ProtobufCAllocator *allocator);
00291 /* OSMPBF__PrimitiveGroup methods */
00292 void   osmpbf__primitive_group__init
00293                      (OSMPBF__PrimitiveGroup         *message);
00294 size_t osmpbf__primitive_group__get_packed_size
00295                      (const OSMPBF__PrimitiveGroup   *message);
00296 size_t osmpbf__primitive_group__pack
00297                      (const OSMPBF__PrimitiveGroup   *message,
00298                       uint8_t             *out);
00299 size_t osmpbf__primitive_group__pack_to_buffer
00300                      (const OSMPBF__PrimitiveGroup   *message,
00301                       ProtobufCBuffer     *buffer);
00302 OSMPBF__PrimitiveGroup *
00303        osmpbf__primitive_group__unpack
00304                      (ProtobufCAllocator  *allocator,
00305                       size_t               len,
00306                       const uint8_t       *data);
00307 void   osmpbf__primitive_group__free_unpacked
00308                      (OSMPBF__PrimitiveGroup *message,
00309                       ProtobufCAllocator *allocator);
00310 /* OSMPBF__StringTable methods */
00311 void   osmpbf__string_table__init
00312                      (OSMPBF__StringTable         *message);
00313 size_t osmpbf__string_table__get_packed_size
00314                      (const OSMPBF__StringTable   *message);
00315 size_t osmpbf__string_table__pack
00316                      (const OSMPBF__StringTable   *message,
00317                       uint8_t             *out);
00318 size_t osmpbf__string_table__pack_to_buffer
00319                      (const OSMPBF__StringTable   *message,
00320                       ProtobufCBuffer     *buffer);
00321 OSMPBF__StringTable *
00322        osmpbf__string_table__unpack
00323                      (ProtobufCAllocator  *allocator,
00324                       size_t               len,
00325                       const uint8_t       *data);
00326 void   osmpbf__string_table__free_unpacked
00327                      (OSMPBF__StringTable *message,
00328                       ProtobufCAllocator *allocator);
00329 /* OSMPBF__Info methods */
00330 void   osmpbf__info__init
00331                      (OSMPBF__Info         *message);
00332 size_t osmpbf__info__get_packed_size
00333                      (const OSMPBF__Info   *message);
00334 size_t osmpbf__info__pack
00335                      (const OSMPBF__Info   *message,
00336                       uint8_t             *out);
00337 size_t osmpbf__info__pack_to_buffer
00338                      (const OSMPBF__Info   *message,
00339                       ProtobufCBuffer     *buffer);
00340 OSMPBF__Info *
00341        osmpbf__info__unpack
00342                      (ProtobufCAllocator  *allocator,
00343                       size_t               len,
00344                       const uint8_t       *data);
00345 void   osmpbf__info__free_unpacked
00346                      (OSMPBF__Info *message,
00347                       ProtobufCAllocator *allocator);
00348 /* OSMPBF__DenseInfo methods */
00349 void   osmpbf__dense_info__init
00350                      (OSMPBF__DenseInfo         *message);
00351 size_t osmpbf__dense_info__get_packed_size
00352                      (const OSMPBF__DenseInfo   *message);
00353 size_t osmpbf__dense_info__pack
00354                      (const OSMPBF__DenseInfo   *message,
00355                       uint8_t             *out);
00356 size_t osmpbf__dense_info__pack_to_buffer
00357                      (const OSMPBF__DenseInfo   *message,
00358                       ProtobufCBuffer     *buffer);
00359 OSMPBF__DenseInfo *
00360        osmpbf__dense_info__unpack
00361                      (ProtobufCAllocator  *allocator,
00362                       size_t               len,
00363                       const uint8_t       *data);
00364 void   osmpbf__dense_info__free_unpacked
00365                      (OSMPBF__DenseInfo *message,
00366                       ProtobufCAllocator *allocator);
00367 /* OSMPBF__ChangeSet methods */
00368 void   osmpbf__change_set__init
00369                      (OSMPBF__ChangeSet         *message);
00370 size_t osmpbf__change_set__get_packed_size
00371                      (const OSMPBF__ChangeSet   *message);
00372 size_t osmpbf__change_set__pack
00373                      (const OSMPBF__ChangeSet   *message,
00374                       uint8_t             *out);
00375 size_t osmpbf__change_set__pack_to_buffer
00376                      (const OSMPBF__ChangeSet   *message,
00377                       ProtobufCBuffer     *buffer);
00378 OSMPBF__ChangeSet *
00379        osmpbf__change_set__unpack
00380                      (ProtobufCAllocator  *allocator,
00381                       size_t               len,
00382                       const uint8_t       *data);
00383 void   osmpbf__change_set__free_unpacked
00384                      (OSMPBF__ChangeSet *message,
00385                       ProtobufCAllocator *allocator);
00386 /* OSMPBF__Node methods */
00387 void   osmpbf__node__init
00388                      (OSMPBF__Node         *message);
00389 size_t osmpbf__node__get_packed_size
00390                      (const OSMPBF__Node   *message);
00391 size_t osmpbf__node__pack
00392                      (const OSMPBF__Node   *message,
00393                       uint8_t             *out);
00394 size_t osmpbf__node__pack_to_buffer
00395                      (const OSMPBF__Node   *message,
00396                       ProtobufCBuffer     *buffer);
00397 OSMPBF__Node *
00398        osmpbf__node__unpack
00399                      (ProtobufCAllocator  *allocator,
00400                       size_t               len,
00401                       const uint8_t       *data);
00402 void   osmpbf__node__free_unpacked
00403                      (OSMPBF__Node *message,
00404                       ProtobufCAllocator *allocator);
00405 /* OSMPBF__DenseNodes methods */
00406 void   osmpbf__dense_nodes__init
00407                      (OSMPBF__DenseNodes         *message);
00408 size_t osmpbf__dense_nodes__get_packed_size
00409                      (const OSMPBF__DenseNodes   *message);
00410 size_t osmpbf__dense_nodes__pack
00411                      (const OSMPBF__DenseNodes   *message,
00412                       uint8_t             *out);
00413 size_t osmpbf__dense_nodes__pack_to_buffer
00414                      (const OSMPBF__DenseNodes   *message,
00415                       ProtobufCBuffer     *buffer);
00416 OSMPBF__DenseNodes *
00417        osmpbf__dense_nodes__unpack
00418                      (ProtobufCAllocator  *allocator,
00419                       size_t               len,
00420                       const uint8_t       *data);
00421 void   osmpbf__dense_nodes__free_unpacked
00422                      (OSMPBF__DenseNodes *message,
00423                       ProtobufCAllocator *allocator);
00424 /* OSMPBF__Way methods */
00425 void   osmpbf__way__init
00426                      (OSMPBF__Way         *message);
00427 size_t osmpbf__way__get_packed_size
00428                      (const OSMPBF__Way   *message);
00429 size_t osmpbf__way__pack
00430                      (const OSMPBF__Way   *message,
00431                       uint8_t             *out);
00432 size_t osmpbf__way__pack_to_buffer
00433                      (const OSMPBF__Way   *message,
00434                       ProtobufCBuffer     *buffer);
00435 OSMPBF__Way *
00436        osmpbf__way__unpack
00437                      (ProtobufCAllocator  *allocator,
00438                       size_t               len,
00439                       const uint8_t       *data);
00440 void   osmpbf__way__free_unpacked
00441                      (OSMPBF__Way *message,
00442                       ProtobufCAllocator *allocator);
00443 /* OSMPBF__Relation methods */
00444 void   osmpbf__relation__init
00445                      (OSMPBF__Relation         *message);
00446 size_t osmpbf__relation__get_packed_size
00447                      (const OSMPBF__Relation   *message);
00448 size_t osmpbf__relation__pack
00449                      (const OSMPBF__Relation   *message,
00450                       uint8_t             *out);
00451 size_t osmpbf__relation__pack_to_buffer
00452                      (const OSMPBF__Relation   *message,
00453                       ProtobufCBuffer     *buffer);
00454 OSMPBF__Relation *
00455        osmpbf__relation__unpack
00456                      (ProtobufCAllocator  *allocator,
00457                       size_t               len,
00458                       const uint8_t       *data);
00459 void   osmpbf__relation__free_unpacked
00460                      (OSMPBF__Relation *message,
00461                       ProtobufCAllocator *allocator);
00462 /* --- per-message closures --- */
00463 
00464 typedef void (*OSMPBF__HeaderBlock_Closure)
00465                  (const OSMPBF__HeaderBlock *message,
00466                   void *closure_data);
00467 typedef void (*OSMPBF__HeaderBBox_Closure)
00468                  (const OSMPBF__HeaderBBox *message,
00469                   void *closure_data);
00470 typedef void (*OSMPBF__PrimitiveBlock_Closure)
00471                  (const OSMPBF__PrimitiveBlock *message,
00472                   void *closure_data);
00473 typedef void (*OSMPBF__PrimitiveGroup_Closure)
00474                  (const OSMPBF__PrimitiveGroup *message,
00475                   void *closure_data);
00476 typedef void (*OSMPBF__StringTable_Closure)
00477                  (const OSMPBF__StringTable *message,
00478                   void *closure_data);
00479 typedef void (*OSMPBF__Info_Closure)
00480                  (const OSMPBF__Info *message,
00481                   void *closure_data);
00482 typedef void (*OSMPBF__DenseInfo_Closure)
00483                  (const OSMPBF__DenseInfo *message,
00484                   void *closure_data);
00485 typedef void (*OSMPBF__ChangeSet_Closure)
00486                  (const OSMPBF__ChangeSet *message,
00487                   void *closure_data);
00488 typedef void (*OSMPBF__Node_Closure)
00489                  (const OSMPBF__Node *message,
00490                   void *closure_data);
00491 typedef void (*OSMPBF__DenseNodes_Closure)
00492                  (const OSMPBF__DenseNodes *message,
00493                   void *closure_data);
00494 typedef void (*OSMPBF__Way_Closure)
00495                  (const OSMPBF__Way *message,
00496                   void *closure_data);
00497 typedef void (*OSMPBF__Relation_Closure)
00498                  (const OSMPBF__Relation *message,
00499                   void *closure_data);
00500 
00501 /* --- services --- */
00502 
00503 
00504 /* --- descriptors --- */
00505 
00506 extern const ProtobufCMessageDescriptor osmpbf__header_block__descriptor;
00507 extern const ProtobufCMessageDescriptor osmpbf__header_bbox__descriptor;
00508 extern const ProtobufCMessageDescriptor osmpbf__primitive_block__descriptor;
00509 extern const ProtobufCMessageDescriptor osmpbf__primitive_group__descriptor;
00510 extern const ProtobufCMessageDescriptor osmpbf__string_table__descriptor;
00511 extern const ProtobufCMessageDescriptor osmpbf__info__descriptor;
00512 extern const ProtobufCMessageDescriptor osmpbf__dense_info__descriptor;
00513 extern const ProtobufCMessageDescriptor osmpbf__change_set__descriptor;
00514 extern const ProtobufCMessageDescriptor osmpbf__node__descriptor;
00515 extern const ProtobufCMessageDescriptor osmpbf__dense_nodes__descriptor;
00516 extern const ProtobufCMessageDescriptor osmpbf__way__descriptor;
00517 extern const ProtobufCMessageDescriptor osmpbf__relation__descriptor;
00518 extern const ProtobufCEnumDescriptor    osmpbf__relation__member_type__descriptor;
00519 
00520 PROTOBUF_C_END_DECLS
00521 
00522 
00523 #endif  /* PROTOBUF_osmformat_2eproto__INCLUDED */