Now also parse new diffs
[handlerosm.git] / osmbinary / osmbinary.h
blobaa1d1780be5c88c167c2feb22f63c9e967be80d8
1 #include <time.h>
2 #include <stdio.h>
3 #include <sys/types.h>
4 #include <sys/stat.h>
5 #include <fcntl.h>
6 #include <unistd.h>
7 #include <string.h>
8 #include <stdlib.h>
10 typedef struct {
11 unsigned long id;
12 float lat, lon;
13 time_t stamp;
14 unsigned char userlen;
15 char *user;
16 } node_t;
18 typedef struct {
19 unsigned short int klen;
20 char *k;
21 unsigned short int vlen;
22 char *v;
23 } tag_t;
25 typedef struct {
26 unsigned long id;
27 } nd_t;
29 typedef struct {
30 unsigned long id;
31 time_t stamp;
32 unsigned char userlen;
33 char *user;
34 } other_t;
36 typedef struct {
37 unsigned short int typelen;
38 char *type;
39 unsigned short int reflen;
40 char *ref;
41 unsigned short int rolelen;
42 char *role;
43 } member_t;
45 void writenode(int bi, node_t *this);
46 void writetag(int bi, tag_t *this);
47 void writeother(int bi, other_t *this, char type);
48 void writend(int bi, nd_t *this);
49 void writemember(int bi, member_t *this);