void notify_printer_location(struct tevent_context *ev,
struct messaging_context *msg_ctx,
int snum, const char *location);
-void notify_printer_byname( const char *printername, uint32 change, const char *value );
+void notify_printer_byname(struct tevent_context *ev,
+ struct messaging_context *msg_ctx,
+ const char *printername, uint32 change,
+ const char *value);
/* The following definitions come from printing/pcap.c */
snum, strlen(location) + 1, location);
}
-void notify_printer_byname( const char *printername, uint32 change, const char *value )
+void notify_printer_byname(struct tevent_context *ev,
+ struct messaging_context *msg_ctx,
+ const char *printername, uint32 change,
+ const char *value)
{
int snum = print_queue_snum(printername);
int type = PRINTER_NOTIFY_TYPE;
return;
send_notify_field_buffer(
- server_event_context(), server_messaging_context(),
+ ev, msg_ctx,
printername, type, change, snum, strlen(value)+1, value );
}
return False;
}
- notify_printer_byname(argv[2], attribute,
+ notify_printer_byname(messaging_event_context(msg_ctx),
+ msg_ctx, argv[2], attribute,
CONST_DISCARD(char *, argv[4]));
goto send;