/*
- * "$Id: notify.c 7337 2008-02-22 04:44:04Z mike $"
+ * Notification routines for CUPS.
*
- * Notification routines for the Common UNIX Printing System (CUPS).
+ * Copyright 2007-2013 by Apple Inc.
+ * Copyright 2005-2006 by Easy Software Products.
*
- * Copyright 2007-2008 by Apple Inc.
- * Copyright 2005-2006 by Easy Software Products.
- *
- * These coded instructions, statements, and computer programs are the
- * property of Apple Inc. and are protected by Federal copyright
- * law. Distribution and use rights are outlined in the file "LICENSE.txt"
- * which should have been included with this file. If this file is
- * file is missing or damaged, see the license at "http://www.cups.org/".
- *
- * This file is subject to the Apple OS-Developed Software exception.
- *
- * Contents:
- *
- * cupsNotifySubject() - Return the subject for the given notification
- * message.
- * cupsNotifyText() - Return the text for the given notification message.
+ * Licensed under Apache License v2.0. See the file "LICENSE" for more information.
*/
/*
* Include necessary headers...
*/
-#include "globals.h"
+#include "cups-private.h"
+#include "debug-internal.h"
/*
*
* The returned string must be freed by the caller using @code free@.
*
- * @since CUPS 1.2/Mac OS X 10.5@
+ * @since CUPS 1.2/macOS 10.5@
*/
char * /* O - Subject string or @code NULL@ */
switch (job_state->values[0].integer)
{
- case IPP_JOB_PENDING :
+ case IPP_JSTATE_PENDING :
state = _cupsLangString(lang, _("pending"));
break;
- case IPP_JOB_HELD :
+ case IPP_JSTATE_HELD :
state = _cupsLangString(lang, _("held"));
break;
- case IPP_JOB_PROCESSING :
+ case IPP_JSTATE_PROCESSING :
state = _cupsLangString(lang, _("processing"));
break;
- case IPP_JOB_STOPPED :
+ case IPP_JSTATE_STOPPED :
state = _cupsLangString(lang, _("stopped"));
break;
- case IPP_JOB_CANCELED :
+ case IPP_JSTATE_CANCELED :
state = _cupsLangString(lang, _("canceled"));
break;
- case IPP_JOB_ABORTED :
+ case IPP_JSTATE_ABORTED :
state = _cupsLangString(lang, _("aborted"));
break;
- case IPP_JOB_COMPLETED :
+ case IPP_JSTATE_COMPLETED :
state = _cupsLangString(lang, _("completed"));
break;
default :
switch (printer_state->values[0].integer)
{
- case IPP_PRINTER_IDLE :
+ case IPP_PSTATE_IDLE :
state = _cupsLangString(lang, _("idle"));
break;
- case IPP_PRINTER_PROCESSING :
+ case IPP_PSTATE_PROCESSING :
state = _cupsLangString(lang, _("processing"));
break;
- case IPP_PRINTER_STOPPED :
+ case IPP_PSTATE_STOPPED :
state = _cupsLangString(lang, _("stopped"));
break;
default :
*
* The returned string must be freed by the caller using @code free@.
*
- * @since CUPS 1.2/Mac OS X 10.5@
+ * @since CUPS 1.2/macOS 10.5@
*/
char * /* O - Message text or @code NULL@ */
return (strdup(notify_text->values[0].string.text));
}
-
-
-/*
- * End of "$Id: notify.c 7337 2008-02-22 04:44:04Z mike $".
- */