mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3: Lift the server_messaging_context from notify_printer_printername
This commit is contained in:
parent
c427423aee
commit
f3313c5307
@ -4451,7 +4451,9 @@ void notify_printer_comment(struct tevent_context *ev,
|
||||
void notify_printer_sharename(struct tevent_context *ev,
|
||||
struct messaging_context *msg_ctx,
|
||||
int snum, const char *share_name);
|
||||
void notify_printer_printername(int snum, const char *printername);
|
||||
void notify_printer_printername(struct tevent_context *ev,
|
||||
struct messaging_context *msg_ctx,
|
||||
int snum, const char *printername);
|
||||
void notify_printer_port(int snum, const char *port_name);
|
||||
void notify_printer_location(int snum, const char *location);
|
||||
void notify_printer_byname( const char *printername, uint32 change, const char *value );
|
||||
|
@ -541,12 +541,14 @@ void notify_printer_sharename(struct tevent_context *ev,
|
||||
snum, strlen(share_name) + 1, share_name);
|
||||
}
|
||||
|
||||
void notify_printer_printername(int snum, const char *printername)
|
||||
void notify_printer_printername(struct tevent_context *ev,
|
||||
struct messaging_context *msg_ctx,
|
||||
int snum, const char *printername)
|
||||
{
|
||||
const char *sharename = lp_servicename(snum);
|
||||
|
||||
send_notify_field_buffer(
|
||||
server_event_context(), server_messaging_context(),
|
||||
ev, msg_ctx,
|
||||
sharename, PRINTER_NOTIFY_TYPE, PRINTER_NOTIFY_FIELD_PRINTER_NAME,
|
||||
snum, strlen(printername) + 1, printername);
|
||||
}
|
||||
|
@ -5803,7 +5803,8 @@ static WERROR update_dsspooler(TALLOC_CTX *mem_ctx,
|
||||
buffer.length);
|
||||
|
||||
if (!force_update) {
|
||||
notify_printer_printername(snum, p);
|
||||
notify_printer_printername(server_event_context(),
|
||||
msg_ctx, snum, p);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user