/* The following definitions come from printing/pcap.c */
-void pcap_cache_reload(void);
+void pcap_cache_reload(struct tevent_context *ev,
+ struct messaging_context *msg_ctx);
bool pcap_printername_ok(const char *printername);
/* The following definitions come from printing/printing.c */
***************************************************************************/
void load_printers(void)
{
- if (!pcap_cache_loaded())
- pcap_cache_reload();
+ if (!pcap_cache_loaded()) {
+ pcap_cache_reload(server_event_context(),
+ server_messaging_context());
+ }
add_auto_printers();
}
}
-void pcap_cache_reload(void)
+void pcap_cache_reload(struct tevent_context *ev,
+ struct messaging_context *msg_ctx)
{
const char *pcap_name = lp_printcapname();
bool pcap_reloaded = False;
#ifdef HAVE_CUPS
if (strequal(pcap_name, "cups")) {
- pcap_reloaded = cups_cache_reload(server_event_context(),
- server_messaging_context());
+ pcap_reloaded = cups_cache_reload(ev, msg_ctx);
goto done;
}
#endif
NTSTATUS status;
bool skip = false;
- pcap_cache_reload();
+ pcap_cache_reload(server_event_context(), msg_ctx);
status = make_server_info_system(talloc_tos(), &server_info);
if (!NT_STATUS_IS_OK(status)) {