summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-06-07 19:19:00 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-06-07 19:19:00 -0400
commit7c483e7f9f46d67579980db5e3424d9da702c92d (patch)
tree53eb2080b2029017ebf3d7a3cf9a7310993c3b80 /config.h
parent77b9052ac307ffcd15e5785668d704b5e46371d4 (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.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/config.h b/config.h
index 036d7ca..b38a8ac 100644
--- a/config.h
+++ b/config.h
@@ -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. */