s3:libsmb: get rid of cli_smb_req_*,cli_smb_wct_ofs,cli_smb_chain_send
[kai/samba.git] / source3 / libsmb / async_smb.c
index 721ac9bfe4b96a3f9c1213d750124cff8f23b716..e30435a225bc4228fd26ed967105b9f59d342744 100644 (file)
 #include "async_smb.h"
 #include "../libcli/smb/smbXcli_base.h"
 
-void cli_smb_req_unset_pending(struct tevent_req *req)
-{
-       smbXcli_req_unset_pending(req);
-}
-
-bool cli_smb_req_set_pending(struct tevent_req *req)
-{
-       return smbXcli_req_set_pending(req);
-}
-
-/*
- * Fetch a smb request's mid. Only valid after the request has been sent by
- * cli_smb_req_send().
- */
-uint16_t cli_smb_req_mid(struct tevent_req *req)
-{
-       return smb1cli_req_mid(req);
-}
-
-void cli_smb_req_set_mid(struct tevent_req *req, uint16_t mid)
-{
-       smb1cli_req_set_mid(req, mid);
-}
-
-uint32_t cli_smb_req_seqnum(struct tevent_req *req)
-{
-       return smb1cli_req_seqnum(req);
-}
-
-void cli_smb_req_set_seqnum(struct tevent_req *req, uint32_t seqnum)
-{
-       smb1cli_req_set_seqnum(req, seqnum);
-}
-
 struct cli_smb_req_state {
        struct cli_state *cli;
        uint8_t smb_command;
@@ -117,7 +83,7 @@ struct tevent_req *cli_smb_req_create(TALLOC_CTX *mem_ctx,
                additional_flags |= FLAG_CASELESS_PATHNAMES;
        }
 
-       if ((cli_state_capabilities(cli) & CAP_DFS) && cli->dfsroot) {
+       if ((smb1cli_conn_capabilities(cli->conn) & CAP_DFS) && cli->dfsroot) {
                additional_flags2 |= FLAGS2_DFS_PATHNAMES;
        }
 
@@ -141,11 +107,6 @@ struct tevent_req *cli_smb_req_create(TALLOC_CTX *mem_ctx,
        return state->req;
 }
 
-NTSTATUS cli_smb_req_send(struct tevent_req *req)
-{
-       return smb1cli_req_chain_submit(&req, 1);
-}
-
 struct tevent_req *cli_smb_send(TALLOC_CTX *mem_ctx,
                                struct tevent_context *ev,
                                struct cli_state *cli,
@@ -180,7 +141,7 @@ struct tevent_req *cli_smb_send(TALLOC_CTX *mem_ctx,
                additional_flags |= FLAG_CASELESS_PATHNAMES;
        }
 
-       if ((cli_state_capabilities(cli) & CAP_DFS) && cli->dfsroot) {
+       if ((smb1cli_conn_capabilities(cli->conn) & CAP_DFS) && cli->dfsroot) {
                additional_flags2 |= FLAGS2_DFS_PATHNAMES;
        }
 
@@ -318,18 +279,3 @@ NTSTATUS cli_smb_recv(struct tevent_req *req,
 
        return status;
 }
-
-size_t cli_smb_wct_ofs(struct tevent_req **reqs, int num_reqs)
-{
-       return smb1cli_req_wct_ofs(reqs, num_reqs);
-}
-
-NTSTATUS cli_smb_chain_send(struct tevent_req **reqs, int num_reqs)
-{
-       return smb1cli_req_chain_submit(reqs, num_reqs);
-}
-
-bool cli_has_async_calls(struct cli_state *cli)
-{
-       return smbXcli_conn_has_async_calls(cli->conn);
-}