diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-02-13 20:55:17 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2007-02-13 20:55:17 +0000 |
commit | 61bbf21f075441982f18160da83c6c1c5218b791 (patch) | |
tree | 181d16edf98960a557863d4660f28527c7c7622f /source/printing | |
parent | 9c362d093e8f7239acbde40f5ab580824bd2bf76 (diff) | |
download | samba-61bbf21f075441982f18160da83c6c1c5218b791.tar.gz samba-61bbf21f075441982f18160da83c6c1c5218b791.tar.xz samba-61bbf21f075441982f18160da83c6c1c5218b791.zip |
r21322: No feedback means consent :-)
It does not matter if I screw up 3.0.25 or 3.0.26 with this, so do it rather
sooner than later.
Add the notify support that already exists in 3_0 to 3_0_25. If you want to
see this patch dissected into digestable parts, look at 3_0, revisions at
about 20800 and following.
Volker
Diffstat (limited to 'source/printing')
-rw-r--r-- | source/printing/nt_printing.c | 5 | ||||
-rw-r--r-- | source/printing/printing.c | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c index 4a6b2e0a6de..5b5f82d1f48 100644 --- a/source/printing/nt_printing.c +++ b/source/printing/nt_printing.c @@ -629,14 +629,15 @@ BOOL nt_printing_init(void) * drivers are installed */ - message_register( MSG_PRINTER_DRVUPGRADE, do_drv_upgrade_printer ); + message_register(MSG_PRINTER_DRVUPGRADE, do_drv_upgrade_printer, NULL); /* * register callback to handle updating printer data * when a driver is initialized */ - message_register( MSG_PRINTERDATA_INIT_RESET, reset_all_printerdata ); + message_register(MSG_PRINTERDATA_INIT_RESET, reset_all_printerdata, + NULL); /* of course, none of the message callbacks matter if you don't tell messages.c that you interested in receiving PRINT_GENERAL diff --git a/source/printing/printing.c b/source/printing/printing.c index 2f1d123a200..588641358f3 100644 --- a/source/printing/printing.c +++ b/source/printing/printing.c @@ -1352,7 +1352,8 @@ static void print_queue_update_with_lock( const char *sharename, this is the receive function of the background lpq updater ****************************************************************************/ static void print_queue_receive(int msg_type, struct process_id src, - void *buf, size_t msglen) + void *buf, size_t msglen, + void *private_data) { fstring sharename; pstring lpqcommand, lprmcommand; @@ -1403,7 +1404,8 @@ void start_background_queue(void) exit(1); } - message_register(MSG_PRINTER_UPDATE, print_queue_receive); + message_register(MSG_PRINTER_UPDATE, print_queue_receive, + NULL); DEBUG(5,("start_background_queue: background LPQ thread waiting for messages\n")); while (1) { |