From 380195f7cd5e57acf2c1cf2bc41069e6b0b979ed Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Thu, 17 Sep 2026 19:55:36 +0200 Subject: Initial commit: daemon, clients, docs, Docker deploy pipeline --- src/config.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/config.h (limited to 'src/config.h') diff --git a/src/config.h b/src/config.h new file mode 100644 index 0000000..dad9737 --- /dev/null +++ b/src/config.h @@ -0,0 +1,31 @@ +#ifndef BOKF_CONFIG_H +#define BOKF_CONFIG_H + +#include + +struct config { + char *socket_path; + char *db_path; + char *backup_dir; + char *export_dir; + char *tcp_addr; + int tcp_enabled; + int log_level; + int allow_org_create; + int audit_reads; + char *synchronous; + char *chart_k2_file; + char *chart_k3_file; + long session_ttl; + long max_line_bytes; + long max_attachment_bytes; +}; + +extern struct config g_cfg; + +void config_defaults(void); +int config_load_file(const char *path, char **err); +void config_apply_env(void); +void config_free(void); + +#endif -- cgit v1.3