source: subversion/applications/utils/mod_tile/daemon.h @ 29196

Last change on this file since 29196 was 28681, checked in by apmon, 7 years ago

[renderd] Some operating systems don't have the "daemon" function

Include a compatibility version of the daemon function for these cases

File size: 1.1 KB
Line 
1#ifndef DAEMON_H
2#define DEEMON_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8#ifndef HAVE_DAEMON
9    int daemon(int nochdir, int noclose);
10#endif
11
12#include <limits.h> /* for PATH_MAX */
13
14#include "protocol.h"
15
16#define INILINE_MAX 256
17#define MAX_SLAVES 5
18
19typedef struct {
20    char *socketname;
21    char *iphostname;
22    int ipport;
23    int num_threads;
24    char *tile_dir;
25    char *mapnik_plugins_dir;
26    char *mapnik_font_dir;
27    int mapnik_font_dir_recurse;
28    char * stats_filename;
29} renderd_config;
30
31typedef struct {
32    char xmlname[XMLCONFIG_MAX];
33    char xmlfile[PATH_MAX];
34    char xmluri[PATH_MAX];
35    char host[PATH_MAX];
36    char htcpip[PATH_MAX];
37    char tile_dir[PATH_MAX];
38} xmlconfigitem;
39
40typedef struct {
41    long noDirtyRender;
42    long noReqRender;
43    long noReqPrioRender;
44    long noReqBulkRender;
45    long noReqDroped;
46    long noZoomRender[MAX_ZOOM + 1];
47    long timeReqRender;
48    long timeReqPrioRender;
49    long timeReqBulkRender;
50    long timeZoomRender[MAX_ZOOM + 1];
51} stats_struct;
52
53void statsRenderFinish(int z, long time);
54void request_exit(void);
55
56#ifdef __cplusplus
57}
58#endif
59#endif
Note: See TracBrowser for help on using the repository browser.