diff mbox series

[08/13] channel API: add a put_file entry point

Message ID 20231120155459.45188-9-stefano.babic@swupdate.org
State Accepted
Headers show
Series Native Docker Support | expand

Commit Message

Stefano Babic Nov. 20, 2023, 3:54 p.m. UTC
Add an own entry point to upload large files, letting put to run POST
query or to upload just small amount of data.

Signed-off-by: Stefano Babic <stefano.babic@swupdate.org>
---
 include/channel.h | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/include/channel.h b/include/channel.h
index d44b810a..50237d17 100644
--- a/include/channel.h
+++ b/include/channel.h
@@ -25,6 +25,7 @@  struct channel {
 	channel_op_res_t (*get)(channel_t *this, void *data);
 	channel_op_res_t (*get_file)(channel_t *this, void *data);
 	channel_op_res_t (*put)(channel_t *this, void *data);
+	channel_op_res_t (*put_file)(channel_t *this, void *data);
 	char *(*get_redirect_url)(channel_t *this);
 	void *priv;
 };