From ba56a37e863d0f90e3e953047486905cfb959925 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sun, 21 Mar 2010 23:09:43 +0000 Subject: Add support for environment variable expansion This patch teaches cgit to expand environment variables in certain cgitrc option values (cache_root, scan-path, include) plus when finding the location of cgitrc itself. One use case for this feature is virtual hosting - e.g. by setting $CGIT_CONFIG='/etc/cgitrc/$HTTP_HOST' in httpd.conf, all virtual hosts automatically gets their own cgitrc. Signed-off-by: Lars Hjemli --- (limited to 'cgit.h') diff --git a/cgit.h b/cgit.h index cd4af72..568e0c0 100644 --- a/cgit.h +++ b/cgit.h @@ -296,4 +296,6 @@ extern int cgit_close_filter(struct cgit_filter *filter); extern int readfile(const char *path, char **buf, size_t *size); +extern char *expand_macros(const char *txt); + #endif /* CGIT_H */ -- cgit v0.9.0.2