s3: Lift the smbd_messaging_context from winreg_del_driver_list
authorVolker Lendecke <vl@samba.org>
Sun, 8 Aug 2010 08:55:41 +0000 (10:55 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 8 Aug 2010 14:03:19 +0000 (16:03 +0200)
source3/printing/nt_printing.c
source3/rpc_server/srv_spoolss_nt.c
source3/rpc_server/srv_spoolss_util.c
source3/rpc_server/srv_spoolss_util.h

index d12f16814566a324aabc13ef98f25b1cd5e65af3..a5d36dab578833a96ccf2e281d1fb6605f8090b0 100644 (file)
@@ -1805,6 +1805,7 @@ bool printer_driver_files_in_use(TALLOC_CTX *mem_ctx,
        /* get the list of drivers */
 
        result = winreg_get_driver_list(mem_ctx, server_info,
+                                       smbd_messaging_context(),
                                        info->architecture, version,
                                        &num_drivers, &drivers);
        if (!W_ERROR_IS_OK(result)) {
index 4c660374ae5a834546099ed3870d9e62b21dd5cc..8789b86bf3860cca65b659a3fbbceb62ac8ef36f 100644 (file)
@@ -6720,6 +6720,7 @@ static WERROR enumprinterdrivers_level_by_architecture(TALLOC_CTX *mem_ctx,
 
        for (version=0; version<DRIVER_MAX_VERSION; version++) {
                result = winreg_get_driver_list(mem_ctx, server_info,
+                                               smbd_messaging_context(),
                                                architecture, version,
                                                &num_drivers, &drivers);
                if (!W_ERROR_IS_OK(result)) {
index 05ee92f65a3977bbef7fc81eb13e04725cd8e382..2de45b70a67bb9137ebdad3ac7d4f7282539aba0 100644 (file)
@@ -4351,6 +4351,7 @@ done:
 
 WERROR winreg_get_driver_list(TALLOC_CTX *mem_ctx,
                              struct auth_serversupplied_info *server_info,
+                             struct messaging_context *msg_ctx,
                              const char *architecture,
                              uint32_t version,
                              uint32_t *num_drivers,
@@ -4378,7 +4379,7 @@ WERROR winreg_get_driver_list(TALLOC_CTX *mem_ctx,
         * parent of all drivers for this architecture and version */
        result = winreg_printer_opendriver(tmp_ctx,
                                           server_info,
-                                          smbd_messaging_context(),
+                                          msg_ctx,
                                           NULL,
                                           architecture,
                                           version,
index 6cd75561752c87e954e81fce60efc6407b7e531f..2b8a6533381453f342b0b8c37ef16a21ae3d9732 100644 (file)
@@ -585,6 +585,7 @@ WERROR winreg_del_driver(TALLOC_CTX *mem_ctx,
 
 WERROR winreg_get_driver_list(TALLOC_CTX *mem_ctx,
                              struct auth_serversupplied_info *server_info,
+                              struct messaging_context *msg_ctx,
                              const char *architecture,
                              uint32_t version,
                              uint32_t *num_drivers,