s3-mdssvc: add tevent context arg to mds_init_ctx
authorRalph Boehme <slow@samba.org>
Wed, 27 Jan 2016 12:17:04 +0000 (13:17 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 24 Apr 2019 18:32:15 +0000 (18:32 +0000)
This is needed later when adding tevent_glib_glue support, not used for now.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Noel Power <npower@samba.org>
source3/rpc_server/mdssvc/mdssvc.c
source3/rpc_server/mdssvc/mdssvc.h
source3/rpc_server/mdssvc/srv_mdssvc_nt.c

index 7c996941cfafd29ec0c387d2875c0a7e5b858bd4..ea676f48681275d1aad622315b9692b98afff810 100644 (file)
@@ -1822,6 +1822,7 @@ static gboolean gmainloop_timer(gpointer user_data)
  * Initialise a context per share handle
  **/
 struct mds_ctx *mds_init_ctx(TALLOC_CTX *mem_ctx,
+                            struct tevent_context *ev,
                             const struct auth_session_info *session_info,
                             const char *path)
 {
index 4e08fe186677cb230192b8dddb87190284690b48..310e59582ed06d454d1604f3835cb06681b7d3c3 100644 (file)
@@ -118,6 +118,7 @@ struct mds_ctx {
 extern bool mds_init(struct messaging_context *msg_ctx);
 extern bool mds_shutdown(void);
 extern struct mds_ctx *mds_init_ctx(TALLOC_CTX *mem_ctx,
+                                   struct tevent_context *ev,
                                    const struct auth_session_info *session_info,
                                    const char *path);
 extern int mds_ctx_destructor_cb(struct mds_ctx *mds_ctx);
index ab64423d0dfa7dc3aeeb57ab342b06fdc23976cf..c4bf995ce14d782a7ad9ae6638082d817b93b517 100644 (file)
@@ -18,6 +18,7 @@
  */
 
 #include "includes.h"
+#include "messages.h"
 #include "ntdomain.h"
 #include "rpc_server/rpc_service_setup.h"
 #include "rpc_server/rpc_config.h"
@@ -114,7 +115,10 @@ static NTSTATUS create_mdssvc_policy_handle(TALLOC_CTX *mem_ctx,
 
        ZERO_STRUCTP(handle);
 
-       mds_ctx = mds_init_ctx(mem_ctx, p->session_info, path);
+       mds_ctx = mds_init_ctx(mem_ctx,
+                              messaging_tevent_context(p->msg_ctx),
+                              p->session_info,
+                              path);
        if (mds_ctx == NULL) {
                DEBUG(1, ("error in mds_init_ctx for: %s\n", path));
                return NT_STATUS_UNSUCCESSFUL;