From 0c34b53384b5e9bdd5d63b51daa4b3596a3e55e7 Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Sat, 1 Mar 2025 21:45:34 +0100 Subject: [PATCH] pscanner.c => psuggest namespace --- pclsync/{pscanner.c => psuggest.c} | 4 ++-- pclsync/{pscanner.h => psuggest.h} | 4 ++-- pclsync/psynclib.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) rename pclsync/{pscanner.c => psuggest.c} (98%) rename pclsync/{pscanner.h => psuggest.h} (94%) diff --git a/pclsync/pscanner.c b/pclsync/psuggest.c similarity index 98% rename from pclsync/pscanner.c rename to pclsync/psuggest.c index b9695d5..c848b2e 100644 --- a/pclsync/pscanner.c +++ b/pclsync/psuggest.c @@ -29,7 +29,7 @@ DAMAGE. */ -#include "pscanner.h" +#include "psuggest.h" #include "pfile.h" #include "plibs.h" #include "plist.h" @@ -187,7 +187,7 @@ static void free_folder(scan_folder *f) { psync_free(f); } -psuggested_folders_t *psync_scanner_scan_folder(const char *path) { +psuggested_folders_t *psuggest_scan_folder(const char *path) { scan_folder *f; psync_list suggestions; suggested_folder *s, *sf[PSYNC_SCANNER_MAX_SUGGESTIONS]; diff --git a/pclsync/pscanner.h b/pclsync/psuggest.h similarity index 94% rename from pclsync/pscanner.h rename to pclsync/psuggest.h index dbd5429..15e7a11 100644 --- a/pclsync/pscanner.h +++ b/pclsync/psuggest.h @@ -32,8 +32,8 @@ #ifndef _PSYNC_SCANNER_H #define _PSYNC_SCANNER_H -#include "psynclib.h" +#include "pfoldersync.h" -psuggested_folders_t *psync_scanner_scan_folder(const char *path); +psuggested_folders_t *psuggest_scan_folder(const char *path); #endif diff --git a/pclsync/psynclib.c b/pclsync/psynclib.c index 0f0abb1..3471d48 100644 --- a/pclsync/psynclib.c +++ b/pclsync/psynclib.c @@ -70,7 +70,7 @@ #include "ppath.h" #include "ppathstatus.h" #include "prun.h" -#include "pscanner.h" +#include "psuggest.h" #include "psettings.h" #include "pshm.h" #include "pssl.h" @@ -1028,7 +1028,7 @@ psuggested_folders_t *psync_get_sync_suggestions() { psuggested_folders_t *ret; home = ppath_home(); if (likely_log(home)) { - ret = psync_scanner_scan_folder(home); + ret = psuggest_scan_folder(home); psync_free(home); return ret; } else {