summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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. */