summaryrefslogtreecommitdiff
path: root/evbuffer-internal.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-03-10 23:24:14 -0500
committerNick Mathewson <nickm@torproject.org>2010-03-10 23:24:14 -0500
commitc8ac57f1f58358dfdb1030143ab043b6addd0c3c (patch)
treed6b7b554860ff9ea57d5099c766d085fff391ef5 /evbuffer-internal.h
parent2a6d2a1e4be261e071f5ddb95be183e172643916 (diff)
downloadlibevent-c8ac57f1f58358dfdb1030143ab043b6addd0c3c.tar.gz
Use last_with_data in place of previous_to_last
This actually makes some of the code a lot simpler. The only ones that actually used previous_to_last for anything were reserving and committing space.
Diffstat (limited to 'evbuffer-internal.h')
-rw-r--r--evbuffer-internal.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/evbuffer-internal.h b/evbuffer-internal.h
index ff599077..d59b6a36 100644
--- a/evbuffer-internal.h
+++ b/evbuffer-internal.h
@@ -238,8 +238,8 @@ void _evbuffer_chain_unpin(struct evbuffer_chain *chain, unsigned flag);
void _evbuffer_decref_and_unlock(struct evbuffer *buffer);
/** As evbuffer_expand, but does not guarantee that the newly allocated memory
- * is contiguous. Instead, it may be split across two chunks. */
-int _evbuffer_expand_fast(struct evbuffer *, size_t);
+ * is contiguous. Instead, it may be split across two or more chunks. */
+int _evbuffer_expand_fast(struct evbuffer *, size_t, int);
/** Helper: prepares for a readv/WSARecv call by expanding the buffer to
* hold enough memory to read 'howmuch' bytes in possibly noncontiguous memory.
@@ -248,7 +248,7 @@ int _evbuffer_expand_fast(struct evbuffer *, size_t);
* Returns the number of vecs used.
*/
int _evbuffer_read_setup_vecs(struct evbuffer *buf, ev_ssize_t howmuch,
- struct evbuffer_iovec *vecs, struct evbuffer_chain **chainp, int exact);
+ struct evbuffer_iovec *vecs, int n_vecs, struct evbuffer_chain **chainp, int exact);
/* Helper macro: copies an evbuffer_iovec in ei to a win32 WSABUF in i. */
#define WSABUF_FROM_EVBUFFER_IOV(i,ei) do { \