Now also parse new diffs
[handlerosm.git] / handler_osm_get.h
bloba948bb60b1dc20bd9cda5d4d9fcfbebcea0f44b9
1 #include <cherokee/common-internal.h>
2 #include <cherokee/cherokee.h>
4 typedef enum {
5 OSM_FIND_FIRST = 0,
6 OSM_GPX_ID,
7 OSM_GPX_COMMAND,
8 OSM_NODE_ID,
9 OSM_NODE_COMMAND,
10 OSM_NODE_COMMAND_WAYS,
11 OSM_NODE_COMMAND_RELATIONS,
12 OSM_NODES,
13 OSM_NODES_PRE_PARSE,
14 OSM_WAY_ID,
15 OSM_WAY_COMMAND,
16 OSM_WAY_COMMAND_FULL,
17 OSM_WAY_COMMAND_RELATIONS,
18 OSM_WAYS_PRE_PARSE,
19 OSM_WAYS_SEARCH,
20 OSM_RELATION_ID,
21 OSM_RELATION_COMMAND,
22 OSM_RELATION_COMMAND_FULL,
23 OSM_RELATION_COMMAND_RELATIONS,
24 OSM_RELATIONS_PRE_PARSE,
25 OSM_RELATIONS_SEARCH,
26 OSM_NODE_XAPI_PARSE,
27 OSM_WAY_XAPI_PARSE,
28 OSM_RELATION_XAPI_PARSE,
29 OSM_ALL_XAPI_PARSE,
30 OSM_DONE
31 } osm_state_get_t;
33 ret_t get_object_by_id(cherokee_handler_osm_t *hdl, unsigned long int id, cherokee_buffer_t *buf, osm_state_get_t state);
34 ret_t cherokee_handler_osm_init_get (cherokee_handler_osm_t *hdl);