aboutsummaryrefslogtreecommitdiff
path: root/gmid.h
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-06-29 12:17:40 +0000
committerOmar Polo <op@omarpolo.com>2021-06-29 12:17:40 +0000
commit3b21cca385c403247960cfe9385dda1d56f28670 (patch)
tree341ea2e3cad32b3853c9fa182d0cdfd68404d583 /gmid.h
parentfafc6849577c9374ee6acb8ae7f30104464bb08e (diff)
allow to define macros in the config file
Macros can be defined at the top of the configuration file: dir = "/var/gemini" cert = "/etc/keys" and re-used later, for example server "foo" { root "$dir/foo" # -> /var/gemini/foo cert "$cert/foo.pem" # -> /etc/keys/foo.pem }
Diffstat (limited to 'gmid.h')
-rw-r--r--gmid.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gmid.h b/gmid.h
index 34b210d..26ad06c 100644
--- a/gmid.h
+++ b/gmid.h
@@ -314,6 +314,7 @@ void drop_priv(void);
void yyerror(const char*, ...);
int parse_portno(const char*);
void parse_conf(const char*);
+int cmdline_symset(char *);
/* log.c */
void fatal(const char*, ...)