summaryrefslogtreecommitdiffstats
path: root/source/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-11-30 12:39:32 +0000
committerStefan Metzmacher <metze@samba.org>2005-11-30 12:39:32 +0000
commit349426cca163ed16291a0f69dd13afedb2977263 (patch)
treee865cd199ce62579785aaf00c02267a2b435e5be /source/libcli
parentc5cb3dfe82d0fe6def56e5108345d8a7dc7aeb64 (diff)
downloadsamba-349426cca163ed16291a0f69dd13afedb2977263.tar.gz
samba-349426cca163ed16291a0f69dd13afedb2977263.tar.xz
samba-349426cca163ed16291a0f69dd13afedb2977263.zip
r11971: add nbt specific continue wrapper
metze
Diffstat (limited to 'source/libcli')
-rw-r--r--source/libcli/composite/composite.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/libcli/composite/composite.c b/source/libcli/composite/composite.c
index ba9b0673daf..c4b771509f2 100644
--- a/source/libcli/composite/composite.c
+++ b/source/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;
+}