Navit SVN

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

00001 /* Generated by the protocol buffer compiler.  DO NOT EDIT! */
00002 
00003 #ifndef PROTOBUF_C_fileformat_2eproto__INCLUDED
00004 #define PROTOBUF_C_fileformat_2eproto__INCLUDED
00005 
00006 #include <google/protobuf-c/protobuf-c.h>
00007 
00008 PROTOBUF_C_BEGIN_DECLS
00009 
00010 
00011 typedef struct _OSMPBF__Blob OSMPBF__Blob;
00012 typedef struct _OSMPBF__BlobHeader OSMPBF__BlobHeader;
00013 
00014 
00015 /* --- enums --- */
00016 
00017 
00018 /* --- messages --- */
00019 
00020 struct  _OSMPBF__Blob
00021 {
00022   ProtobufCMessage base;
00023   protobuf_c_boolean has_raw;
00024   ProtobufCBinaryData raw;
00025   protobuf_c_boolean has_raw_size;
00026   int32_t raw_size;
00027   protobuf_c_boolean has_zlib_data;
00028   ProtobufCBinaryData zlib_data;
00029   protobuf_c_boolean has_lzma_data;
00030   ProtobufCBinaryData lzma_data;
00031   protobuf_c_boolean has_obsolete_bzip2_data PROTOBUF_C_DEPRECATED;
00032   ProtobufCBinaryData obsolete_bzip2_data PROTOBUF_C_DEPRECATED;
00033 };
00034 #define OSMPBF__BLOB__INIT \
00035  { PROTOBUF_C_MESSAGE_INIT (&osmpbf__blob__descriptor) \
00036     , 0,{0,NULL}, 0,0, 0,{0,NULL}, 0,{0,NULL}, 0,{0,NULL} }
00037 
00038 
00039 struct  _OSMPBF__BlobHeader
00040 {
00041   ProtobufCMessage base;
00042   char *type;
00043   protobuf_c_boolean has_indexdata;
00044   ProtobufCBinaryData indexdata;
00045   int32_t datasize;
00046 };
00047 #define OSMPBF__BLOB_HEADER__INIT \
00048  { PROTOBUF_C_MESSAGE_INIT (&osmpbf__blob_header__descriptor) \
00049     , NULL, 0,{0,NULL}, 0 }
00050 
00051 
00052 /* OSMPBF__Blob methods */
00053 void   osmpbf__blob__init
00054                      (OSMPBF__Blob         *message);
00055 size_t osmpbf__blob__get_packed_size
00056                      (const OSMPBF__Blob   *message);
00057 size_t osmpbf__blob__pack
00058                      (const OSMPBF__Blob   *message,
00059                       uint8_t             *out);
00060 size_t osmpbf__blob__pack_to_buffer
00061                      (const OSMPBF__Blob   *message,
00062                       ProtobufCBuffer     *buffer);
00063 OSMPBF__Blob *
00064        osmpbf__blob__unpack
00065                      (ProtobufCAllocator  *allocator,
00066                       size_t               len,
00067                       const uint8_t       *data);
00068 void   osmpbf__blob__free_unpacked
00069                      (OSMPBF__Blob *message,
00070                       ProtobufCAllocator *allocator);
00071 /* OSMPBF__BlobHeader methods */
00072 void   osmpbf__blob_header__init
00073                      (OSMPBF__BlobHeader         *message);
00074 size_t osmpbf__blob_header__get_packed_size
00075                      (const OSMPBF__BlobHeader   *message);
00076 size_t osmpbf__blob_header__pack
00077                      (const OSMPBF__BlobHeader   *message,
00078                       uint8_t             *out);
00079 size_t osmpbf__blob_header__pack_to_buffer
00080                      (const OSMPBF__BlobHeader   *message,
00081                       ProtobufCBuffer     *buffer);
00082 OSMPBF__BlobHeader *
00083        osmpbf__blob_header__unpack
00084                      (ProtobufCAllocator  *allocator,
00085                       size_t               len,
00086                       const uint8_t       *data);
00087 void   osmpbf__blob_header__free_unpacked
00088                      (OSMPBF__BlobHeader *message,
00089                       ProtobufCAllocator *allocator);
00090 /* --- per-message closures --- */
00091 
00092 typedef void (*OSMPBF__Blob_Closure)
00093                  (const OSMPBF__Blob *message,
00094                   void *closure_data);
00095 typedef void (*OSMPBF__BlobHeader_Closure)
00096                  (const OSMPBF__BlobHeader *message,
00097                   void *closure_data);
00098 
00099 /* --- services --- */
00100 
00101 
00102 /* --- descriptors --- */
00103 
00104 extern const ProtobufCMessageDescriptor osmpbf__blob__descriptor;
00105 extern const ProtobufCMessageDescriptor osmpbf__blob_header__descriptor;
00106 
00107 PROTOBUF_C_END_DECLS
00108 
00109 
00110 #endif  /* PROTOBUF_fileformat_2eproto__INCLUDED */