Project is published.

This commit is contained in:
Schmidt Peter
2026-05-21 14:27:40 +02:00
committed by GitHub
commit 65e7c86424
24 changed files with 1793 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
#ifndef CONFIG_H
#define CONFIG_H
#include <stdbool.h>
#include <stddef.h>
#define CFG_MAX 512
typedef struct {
char git_url[CFG_MAX];
char git_user[256];
char git_token[256];
char git_password[256];
char default_target[128];
char clone_dir[CFG_MAX];
bool log_enabled;
char log_dir[CFG_MAX];
} GConfig;
void config_defaults(GConfig *cfg);
int config_load(GConfig *cfg, const char *path);
int config_save(const GConfig *cfg, const char *path);
int config_init(const char *path, bool force);
void config_show(const GConfig *cfg);
void config_get_path(char *out, size_t n);
char *expand_tilde(const char *in, char *out, size_t n);
#endif /* CONFIG_H */