lib: drop, or replace sendf.h with curl_trc.h where possible

- replace `sendf.h` with `curl_trc.h` where it was included just for it.
- drop unused `curl_trc.h` includes.
- easy: delete obsolete comment about `send.h` include reason.

Also:
- move out `curl_trc.h` include from `sendf.h` and include it directly
  in users, where not done already. To flatten the include tree and
  to less rely on indirect includes.
- stop including `sendf.h` from other headers, replace it with forward
  declaration of `Curl_easy`, as done already elsewhere.

Verified with an all non-unity CI run.

Closes #20061
This commit is contained in:
Viktor Szakats 2025-12-21 02:40:10 +01:00
parent 4df7269ba8
commit e8415a8296
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
87 changed files with 82 additions and 60 deletions

View file

@ -26,8 +26,6 @@
#include "curl_setup.h"
#include "curl_trc.h"
/**
* Type of data that is being written to the client (application)
* - data written can be either BODY or META data
@ -55,6 +53,7 @@
/* Forward declarations */
struct Curl_creader;
struct Curl_cwriter;
struct Curl_easy;
/**
* Write `len` bytes at `prt` to the client. `type` indicates what