diff options
Diffstat (limited to 'include/outtacache.h')
-rw-r--r-- | include/outtacache.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/outtacache.h b/include/outtacache.h new file mode 100644 index 00000000..90756cde --- /dev/null +++ b/include/outtacache.h @@ -0,0 +1,28 @@ +#ifndef INCLUDE_OUTTACACHE_H +#define INCLUDE_OUTTACACHE_H + +#define CACHE_BUFSIZE (200*1024) +#define OC_HEADERLEN (sizeof(OCkey_t) + sizeof(int)) +#define OC_KEYLEN (sizeof(OCkey_t)) +#define OC_pidadd 10000000 +#define OC_msto 5111 +#define OC_mtos 5112 + +typedef struct { + pid_t pid; + char cacheid; +} OCkey_t; + +typedef struct { + OCkey_t key; + int length; + char buf[CACHE_BUFSIZE]; +} OCbuf_t; + + +typedef struct { + time_t mtime; + OCbuf_t data; +} OCstore_t; + +#endif |