new: support for local package files

This commit is contained in:
ngn
2024-08-06 04:44:42 +03:00
parent 73a1f997e6
commit 1219501aaa
9 changed files with 210 additions and 50 deletions

View File

@ -7,6 +7,7 @@
#include <stdbool.h>
#include <dirent.h>
#include <libgen.h>
#include <stdlib.h>
#include <string.h>
bool lm_pool_list_load(lm_pool_t *pool, char *dir){
@ -144,6 +145,8 @@ void lm_pool_list_free(lm_pool_t *pool){
while(NULL != cur){
prev = cur;
cur = cur->next;
lm_package_free(prev);
free(prev);
}
}