From 7c483e7f9f46d67579980db5e3424d9da702c92d Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Mon, 7 Jun 2021 19:19:00 -0400 Subject: Added the `config` struct. This data structure holds all of the variables set by the config file options. --- config.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config.h b/config.h index 036d7ca..b38a8ac 100644 --- a/config.h +++ b/config.h @@ -3,6 +3,7 @@ #include +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. */ -- cgit v1.2.3-13-gbd6f