Remove global_loadparm instance.
[kai/samba.git] / source4 / libcli / smb_composite / fsinfo.c
index 270d71f5185be629951f6e1ca588010e6971a054..cd6e98547b06e79e7cb207a976f3fd49964c5792 100644 (file)
@@ -127,7 +127,8 @@ static void fsinfo_composite_handler(struct composite_context *creq)
   composite fsinfo call - connects to a tree and queries a file system information
 */
 struct composite_context *smb_composite_fsinfo_send(struct smbcli_tree *tree, 
   composite fsinfo call - connects to a tree and queries a file system information
 */
 struct composite_context *smb_composite_fsinfo_send(struct smbcli_tree *tree, 
-                                                   struct smb_composite_fsinfo *io)
+                                                   struct smb_composite_fsinfo *io,
+                                                   struct resolve_context *resolve_ctx)
 {
        struct composite_context *c;
        struct fsinfo_state *state;
 {
        struct composite_context *c;
        struct fsinfo_state *state;
@@ -160,7 +161,7 @@ struct composite_context *smb_composite_fsinfo_send(struct smbcli_tree *tree,
        c->private_data = state;
 
        state->creq = smb_composite_connect_send(state->connect, state,
        c->private_data = state;
 
        state->creq = smb_composite_connect_send(state->connect, state,
-                        lp_resolve_context(global_loadparm), c->event_ctx);
+                        resolve_ctx, c->event_ctx);
 
        if (state->creq == NULL) goto failed;
   
 
        if (state->creq == NULL) goto failed;
   
@@ -197,9 +198,10 @@ NTSTATUS smb_composite_fsinfo_recv(struct composite_context *c, TALLOC_CTX *mem_
 */
 NTSTATUS smb_composite_fsinfo(struct smbcli_tree *tree, 
                              TALLOC_CTX *mem_ctx,
 */
 NTSTATUS smb_composite_fsinfo(struct smbcli_tree *tree, 
                              TALLOC_CTX *mem_ctx,
-                             struct smb_composite_fsinfo *io)
+                             struct smb_composite_fsinfo *io,
+                             struct resolve_context *resolve_ctx)
 {
 {
-       struct composite_context *c = smb_composite_fsinfo_send(tree, io);
+       struct composite_context *c = smb_composite_fsinfo_send(tree, io, resolve_ctx);
        return smb_composite_fsinfo_recv(c, mem_ctx);
 }
 
        return smb_composite_fsinfo_recv(c, mem_ctx);
 }