12 #ifndef TIL_PROXYMANAGER_H
13 #define TIL_PROXYMANAGER_H
22 class til_ProxyCommand;
33 int readProxy (
const char *cop2_path,
TIL_Tile *into_tile,
35 void writeProxy(
const char *cop2_path,
TIL_Tile *from_tile,
38 void clearCop2Proxies(
const char *cop2_path);
39 void clearAllProxies();
44 void setProxyGeneration(
int on);
45 void setProxyDir(
const char *dir);
46 void setProxyLimit(
int on);
47 void setProxyDiskLimit(
int size);
48 void setProxyCrossPlatform(
int enable);
50 int getProxyGeneration()
const;
51 int getProxyLimit()
const;
52 int getProxyDiskLimit()
const;
53 const char *getProxyDir()
const;
54 int getProxyCrossPlatform()
const;
57 void launchManagerProcess();
58 static void * threadProcess(
void *
data);
61 void proxyManagerLoop();
64 int executeNextCommand();
67 void garbageCollect(
int limit);
70 void determineProxyState(
const char *proxy_dir);
75 void doClearCop2Proxies(
const char *path);
76 void doClearAllProxies();
80 int ensurePathExists(
const char *path);
82 void addProxyState(TIL_ProxyState *);
83 TIL_ProxyState * usedProxyState(TIL_ProxyState *);
84 void removeProxyState(TIL_ProxyState *);
95 int myProxyCrossPlatform;
103 int myTotalProxySize;
111 const char *myCurrentReadPath;
112 const char *myCurrentWritePath;
GLsizei const GLchar *const * path