diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-05-14 20:31:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:22:04 -0500 |
commit | 74fa57ca5d7fa8eace72bbe948a08a0bca3cc4ca (patch) | |
tree | a8d921991c1ca3b48fe4764ddc73f3b0f6251f89 /source/printing/notify.c | |
parent | c3f4fdd37e62491a11d3993864ba51fdb596ea1b (diff) | |
download | samba-74fa57ca5d7fa8eace72bbe948a08a0bca3cc4ca.tar.gz |
r22868: Replace some message_send_pid calls with messaging_send_pid calls. More
tomorrow.
Diffstat (limited to 'source/printing/notify.c')
-rw-r--r-- | source/printing/notify.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/source/printing/notify.c b/source/printing/notify.c index 744f7ae9907..1285ca23a86 100644 --- a/source/printing/notify.c +++ b/source/printing/notify.c @@ -116,7 +116,9 @@ again: Send the batched messages - on a per-printer basis. *******************************************************************/ -static void print_notify_send_messages_to_printer(const char *printer, unsigned int timeout) +static void print_notify_send_messages_to_printer(struct messaging_context *msg_ctx, + const char *printer, + unsigned int timeout) { char *buf; struct notify_queue *pq, *pq_next; @@ -182,9 +184,11 @@ static void print_notify_send_messages_to_printer(const char *printer, unsigned printer, q_len )); continue; } - message_send_pid_with_timeout(pid_to_procid(pid_list[i]), - MSG_PRINTER_NOTIFY2, - buf, offset, True, timeout); + messaging_send_buf_with_timeout(msg_ctx, + pid_to_procid(pid_list[i]), + MSG_PRINTER_NOTIFY2, + (uint8 *)buf, offset, + timeout); } } @@ -192,7 +196,8 @@ static void print_notify_send_messages_to_printer(const char *printer, unsigned Actually send the batched messages. *******************************************************************/ -void print_notify_send_messages(unsigned int timeout) +void print_notify_send_messages(struct messaging_context *msg_ctx, + unsigned int timeout) { if (!print_notify_messages_pending()) return; @@ -201,7 +206,8 @@ void print_notify_send_messages(unsigned int timeout) return; while (print_notify_messages_pending()) - print_notify_send_messages_to_printer(notify_queue_head->msg->printer, timeout); + print_notify_send_messages_to_printer( + msg_ctx, notify_queue_head->msg->printer, timeout); talloc_free_children(send_ctx); num_messages = 0; |