]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Revert "Remove namedpipe_transact fn pointer from smb_np_struct"
authorVolker Lendecke <vl@samba.org>
Fri, 25 Apr 2008 14:42:15 +0000 (16:42 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 25 Apr 2008 14:42:15 +0000 (16:42 +0200)
This reverts commit d1f82b7e67a791e19d08c682b607d82ae649feb4.

source/include/ntdomain.h

index 7bd5afe821c62ca2195936cc3b7487082cf9c15b..74a59443c8f9b90904dcacec3bc11ff8239b0e8c 100644 (file)
@@ -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,