diff options
author | Volker Lendecke <vl@samba.org> | 2014-12-06 11:22:35 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-12-09 04:12:08 +0100 |
commit | d775c386e498d4c2062f8fc65f515f991d127dc1 (patch) | |
tree | 46bc6a9e8ec84b31d7a6f13138d8a6715a141423 /source3/lib/iov_buf.h | |
parent | 3a6a6f19410606a9028861ca95ac80d2651e2830 (diff) | |
download | samba-d775c386e498d4c2062f8fc65f515f991d127dc1.tar.gz samba-d775c386e498d4c2062f8fc65f515f991d127dc1.tar.xz samba-d775c386e498d4c2062f8fc65f515f991d127dc1.zip |
lib: Simplify iov_buf[len]
This makes iov_buf independent of talloc
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/lib/iov_buf.h')
-rw-r--r-- | source3/lib/iov_buf.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/lib/iov_buf.h b/source3/lib/iov_buf.h index a884bdbe0e..ec8290989a 100644 --- a/source3/lib/iov_buf.h +++ b/source3/lib/iov_buf.h @@ -22,8 +22,10 @@ #include <unistd.h> #include <talloc.h> +#include <stdint.h> ssize_t iov_buflen(const struct iovec *iov, int iovlen); -uint8_t *iov_buf(TALLOC_CTX *mem_ctx, const struct iovec *iov, int iovcnt); +ssize_t iov_buf(const struct iovec *iov, int iovcnt, + uint8_t *buf, size_t buflen); #endif |