update: add pool loaded variable for better sync operation

This commit is contained in:
ngn
2024-07-13 14:08:18 +03:00
parent 21b49651db
commit 0ae3ffd929
6 changed files with 30 additions and 8 deletions

View File

@ -86,10 +86,10 @@ bool lm_ctx_install(
bool lm_ctx_remove(
lm_ctx_t *ctx, lm_pkg_t *pkg, lm_ctx_remove_callback_t callback, void *data); // removes a single package
bool lm_ctx_check(
lm_ctx_t *ctx, lm_pkg_t *pkg, lm_ctx_check_callback_t callback, void *data); // checks a single package
bool lm_ctx_sync(lm_ctx_t *ctx, bool do_update, lm_ctx_sync_callback_t callback, void *data); // syncs all the pools
void lm_ctx_ping(lm_ctx_t *ctx, lm_ctx_ping_callback_t callback, void *data); // pings all the pools
bool lm_ctx_serve(lm_ctx_t *ctx, char *addr, uint8_t threads); // serves all the pools
lm_ctx_t *ctx, lm_pkg_t *pkg, lm_ctx_check_callback_t callback, void *data); // checks a single package
size_t lm_ctx_sync(lm_ctx_t *ctx, bool do_update, lm_ctx_sync_callback_t callback, void *data); // syncs all the pools
void lm_ctx_ping(lm_ctx_t *ctx, lm_ctx_ping_callback_t callback, void *data); // pings all the pools
bool lm_ctx_serve(lm_ctx_t *ctx, char *addr, uint8_t threads); // serves all the pools
/* ####################
## pool fucntions ##

View File

@ -46,6 +46,6 @@ typedef struct lm_pool {
lm_pool_path_t paths;
lm_url_t url;
lm_pkg_t *pkg;
bool available;
char *name;
bool available, loaded;
} lm_pool_t;