summaryrefslogtreecommitdiffstatshomepage
Commit message (Expand)AuthorAge
...
* | Add and use a common readfile() functionLars Hjemli2009-08-18
* | Merge branch 'stable'Lars Hjemli2009-08-18
|\|
| * truncate buffer before reading empty filesSimon Arlott2009-08-18
* | Merge
/*
 * Since git has it's own cache.h which we include,
 * lets test on CGIT_CACHE_H to avoid confusion
 */

#ifndef CGIT_CACHE_H
#define CGIT_CACHE_H

typedef void (*cache_fill_fn)(void *cbdata);


/* Print cached content to stdout, generate the content if necessary.
 *
 * Parameters
 *   size    max number of cache files
 *   path    directory used to store cache files
 *   key     the key used to lookup cache files
 *   ttl     max cache time in seconds for this key
 *   fn      content generator function for this key
 *   cbdata  user-supplied data to the content generator function
 *
 * Return value
 *   0 indicates success, everyting else is an error
 */
extern int cache_process(int size, const char *path, const char *key, int ttl,
			 cache_fill_fn fn, void *cbdata);


/* List info about all cache entries on stdout */
extern int cache_ls(const char *path);

/* Print a message to stdout */
extern void cache_log(const char *format, ...);

#endif /* CGIT_CACHE_H */
cgit_{open|close}_filter() to execute compressorsLars Hjemli2009-07-31 | * | Add generic filter/plugin infrastructureLars Hjemli2009-07-31 * | | Merge branch 'lh/mimetypes'Lars Hjemli2009-08-09 |\ \ \ | * | | Add support for mime type registration and lookupLars Hjemli2009-07-25 | |/ / * | | Expose file extension in tree lists as class to allow nicer tree stylingMartin Szulecki2009-08-08 * | | Introduce noplainemail option to hide email adresses from spambotsMartin Szulecki2009-08-08 |/ / * | Merge branch 'lh/embedded'Lars Hjemli2009-07-25 |\ \ | * | cgit.h: keep config flags sortedLars Hjemli2009-07-25 | * | cgitrc.5.txt: document 'embedded' and 'noheader'Lars Hjemli2009-07-25 | * | Add support for 'noheader' optionLars Hjemli2009-07-25 | * | Add support for an 'embedded' option in cgitrcLars Hjemli2009-02-02 * | | Merge branch 'ml/head-include'Lars Hjemli2009-07-25 |\ \ \ | * | | cgitrc.5.txt: document 'head-include'Lars Hjemli2009-07-25 | * | | Add head-include configuration option.Mark Lodato2009-06-07 * | | | Merge branch 'plain-etag'Lars Hjemli2009-07-25 |\ \ \ \ | * | | | Add support for HEAD requestsLars Hjemli2009-02-19 | * | | | Add support for ETag in 'plain' viewLars Hjemli2009-02-19 * | | | | Merge branch 'rt/plain-binary'Lars Hjemli2009-07-25 |\ \ \ \ \ | * | | | | ui-blob: return 'application/octet-stream' for binary blobsLars Hjemli2009-07-25 | * | | | | ui-plain: Return 'application/octet-stream' for binary files.Remko Tronçon2009-07-25 | | |_|_|/ | |/| | | * | | | | Merge branch 'do/https'Lars Hjemli2009-07-25 |\ \ \ \ \ | * | | | | use cgit_httpscheme() for atom feedDiego Ongaro2009-06-11 | * | | | | add cgit_httpscheme() -> http:// or https://Diego Ongaro2009-06-11 | | |_|/ / | |/| | |