diff options
author | Volker Lendecke <vl@samba.org> | 2009-06-27 17:21:19 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-06-27 23:17:49 +0200 |
commit | 55dae4469c1c2ba571bfaeb93de7494480e0d72b (patch) | |
tree | 7015b2b309a6863879a55b3b18334c8e97c05947 /source3/include | |
parent | c687eb15d953006f1de1e02abad40365040a29f1 (diff) | |
download | samba-55dae4469c1c2ba571bfaeb93de7494480e0d72b.tar.gz samba-55dae4469c1c2ba571bfaeb93de7494480e0d72b.tar.bz2 samba-55dae4469c1c2ba571bfaeb93de7494480e0d72b.zip |
Add tstream_read_packet
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/includes.h | 1 | ||||
-rw-r--r-- | source3/include/proto.h | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h index b7ba70325c..c1aeaf95b5 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -611,6 +611,7 @@ struct smb_iconv_convenience *lp_iconv_convenience(void *lp_ctx); #include "event.h" #include "../lib/util/tevent_unix.h" #include "../lib/util/tevent_ntstatus.h" +#include "../lib/tsocket/tsocket.h" #include "../lib/util/data_blob.h" #include "../lib/util/time.h" diff --git a/source3/include/proto.h b/source3/include/proto.h index 3da1caf60b..07a749d849 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -1418,6 +1418,16 @@ struct tevent_req *getaddrinfo_send(TALLOC_CTX *mem_ctx, const char *service, const struct addrinfo *hints); int getaddrinfo_recv(struct tevent_req *req, struct addrinfo **res); +struct tevent_req *tstream_read_packet_send(TALLOC_CTX *mem_ctx, + struct tevent_context *ev, + struct tstream_context *stream, + size_t initial, + ssize_t (*more)(uint8_t *buf, + size_t buflen, + void *private_data), + void *private_data); +ssize_t tstream_read_packet_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx, + uint8_t **pbuf, int *perrno); /* The following definitions come from lib/util_str.c */ |