summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-11-30 12:39:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:53 -0500
commit9d3b3e83953a8a97cf830581bd7933a576312cad (patch)
tree709270bfe1193511f06f5e825cec4e0b17fa58a2 /source4
parent36a5e353538cc6f0fe53670f9773b9acc51d4816 (diff)
downloadsamba-9d3b3e83953a8a97cf830581bd7933a576312cad.tar.gz
samba-9d3b3e83953a8a97cf830581bd7933a576312cad.tar.bz2
samba-9d3b3e83953a8a97cf830581bd7933a576312cad.zip
r11971: add nbt specific continue wrapper
metze (This used to be commit b8c5978df18b98db89069e02597d483f893e39ae)
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/composite/composite.c11
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;
+}