diff options
Diffstat (limited to 'structs.h')
-rw-r--r-- | structs.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/structs.h b/structs.h new file mode 100644 index 0000000..e493c5f --- /dev/null +++ b/structs.h @@ -0,0 +1,25 @@ +typedef struct server_config{ + char *config_contents; + cJSON *config_parsed; + cJSON *log_enabled; + cJSON *log_file; + cJSON *bind_address; + cJSON *bind_port; + cJSON *server_password; + cJSON *cert_file; + cJSON *cert_key_file; + cJSON *webhooks_file; +} server_config_t; + +typedef struct webhooks_data{ + char *webhooks_config; + cJSON *webhooks_parsed; + cJSON *wh_exec_data; + cJSON *wh_command; + cJSON *wh_response; + char *wh_output; +} webhooks_data_t; + +typedef struct log_file{ + FILE *log_file; +} log_file_t; |