diff mbox series

[16/29] channel_curl: add optional pointer for callbacks

Message ID 20211011112156.44192-17-sbabic@denx.de
State Changes Requested
Headers show
Series DELTA Update | expand

Commit Message

Stefano Babic Oct. 11, 2021, 11:21 a.m. UTC
Channel callbacks pass as parameter the channel_data_t structure used to
set up the transfer. Add to this structure an optional pointer that cna
be used by the callbacks for own data.

Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 include/channel_curl.h | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/include/channel_curl.h b/include/channel_curl.h
index 456367d..7d1e892 100644
--- a/include/channel_curl.h
+++ b/include/channel_curl.h
@@ -79,4 +79,5 @@  typedef struct {
 	struct dict *headers_to_send;
 	struct dict *received_headers;
 	unsigned int max_download_speed;
+	void *user;
 } channel_data_t;