summaryrefslogtreecommitdiff
path: root/structs.h
diff options
context:
space:
mode:
authorstderr64 <linuxwizard@voidnet.dy.fi>2023-08-17 21:19:10 +0300
committerstderr64 <linuxwizard@voidnet.dy.fi>2023-08-17 21:19:10 +0300
commitf484331cf374031f68566162f16ba00eedc1b7f0 (patch)
treec5632b5b7c574bf31642cdec12a409adfbabb31c /structs.h
downloadCWebHook-f484331cf374031f68566162f16ba00eedc1b7f0.tar.gz
CWebHook-f484331cf374031f68566162f16ba00eedc1b7f0.tar.zst
Recreated repository
Diffstat (limited to 'structs.h')
-rw-r--r--structs.h25
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;