refactor(client): split reporting/scan/manifest out of client_send

Move the stats/progress reporting, scanner-preparation/scan helpers and
manifest/list/dry-run senders out of the ~3.9k-line client_send.c into
client_report.c, client_scan.c and client_manifest.c, sharing declarations
through the new internal client_send_internal.h.  client_send.c keeps the
transfer orchestration and is now ~2.1k lines.

Decompose the monolithic send_files into static phase helpers
(send_files_prepare/_prepare_delete/_run/_finalize/_cleanup) driven by a
single SendFilesState; ownership, ordering and exit codes are unchanged.

No behavior change.
This commit is contained in:
2026-09-22 13:34:55 +02:00
parent 07dfec629f
commit 4638030288
6 changed files with 2207 additions and 2040 deletions
+273 -2040
View File
File diff suppressed because it is too large Load Diff