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:
parent
1bf831c00f
commit
431f94725f
|
|
@ -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 &&
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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.
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue