summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/include/structs.h1
-rw-r--r--source4/libcli/composite/composite.c9
2 files changed, 10 insertions, 0 deletions
diff --git a/source4/include/structs.h b/source4/include/structs.h
index a846b39bcf..c461c6443f 100644
--- a/source4/include/structs.h
+++ b/source4/include/structs.h
@@ -338,6 +338,7 @@ struct param;
struct socket_context;
struct smbcli_socket;
+struct smbcli_request;
struct _krb5_krb_auth_data;
diff --git a/source4/libcli/composite/composite.c b/source4/libcli/composite/composite.c
index c78d039905..ba9b0673da 100644
--- a/source4/libcli/composite/composite.c
+++ b/source4/libcli/composite/composite.c
@@ -147,3 +147,12 @@ void composite_continue_irpc(struct composite_context *ctx,
new_req->async.private = private_data;
}
+void composite_continue_smb(struct composite_context *ctx,
+ struct smbcli_request *new_req,
+ void (*continuation)(struct smbcli_request *),
+ void *private_data)
+{
+ if (composite_nomem(new_req, ctx)) return;
+ new_req->async.fn = continuation;
+ new_req->async.private = private_data;
+}