new: seperate ctx init and new functions

This commit is contained in:
ngn
2024-08-04 15:24:37 +03:00
parent d2d6679060
commit 61ab7f66ac
3 changed files with 25 additions and 7 deletions

View File

@ -55,7 +55,8 @@ typedef bool (*lm_ctx_check_callback_t)(
/* ###############
## ctx stuff ##
############### */
bool lm_ctx_init(lm_ctx_t *ctx, char *root_dir, char *temp_dir, char *data_dir);
bool lm_ctx_init(lm_ctx_t *ctx);
bool lm_ctx_new(lm_ctx_t *ctx, char *root_dir, char *temp_dir, char *data_dir);
void lm_ctx_free(lm_ctx_t *ctx);
/* ####################