From: Volker Lendecke Date: Fri, 25 Apr 2008 14:42:15 +0000 (+0200) Subject: Revert "Remove namedpipe_transact fn pointer from smb_np_struct" X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=23666dc6ef39134cd1c402c5ff8184511eb5ced9;p=thirdparty%2Fsamba.git Revert "Remove namedpipe_transact fn pointer from smb_np_struct" This reverts commit d1f82b7e67a791e19d08c682b607d82ae649feb4. --- diff --git a/source/include/ntdomain.h b/source/include/ntdomain.h index 7bd5afe821c..74a59443c8f 100644 --- a/source/include/ntdomain.h +++ b/source/include/ntdomain.h @@ -325,6 +325,17 @@ typedef struct smb_np_struct { void * (*namedpipe_create)(const char *pipe_name, connection_struct *conn, uint16 vuid); + /* call to perform a write / read namedpipe transaction. + * TransactNamedPipe is weird: it returns whether there + * is more data outstanding to be read, and the + * caller is expected to take note and follow up with + * read requests. + */ + ssize_t (*namedpipe_transact)(void *np_state, + char *data, int len, + char *rdata, int rlen, + bool *pipe_outstanding); + /* call to perform a write namedpipe operation */ ssize_t (*namedpipe_write)(void * np_state,