summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-08-27 22:34:14 +0000
committerGerald Carter <jerry@samba.org>2002-08-27 22:34:14 +0000
commit907bec35135e803c04717482767a953b6c5fa2cb (patch)
treec2201f6ab8386e17757c87a6be071cdf99c3c8ad /source3
parente519e528a0858a71ad7d3b821accce4a27d5b75f (diff)
downloadsamba-907bec35135e803c04717482767a953b6c5fa2cb.tar.gz
samba-907bec35135e803c04717482767a953b6c5fa2cb.tar.bz2
samba-907bec35135e803c04717482767a953b6c5fa2cb.zip
add hook for MSG_PRINTER_DRVUPGRADE that numps the change_id on all printers bound to a given driver
(This used to be commit e913d508d4f894eb3f0e59b9c28b0fc5b56962ec)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/smbcontrol.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index 2d78b21dcc..5401755376 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -42,6 +42,7 @@ static struct {
{"dmalloc-mark", MSG_REQ_DMALLOC_MARK },
{"dmalloc-log-changed", MSG_REQ_DMALLOC_LOG_CHANGED },
{"shutdown", MSG_SHUTDOWN },
+ {"change_id", MSG_PRINTER_DRVUPGRADE},
{NULL, -1}
};
@@ -553,6 +554,10 @@ static BOOL do_command(char *dest, char *msg_name, int iparams, char **params)
if (!send_message(dest, MSG_SHUTDOWN, NULL, 0, False))
return False;
break;
+ case MSG_PRINTER_DRVUPGRADE:
+ if (!send_message(dest, MSG_PRINTER_DRVUPGRADE, params[0], 0, False))
+ return False;
+ break;
}
return (True);