svn commit: samba r18101 - in branches/SAMBA_4_0/source/libnet: .
mimir at samba.org
mimir at samba.org
Tue Sep 5 17:56:36 GMT 2006
Author: mimir
Date: 2006-09-05 17:56:35 +0000 (Tue, 05 Sep 2006)
New Revision: 18101
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18101
Log:
Use composite_create function and add monitor function pointer
to the state structure.
rafal
Modified:
branches/SAMBA_4_0/source/libnet/libnet_domain.c
Changeset:
Modified: branches/SAMBA_4_0/source/libnet/libnet_domain.c
===================================================================
--- branches/SAMBA_4_0/source/libnet/libnet_domain.c 2006-09-05 16:16:27 UTC (rev 18100)
+++ branches/SAMBA_4_0/source/libnet/libnet_domain.c 2006-09-05 17:56:35 UTC (rev 18101)
@@ -48,6 +48,9 @@
uint32_t access_mask;
struct policy_handle connect_handle;
struct policy_handle domain_handle;
+
+ /* information about the progress */
+ void (*monitor_fn)(struct monitor_msg*);
};
@@ -252,15 +255,14 @@
struct composite_context *c;
struct domain_open_samr_state *s;
- c = talloc_zero(ctx, struct composite_context);
+ c = composite_create(ctx, ctx->event_ctx);
if (c == NULL) return NULL;
s = talloc_zero(c, struct domain_open_samr_state);
if (composite_nomem(s, c)) return c;
- c->state = COMPOSITE_STATE_IN_PROGRESS;
c->private_data = s;
- c->event_ctx = ctx->event_ctx;
+ s->monitor_fn = monitor;
s->ctx = ctx;
s->pipe = ctx->samr.pipe;
@@ -375,6 +377,9 @@
struct lsa_OpenPolicy2 openpol;
struct policy_handle handle;
struct dcerpc_pipe *pipe;
+
+ /* information about the progress */
+ void (*monitor_fn)(struct monitor_msg*);
};
More information about the samba-cvs
mailing list