From 09627638224759c985f0636c5616b0357c91e450 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 10 Jun 2010 11:48:39 -0400 Subject: s3:misc make use of server_[event/messaging]_context directly Untangle these functions from smbd specific dependencies so they can be freely used in multiple servers. --- source3/printing/print_cups.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/printing/print_cups.c') diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c index 7366f85973..76a13cf3b4 100644 --- a/source3/printing/print_cups.c +++ b/source3/printing/print_cups.c @@ -434,8 +434,8 @@ static bool cups_pcap_load_async(int *pfd) close_all_print_db(); - if (!NT_STATUS_IS_OK(reinit_after_fork(smbd_messaging_context(), - smbd_event_context(), true))) { + if (!NT_STATUS_IS_OK(reinit_after_fork(server_messaging_context(), + server_event_context(), true))) { DEBUG(0,("cups_pcap_load_async: reinit_after_fork() failed\n")); smb_panic("cups_pcap_load_async: reinit_after_fork() failed"); } @@ -576,7 +576,7 @@ bool cups_cache_reload(void) DEBUG(10,("cups_cache_reload: sync read on fd %d\n", *p_pipe_fd )); - cups_async_callback(smbd_event_context(), + cups_async_callback(server_event_context(), NULL, EVENT_FD_READ, (void *)p_pipe_fd); @@ -592,7 +592,7 @@ bool cups_cache_reload(void) *p_pipe_fd )); /* Trigger an event when the pipe can be read. */ - cache_fd_event = event_add_fd(smbd_event_context(), + cache_fd_event = event_add_fd(server_event_context(), NULL, *p_pipe_fd, EVENT_FD_READ, cups_async_callback, -- cgit