update: refactor and rename

This commit is contained in:
ngn
2024-08-01 04:48:11 +03:00
parent 48d177965e
commit 4354fb8b89
30 changed files with 642 additions and 626 deletions

12
src/ctx.h Normal file
View File

@ -0,0 +1,12 @@
#pragma once
#include <stdbool.h>
typedef struct ctx {
char *home_path;
char *lock_path;
char *tmp_path;
char *dir_path;
} ctx_t;
bool ctx_init(ctx_t *ctx, char *homedir);
void ctx_free(ctx_t *ctx);