svn commit: samba r11971 - in branches/SAMBA_4_0/source/libcli/composite: .

metze at samba.org metze at samba.org
Wed Nov 30 12:39:33 GMT 2005


Author: metze
Date: 2005-11-30 12:39:32 +0000 (Wed, 30 Nov 2005)
New Revision: 11971

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11971

Log:
add nbt specific continue wrapper

metze
Modified:
   branches/SAMBA_4_0/source/libcli/composite/composite.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/composite/composite.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/composite/composite.c	2005-11-30 04:45:26 UTC (rev 11970)
+++ branches/SAMBA_4_0/source/libcli/composite/composite.c	2005-11-30 12:39:32 UTC (rev 11971)
@@ -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 @@
 	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;
+}



More information about the samba-cvs mailing list