add hook for MSG_PRINTER_DRVUPGRADE that numps the change_id on all printers bound...
authorGerald Carter <jerry@samba.org>
Tue, 27 Aug 2002 22:34:14 +0000 (22:34 +0000)
committerGerald Carter <jerry@samba.org>
Tue, 27 Aug 2002 22:34:14 +0000 (22:34 +0000)
(This used to be commit e913d508d4f894eb3f0e59b9c28b0fc5b56962ec)

source3/utils/smbcontrol.c

index 2d78b21dcc8a8be234250d1756f825a91d7429e3..5401755376df7e4569d00b59e2d00369f8226739 100644 (file)
@@ -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);