summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-12-20 10:44:29 +0100
committerVolker Lendecke <vl@samba.org>2009-01-02 22:11:50 +0100
commitaed8c7bfcfb3c860758d39d476ca87ef9eda2b6d (patch)
tree9b7ce7682efe367adfd0bb12f41f2e480b26b34a /source3/include
parente000045f15665f1c5209f52bf5730bac5c14256b (diff)
downloadsamba-aed8c7bfcfb3c860758d39d476ca87ef9eda2b6d.tar.gz
samba-aed8c7bfcfb3c860758d39d476ca87ef9eda2b6d.tar.bz2
samba-aed8c7bfcfb3c860758d39d476ca87ef9eda2b6d.zip
packet.h API: The callback is now responsible to talloc_free() "buf"
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/packet.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/include/packet.h b/source3/include/packet.h
index 05974da8fc..03331da750 100644
--- a/source3/include/packet.h
+++ b/source3/include/packet.h
@@ -44,12 +44,14 @@ NTSTATUS packet_fd_read_sync(struct packet_context *ctx);
* Handle an incoming packet:
* Return False if none is available
* Otherwise return True and store the callback result in *status
+ * Callback must either talloc_move or talloc_free buf
*/
bool packet_handler(struct packet_context *ctx,
- bool (*full_req)(const DATA_BLOB *data,
+ bool (*full_req)(const uint8_t *buf,
+ size_t available,
size_t *length,
void *private_data),
- NTSTATUS (*callback)(const DATA_BLOB *data,
+ NTSTATUS (*callback)(uint8_t *buf, size_t length,
void *private_data),
void *private_data,
NTSTATUS *status);