summaryrefslogtreecommitdiff
path: root/libs/libcurl/src/bufq.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libcurl/src/bufq.h')
-rw-r--r--libs/libcurl/src/bufq.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/libcurl/src/bufq.h b/libs/libcurl/src/bufq.h
index dc803bd9dc..71e2de8d82 100644
--- a/libs/libcurl/src/bufq.h
+++ b/libs/libcurl/src/bufq.h
@@ -183,6 +183,12 @@ CURLcode Curl_bufq_cwrite(struct bufq *q,
size_t *pnwritten);
/**
+ * Remove `len` bytes from the end of the buffer queue again.
+ * Returns CURLE_AGAIN if less than `len` bytes were in the queue.
+ */
+CURLcode Curl_bufq_unwrite(struct bufq *q, size_t len);
+
+/**
* Read buf from the start of the buffer queue. The buf is copied
* and the amount of copied bytes is returned.
* A return code of -1 indicates an error, setting `err` to the