diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-11-30 12:39:32 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:46:53 -0500 |
commit | 9d3b3e83953a8a97cf830581bd7933a576312cad (patch) | |
tree | 709270bfe1193511f06f5e825cec4e0b17fa58a2 /source4/libcli/composite | |
parent | 36a5e353538cc6f0fe53670f9773b9acc51d4816 (diff) | |
download | samba-9d3b3e83953a8a97cf830581bd7933a576312cad.tar.gz |
r11971: add nbt specific continue wrapper
metze
(This used to be commit b8c5978df18b98db89069e02597d483f893e39ae)
Diffstat (limited to 'source4/libcli/composite')
-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 ba9b0673daf..c4b771509f2 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; +} |