/***************************************************************************
load automatic printer services from pre-populated pcap cache
***************************************************************************/
-void load_printers(struct tevent_context *ev,
- struct messaging_context *msg_ctx)
+void load_printers(void)
{
SMB_ASSERT(pcap_cache_loaded(NULL));
/* The following definitions come from printing/load.c */
-void load_printers(struct tevent_context *ev,
- struct messaging_context *msg_ctx);
+void load_printers(void);
#endif /* _PRINTING_LOAD_H_ */
{
if (background_lpq_updater_pid != -1) {
if (pcap_cache_loaded(NULL)) {
- load_printers(ev_ctx, msg_ctx);
+ load_printers();
}
if (force) {
/* Send a sighup to the background process.
{
change_to_root_user();
lp_load_global(get_dyn_CONFIGFILE());
- load_printers(ev, msg);
+ load_printers();
spoolss_reopen_logs(spoolss_child_id);
if (spoolss_child_id == 0) {
void *siginfo,
void *pvt)
{
- struct messaging_context *msg_ctx;
-
- msg_ctx = talloc_get_type_abort(pvt, struct messaging_context);
-
change_to_root_user();
DEBUG(1,("Reloading printers after SIGHUP\n"));
- load_printers(ev, msg_ctx);
+ load_printers();
spoolss_reopen_logs(spoolss_child_id);
}
* ourselves. If pcap has not been loaded yet, then ignore, we will get
* a message as soon as the bq process completes the reload. */
if (pcap_cache_loaded(NULL)) {
- load_printers(ev_ctx, msg_ctx);
+ load_printers();
}
/* try to reinit rpc queues */
* client enumeration anyway.
*/
if (pcap_cache_loaded(NULL)) {
- load_printers(ev_ctx, msg_ctx);
+ load_printers();
}
mem_ctx = talloc_new(NULL);
reload_last_pcap_time = pcap_last_update;
/* Get pcap printers updated */
- load_printers(ev, msg_ctx);
+ load_printers();
n_services = lp_numservices();
pnum = lp_servicenumber(PRINTERS_NAME);
}
/* Make sure deleted printers are gone */
- load_printers(ev, msg_ctx);
+ load_printers();
talloc_free(frame);
}