Fix pcl-r0j: rename psync_delete_sync_by_folderid to pfolder_delete_sync_by_id (#361)

Renamed psync_delete_sync_by_folderid to pfolder_delete_sync_by_id to align with pfolder API naming conventions. Updated all callers.

Fixes #100

Co-authored-by: Levi Neely <lkn@darkstar.example.net>
This commit is contained in:
Levi Neely 2026-03-07 19:54:21 +01:00 committed by GitHub
parent 1bf831c00f
commit 431f94725f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -1079,9 +1079,9 @@ static void process_modifyfolder(const binresult *entry) {
if ((oldflags & PSYNC_FOLDER_FLAG_BACKUP_ROOT) != 0 && if ((oldflags & PSYNC_FOLDER_FLAG_BACKUP_ROOT) != 0 &&
(flags & PSYNC_FOLDER_FLAG_BACKUP_ROOT) == 0) { (flags & PSYNC_FOLDER_FLAG_BACKUP_ROOT) == 0) {
pdbg_logf(D_NOTICE, "Stop backup root"); pdbg_logf(D_NOTICE, "Stop backup root");
psync_delete_sync_by_folderid(folderid); pfolder_delete_sync_by_id(folderid);
// prun_thread1("psync_async_backup_delete", // prun_thread1("psync_async_backup_delete",
// psync_delete_sync_by_folderid, folderid); // pfolder_delete_sync_by_id, folderid);
} }
if ((oldflags & PSYNC_FOLDER_FLAG_BACKUP_DEVICE) != 0 && if ((oldflags & PSYNC_FOLDER_FLAG_BACKUP_DEVICE) != 0 &&

View File

@ -2544,7 +2544,7 @@ void psync_async_ui_callback(void *ptr) {
} }
} }
int psync_delete_sync_by_folderid(psync_folderid_t fId) { int pfolder_delete_sync_by_id(psync_folderid_t fId) {
psync_sql_res *sqlRes; psync_sql_res *sqlRes;
psync_uint_row row; psync_uint_row row;
psync_syncid_t syncId; psync_syncid_t syncId;

View File

@ -726,7 +726,7 @@ char *get_backup_root_name();
// Asynchronous delete of local sync in thred, if a local sync with the folder // Asynchronous delete of local sync in thred, if a local sync with the folder
// id passed in fId parameter exists in the local DB // id passed in fId parameter exists in the local DB
int psync_delete_sync_by_folderid(psync_folderid_t fId); int pfolder_delete_sync_by_id(psync_folderid_t fId);
// Called when stop device is exceuted in the web, will delete the localy stored // Called when stop device is exceuted in the web, will delete the localy stored
// device id in order to create new one if backup is started again. // device id in order to create new one if backup is started again.

View File

@ -624,7 +624,7 @@ int clib::pclsync_lib::remove_sync_folder(const char *fid) {
std::cerr << "Folder ID out of range: " << fid << std::endl; std::cerr << "Folder ID out of range: " << fid << std::endl;
return -1; return -1;
} }
return psync_delete_sync_by_folderid(folderid); return pfolder_delete_sync_by_id(folderid);
} }
// path is not used // path is not used