Initial commit
[lnanohtmltiledmap.git] / config.default.h
blobf33556b5f15cadfe9717f9ba7857f6521788d7aa
1 #ifndef CONFIG_H
2 #define CONFIG_H
3 /* will pollute the global namespace */
4 #ifndef __ASSEMBLY__
5 #include <ulinux/compiler_types.h>
6 #include <ulinux/types.h>
7 /*============================================================================*/
8 #include "namespace/ulinux.h"
9 /*============================================================================*/
10 #endif /* __ASSEMBLY__ */
11 /* IPV4: without this, the code paths do default to IPv6 */
12 #define CONFIG_IPV4 1
14 * 16 bits value for the port (below 1024, must be root, that you must be for
15 * chroot anyway)
17 #define CONFIG_LISTENING_PORT 41293
18 #define CONFIG_IDLETIMER_TIMEOUT_SECONDS 4
19 /* zoom/x/y.png */
20 #define CONFIG_TILE_SVR "https://%c.tile.openstreetmap.org/%u/%u/%u.png"
21 #define CONFIG_TILE_PIXS_N_MAX 256.0
22 #ifndef __ASSEMBLY__
23 static u8 config_row_svrs[3] = {'a','b','c'}; /* 1 dns per row to share the load */
24 #endif
25 /* X='a'|'b'|'c', u32 for z x and y */
26 #define CONFIG_TILE_SVR_MAX "https://X.tile.openstreetmap.org/4294967295/4294967295/4294967295.png"
27 #define CONFIG_HORIZS_N_MAX 3
28 #define CONFIG_VERTS_N_MAX 3
29 #ifndef __ASSEMBLY__
30 /*============================================================================*/
31 #define CLEANUP
32 #include "namespace/ulinux.h"
33 #undef CLEANUP
34 /*============================================================================*/
35 #endif /* __ASSEMBLY__ */
36 #endif