1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

s3: Lift the smbd_messaging_context from winreg_del_driver_list

This commit is contained in:
Volker Lendecke 2010-08-08 10:55:41 +02:00
parent d104e37ed1
commit 1af73b04fc
4 changed files with 5 additions and 1 deletions

View File

@ -1805,6 +1805,7 @@ bool printer_driver_files_in_use(TALLOC_CTX *mem_ctx,
/* get the list of drivers */ /* get the list of drivers */
result = winreg_get_driver_list(mem_ctx, server_info, result = winreg_get_driver_list(mem_ctx, server_info,
smbd_messaging_context(),
info->architecture, version, info->architecture, version,
&num_drivers, &drivers); &num_drivers, &drivers);
if (!W_ERROR_IS_OK(result)) { if (!W_ERROR_IS_OK(result)) {

View File

@ -6720,6 +6720,7 @@ static WERROR enumprinterdrivers_level_by_architecture(TALLOC_CTX *mem_ctx,
for (version=0; version<DRIVER_MAX_VERSION; version++) { for (version=0; version<DRIVER_MAX_VERSION; version++) {
result = winreg_get_driver_list(mem_ctx, server_info, result = winreg_get_driver_list(mem_ctx, server_info,
smbd_messaging_context(),
architecture, version, architecture, version,
&num_drivers, &drivers); &num_drivers, &drivers);
if (!W_ERROR_IS_OK(result)) { if (!W_ERROR_IS_OK(result)) {

View File

@ -4351,6 +4351,7 @@ done:
WERROR winreg_get_driver_list(TALLOC_CTX *mem_ctx, WERROR winreg_get_driver_list(TALLOC_CTX *mem_ctx,
struct auth_serversupplied_info *server_info, struct auth_serversupplied_info *server_info,
struct messaging_context *msg_ctx,
const char *architecture, const char *architecture,
uint32_t version, uint32_t version,
uint32_t *num_drivers, 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 */ * parent of all drivers for this architecture and version */
result = winreg_printer_opendriver(tmp_ctx, result = winreg_printer_opendriver(tmp_ctx,
server_info, server_info,
smbd_messaging_context(), msg_ctx,
NULL, NULL,
architecture, architecture,
version, version,

View File

@ -585,6 +585,7 @@ WERROR winreg_del_driver(TALLOC_CTX *mem_ctx,
WERROR winreg_get_driver_list(TALLOC_CTX *mem_ctx, WERROR winreg_get_driver_list(TALLOC_CTX *mem_ctx,
struct auth_serversupplied_info *server_info, struct auth_serversupplied_info *server_info,
struct messaging_context *msg_ctx,
const char *architecture, const char *architecture,
uint32_t version, uint32_t version,
uint32_t *num_drivers, uint32_t *num_drivers,