Allow overriding the function that ships the request in the Samba 3
[amitay/samba.git] / source3 / include / client.h
index 9b564fc48e7fe65ebd077ab10c6d938cb435fdb4..86b4bee662854027d31ca9a338347aaf90b09961 100644 (file)
@@ -52,6 +52,7 @@ struct cli_pipe_auth_data {
 
        char *domain;
        char *user_name;
+       DATA_BLOB user_session_key;
 
        union {
                struct schannel_auth_struct *schannel_auth;
@@ -79,6 +80,11 @@ struct rpc_pipe_client {
        struct ndr_syntax_id abstract_syntax;
        struct ndr_syntax_id transfer_syntax;
 
+       NTSTATUS (*dispatch) (struct rpc_pipe_client *cli,
+                       TALLOC_CTX *mem_ctx,
+                       const struct ndr_interface_table *table,
+                       uint32_t opnum, void *r);
+
        char *desthost;
        char *srv_name_slash;
 
@@ -223,14 +229,16 @@ struct cli_state {
        struct cli_request *outstanding_requests;
 
        /**
-        * The place to build up the list of chained requests.
+        * The place to build up the list of chained requests. In CIFS, a
+        * single cli_request corresponds to a MID and can serve more than one
+        * chained async_req.
         */
        struct cli_request *chain_accumulator;
 };
 
 typedef struct file_info {
        struct cli_state *cli;
-       SMB_BIG_UINT size;
+       uint64_t size;
        uint16 mode;
        uid_t uid;
        gid_t gid;