r11971: add nbt specific continue wrapper
authorStefan Metzmacher <metze@samba.org>
Wed, 30 Nov 2005 12:39:32 +0000 (12:39 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:46:53 +0000 (13:46 -0500)
metze

source/libcli/composite/composite.c

index ba9b0673daf46647eb213f2240bd84d3df153e06..c4b771509f2bfb6873af19f252a7e41de0e17299 100644 (file)
@@ -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;
+}