diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libcli/composite/composite.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/libcli/composite/composite.c b/source4/libcli/composite/composite.c index ba9b0673da..c4b771509f 100644 --- a/source4/libcli/composite/composite.c +++ b/source4/libcli/composite/composite.c @@ -26,6 +26,7 @@ #include "libcli/raw/libcliraw.h" #include "libcli/composite/composite.h" #include "lib/messaging/irpc.h" +#include "libcli/nbt/libnbt.h" /* block until a composite function has completed, then return the status @@ -156,3 +157,13 @@ void composite_continue_smb(struct composite_context *ctx, new_req->async.fn = continuation; new_req->async.private = private_data; } + +void composite_continue_nbt(struct composite_context *ctx, + struct nbt_name_request *new_req, + void (*continuation)(struct nbt_name_request *), + void *private_data) +{ + if (composite_nomem(new_req, ctx)) return; + new_req->async.fn = continuation; + new_req->async.private = private_data; +} |