mirror of
https://github.com/openstreetmap/mod_tile.git
synced 2025-08-01 07:43:30 +00:00

Also make a slightly cleaner extraction. This hopefully has a couple of advantages: 1) The code should now be a bit cleaner 2) It makes testing the queueing code easier 3) In future it might be possible to have a separate queue per style allowing e.g. to perform fair queueing between styles.
36 lines
741 B
C
36 lines
741 B
C
#ifndef GEN_TILE_H
|
|
#define GEN_TILE_H
|
|
|
|
#include "protocol.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define HTCP_EXPIRE_CACHE 1
|
|
#define HTCP_EXPIRE_CACHE_PORT "4827"
|
|
|
|
enum queueEnum {queueRequest, queueRequestPrio, queueRequestBulk, queueDirty, queueRender, queueDuplicate};
|
|
|
|
struct item {
|
|
struct item *next;
|
|
struct item *prev;
|
|
struct protocol req;
|
|
int mx, my;
|
|
int fd;
|
|
struct item *duplicates;
|
|
enum queueEnum inQueue;
|
|
};
|
|
|
|
//int render(Map &m, int x, int y, int z, const char *filename);
|
|
void *render_thread(void *);
|
|
struct item *fetch_request(void);
|
|
void delete_request(struct item *item);
|
|
void render_init(const char *plugins_dir, const char* font_dir, int font_recurse);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|