]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Mirror 1.1.x changes.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Thu, 20 Mar 2003 03:05:42 +0000 (03:05 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Thu, 20 Mar 2003 03:05:42 +0000 (03:05 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/branches/branch-1.2@3500 7a7537e8-13f0-0310-91df-b6672ffda945

scheduler/ipp.c
scheduler/printers.c

index 0e6d0b25060bf0bf90a585d7ddcfad70d1502ba6..c42c8688e6a810ddf6ea422ac2bc82fa38295780 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: ipp.c,v 1.127.2.51 2003/03/19 18:09:25 mike Exp $"
+ * "$Id: ipp.c,v 1.127.2.52 2003/03/20 03:05:40 mike Exp $"
  *
  *   IPP routines for the Common UNIX Printing System (CUPS) scheduler.
  *
@@ -828,8 +828,12 @@ add_class(client_t        *con,            /* I - Client connection */
     LogMessage(L_INFO, "Class \'%s\' modified by \'%s\'.", pclass->name,
                con->username);
   else
+  {
+    AddPrinterHistory(pclass);
+
     LogMessage(L_INFO, "New class \'%s\' added by \'%s\'.", pclass->name,
                con->username);
+  }
 
   con->response->request.status.status_code = IPP_OK;
 }
@@ -1412,8 +1416,12 @@ add_printer(client_t        *con,        /* I - Client connection */
     LogMessage(L_INFO, "Printer \'%s\' modified by \'%s\'.", printer->name,
                con->username);
   else
+  {
+    AddPrinterHistory(printer);
+
     LogMessage(L_INFO, "New printer \'%s\' added by \'%s\'.", printer->name,
                con->username);
+  }
 
   con->response->request.status.status_code = IPP_OK;
 }
@@ -6252,5 +6260,5 @@ validate_user(client_t   *con,            /* I - Client connection */
 
 
 /*
- * End of "$Id: ipp.c,v 1.127.2.51 2003/03/19 18:09:25 mike Exp $".
+ * End of "$Id: ipp.c,v 1.127.2.52 2003/03/20 03:05:40 mike Exp $".
  */
index eca2e2ef838022009414b2e7b8edbdf909342da4..c9c8f85b7a5296fe024618b294f0bc926a2bbbf4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: printers.c,v 1.93.2.41 2003/03/19 06:07:50 mike Exp $"
+ * "$Id: printers.c,v 1.93.2.42 2003/03/20 03:05:42 mike Exp $"
  *
  *   Printer routines for the Common UNIX Printing System (CUPS).
  *
@@ -688,6 +688,7 @@ LoadAllPrinters(void)
       if (p != NULL)
       {
         SetPrinterAttrs(p);
+       AddPrinterHistory(p);
         p = NULL;
       }
       else
@@ -2355,5 +2356,5 @@ write_irix_state(printer_t *p)    /* I - Printer to update */
 
 
 /*
- * End of "$Id: printers.c,v 1.93.2.41 2003/03/19 06:07:50 mike Exp $".
+ * End of "$Id: printers.c,v 1.93.2.42 2003/03/20 03:05:42 mike Exp $".
  */