diff options
author | Gerald Carter <jerry@samba.org> | 2004-05-27 15:38:54 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2004-05-27 15:38:54 +0000 |
commit | fc4cded768fb424e6c9f07bf94045d3d7d47e51c (patch) | |
tree | 28490c8b6b7473f71c18ee5348dc49f6d8e38c47 /source/printing/notify.c | |
parent | 842bad13d73b605060690fefb8162e3d8dc0d75e (diff) | |
download | samba-fc4cded768fb424e6c9f07bf94045d3d7d47e51c.tar.gz samba-fc4cded768fb424e6c9f07bf94045d3d7d47e51c.tar.xz samba-fc4cded768fb424e6c9f07bf94045d3d7d47e51c.zip |
r925: add changes frpm trunk (r841 and r842) -- enable background queue update process and allow printers to have different sharenames from printernames
Diffstat (limited to 'source/printing/notify.c')
-rw-r--r-- | source/printing/notify.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/printing/notify.c b/source/printing/notify.c index 7750239630c..26ef191f877 100644 --- a/source/printing/notify.c +++ b/source/printing/notify.c @@ -463,6 +463,15 @@ void notify_printer_sharename(int snum, char *share_name) snum, strlen(share_name) + 1, share_name); } +void notify_printer_printername(int snum, char *printername) +{ + const char *printer_name = SERVICE(snum); + + send_notify_field_buffer( + printer_name, PRINTER_NOTIFY_TYPE, PRINTER_NOTIFY_PRINTER_NAME, + snum, strlen(printername) + 1, printername); +} + void notify_printer_port(int snum, char *port_name) { const char *printer_name = SERVICE(snum); |