source: subversion/applications/utils/mod_tile/protocol.h @ 13125

Last change on this file since 13125 was 12950, checked in by twain, 11 years ago

mod_tile: New apache directives and options for multiple tile sets

File size: 854 bytes
Line 
1#ifndef PROTOCOL_H
2#define PROTOCOL_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8/* Protocol between client and render daemon
9 *
10 * ver = 2;
11 *
12 * cmdRender(z,x,y,xmlconfig), response: {cmdDone(z,x,y), cmdBusy(z,x,y)}
13 * cmdDirty(z,x,y,xmlconfig), no response
14 *
15 * A client may not bother waiting for a response if the render daemon is too slow
16 * causing responses to get slightly out of step with requests.
17 */
18#define TILE_PATH_MAX (256)
19#define PROTO_VER (2)
20#define RENDER_SOCKET "/tmp/osm-renderd"
21#define XMLCONFIG_MAX 41
22
23enum protoCmd { cmdIgnore, cmdRender, cmdDirty, cmdDone, cmdNotDone };
24
25struct protocol {
26    int ver;
27    enum protoCmd cmd;
28    int x;
29    int y;
30    int z;
31    char xmlname[XMLCONFIG_MAX];
32};
33
34struct protocol_v1 {
35    int ver;
36    enum protoCmd cmd;
37    int x;
38    int y;
39    int z;
40};
41
42#ifdef __cplusplus
43}
44#endif
45#endif
Note: See TracBrowser for help on using the repository browser.