r14542: Remove librpc, libndr and libnbt from includes.h
[gd/samba-autobuild/.git] / source4 / libcli / smb2 / smb2_calls.h
index 03f65d947e4ed4caf5aff6600d0dd40c5ec8169c..b6f8fdef71e7450adc198f084217b40e7238632f 100644 (file)
@@ -20,6 +20,7 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
+#include "libcli/raw/interfaces.h"
 
 struct smb2_negprot {
        struct {
@@ -316,14 +317,12 @@ struct smb2_find {
        } out;
 };
 
-#define SMB2_TRANS_PIPE_FLAGS 0x0011c017 /* what are these? */
-
-struct smb2_trans {
+struct smb2_ioctl {
        struct {
                /* static body buffer 56 (0x38) bytes */
                /* uint16_t buffer_code;  0x39 = 0x38 + 1 */
                uint16_t _pad;
-               uint32_t pipe_flags;
+               uint32_t function;
                struct smb2_handle handle;
                /* uint32_t out_ofs; */
                /* uint32_t out_size; */
@@ -342,7 +341,7 @@ struct smb2_trans {
                /* static body buffer 48 (0x30) bytes */
                /* uint16_t buffer_code;  0x31 = 0x30 + 1 */
                uint16_t _pad;
-               uint32_t pipe_flags;
+               uint32_t function;
                struct smb2_handle handle;
                /* uint32_t in_ofs; */
                /* uint32_t in_size; */
@@ -363,3 +362,7 @@ struct smb2_flush {
                struct smb2_handle handle;
        } in;
 };
+
+struct cli_credentials;
+struct event_context;
+#include "libcli/smb2/smb2_proto.h"