diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-05 16:39:39 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-05 16:39:39 -0400 |
commit | af56e08986b69cc74a6d3177e90986793efcffb7 (patch) | |
tree | 41d6872accdfda1bce36111a2f1d7d3dcc14b450 /config.c | |
parent | dc15c190b4f02448b39fe85778cc5278fca705e4 (diff) |
Start adding the config options.
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -3,6 +3,17 @@ #include <stdlib.h> #include <string.h> +static const config_opt config_opts[] = { + /* {"name", "desc", type, &var} */ + {"git-root", "Root of git server (can also be a url).", TYPE_STRING, git_root}, + {"socket-type", "Socket type to use (options: unix, network. default: network).", TYPE_STRING, sock_type}, + {"socket", "Path, IP address, or domain name of socket.", TYPE_STRING, sock}, + {"port", "Port to listen on (network socket only).", TYPE_INT, &sock_port}, + {"merge-type", "Type of merge (options: 0 = Merge individually, 1 = Merge into one).", TYPE_INT, &merge_type}, + {"pr-root", "Directory to store pull requests in.", TYPE_STRING, pr_root}, + {"key-file", "Path to file containing gpg/pgp public keys of each maintainer.", TYPE_STRING, key_path}, +}; + char *read_file(const char *filename, long *size) { /* Open the file. */ FILE *fp = fopen(filename, "r"); |