Add osmpbf.h

The idea is that this file can be included and will include all needed other
files and contain some definitions. Not used yet, though.
This commit is contained in:
Jochen Topf 2011-06-01 14:40:24 +02:00
parent d383d89f9a
commit 6554a40cdf
2 changed files with 21 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
src/*.pb.h
src/*.pb.o
src/libosmpbf.a
*.swp

20
src/osmpbf.h Normal file
View File

@ -0,0 +1,20 @@
#ifndef OSMPBF_H
#define OSMPBF_H
// this describes the low-level blob storage
#include <osmpbf/fileformat.pb.h>
// this describes the high-level OSM objects
#include <osmpbf/osmformat.pb.h>
namespace osmpbf {
// the maximum size of a blob header in bytes
const int max_blob_header_size = 64 * 1024;
// the maximum size of a blob in bytes
const int max_uncompressed_blob_size = 32 * 1024 * 1024;
}
#endif // OSMPBF_H