From 068e9059fbd5163139f5bc9bda5f86c85e756d0d Mon Sep 17 00:00:00 2001 From: mike Date: Thu, 20 Mar 2003 03:05:42 +0000 Subject: [PATCH] Mirror 1.1.x changes. 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 | 12 ++++++++++-- scheduler/printers.c | 5 +++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/scheduler/ipp.c b/scheduler/ipp.c index 0e6d0b2506..c42c8688e6 100644 --- a/scheduler/ipp.c +++ b/scheduler/ipp.c @@ -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 $". */ diff --git a/scheduler/printers.c b/scheduler/printers.c index eca2e2ef83..c9c8f85b7a 100644 --- a/scheduler/printers.c +++ b/scheduler/printers.c @@ -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 $". */ -- 2.47.3