diff options
| author | Anders Betts <anders.betts@gmail.com> | 2026-09-17 19:55:36 +0200 |
|---|---|---|
| committer | Anders Betts <anders.betts@gmail.com> | 2026-09-17 19:55:36 +0200 |
| commit | 380195f7cd5e57acf2c1cf2bc41069e6b0b979ed (patch) | |
| tree | 32a88fb22a7fbe8f1fd5c105156d1f928c93950d /src/config.h | |
| download | bokf-0.1.0.tar.gz bokf-0.1.0.zip | |
Initial commit: daemon, clients, docs, Docker deploy pipelinev0.1.0
Diffstat (limited to 'src/config.h')
| -rw-r--r-- | src/config.h | 31 |
1 files changed, 31 insertions, 0 deletions
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 <stddef.h> + +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 |
