From 534a492f2c0bcceac52a287b03dc1ff5eb0b0763 Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Mon, 9 Jun 2025 15:03:19 -0500 Subject: Trim more fat, add some doxygen markup to the threadpool functions --- src/scanner.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 src/scanner.c (limited to 'src/scanner.c') diff --git a/src/scanner.c b/src/scanner.c deleted file mode 100644 index 2ffbea4..0000000 --- a/src/scanner.c +++ /dev/null @@ -1,37 +0,0 @@ -#define _GNU_SOURCE -#include "shared.h" - -#include "scanner.h" - -#include -#include -#include -#include -#include - -// dlinkedlist * scandirlist(const char * const dir, int (*selector)(const struct dirent *), int (*cmp)(const struct dirent **, const struct dirent **)) { -// if(!dir || selector == NULL || cmp == NULL) ERRRET(EINVAL, NULL); - -// struct dirent **namelist = NULL; -// dlinkedlist *list = NULL; -// int numentries = -1; - -// if((numentries = scandir(dir, &namelist, selector, cmp)) < 0) -// ERRRET(errno, NULL); - -// list = dlinkedlist_init(); -// for(int i = 0; i < numentries; i++) -// if(dlinkedlist_append(list, (void *)(namelist[i]), free) < 0) { -// dlinkedlist_free(list); -// for(int j = i; j < numentries; j++) -// free(namelist[j]); - -// free(namelist); -// ERRRET(errno, NULL); -// } -// free(namelist); - -// return list; -// } - -// TODO: Rewrite this to use the threadpool. Each newly scanned file should be pushed onto the threadpool as an encryption task \ No newline at end of file -- cgit v1.2.3