diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-07 19:19:00 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2021-06-07 19:19:00 -0400 |
commit | 7c483e7f9f46d67579980db5e3424d9da702c92d (patch) | |
tree | 53eb2080b2029017ebf3d7a3cf9a7310993c3b80 /config.h | |
parent | 77b9052ac307ffcd15e5785668d704b5e46371d4 (diff) |
Added the `config` struct.
This data structure holds all of the variables set by
the config file options.
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -3,6 +3,7 @@ #include <stddef.h> +typedef struct config config; typedef struct config_opt config_opt; typedef union config_val config_val; typedef enum config_type config_type; @@ -16,6 +17,16 @@ enum config_type { TYPE_COUNT, }; +struct config { + char *git_root; /* Root of git server. */ + char *sock_type; /* Type of socket. */ + char *sock; /* Socket address. */ + int port; /* Listen port. */ + int merge_type; /* Merge type. */ + char *pr_root; /* Root of pull requests. */ + char *key_path; /* Path to maintainer authentication key file. */ +}; + struct config_opt { const char *name; /* Name of the config option. */ const char *desc; /* Description of the config option. */ |