diff 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. */ |