s3:libsmb: get rid of cli_has_async_calls
[mat/samba.git] / source3 / libsmb / clisymlink.c
index 9e21d1b88372ad0080c6de29b142121dbe0aeb78..d0a2deb35549c1d707f6038b47c97bc147532121 100644 (file)
@@ -26,6 +26,7 @@
 #include "trans2.h"
 #include "libcli/security/secdesc.h"
 #include "libcli/security/security.h"
+#include "../libcli/smb/smbXcli_base.h"
 
 struct cli_symlink_state {
        struct tevent_context *ev;
@@ -204,7 +205,7 @@ NTSTATUS cli_symlink(struct cli_state *cli, const char *oldname,
        struct tevent_req *req;
        NTSTATUS status = NT_STATUS_NO_MEMORY;
 
-       if (cli_has_async_calls(cli)) {
+       if (smbXcli_conn_has_async_calls(cli->conn)) {
                status = NT_STATUS_INVALID_PARAMETER;
                goto fail;
        }
@@ -378,7 +379,7 @@ NTSTATUS cli_readlink(struct cli_state *cli, const char *fname,
        struct tevent_req *req;
        NTSTATUS status = NT_STATUS_NO_MEMORY;
 
-       if (cli_has_async_calls(cli)) {
+       if (smbXcli_conn_has_async_calls(cli->conn)) {
                status = NT_STATUS_INVALID_PARAMETER;
                goto fail;
        }