summaryrefslogtreecommitdiff
path: root/systemv/lpinfo.c
diff options
context:
space:
mode:
authorMichael Sweet <michael.r.sweet@gmail.com>2017-12-06 22:43:57 -0500
committerMichael Sweet <michael.r.sweet@gmail.com>2017-12-06 22:43:57 -0500
commitf306ad4d329883820d188b71582e677b277646c7 (patch)
treeaee6f043e22d1cd3f066a8392aa61567997d87d3 /systemv/lpinfo.c
parentfce9ddcbeed910e86c0381d696a6dc387b65ac71 (diff)
downloadcups-f306ad4d329883820d188b71582e677b277646c7.tar.gz
Finalize printer and class information in new administration guide.
Update lpadmin to copy printer-info, printer-location, and printer-geo-location from the IPP printer when using the "everywhere" driver. Update lpinfo to list the "everywhere" driver.
Diffstat (limited to 'systemv/lpinfo.c')
-rw-r--r--systemv/lpinfo.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/systemv/lpinfo.c b/systemv/lpinfo.c
index 24175b69b..54214a773 100644
--- a/systemv/lpinfo.c
+++ b/systemv/lpinfo.c
@@ -1,7 +1,7 @@
/*
* "lpinfo" command for CUPS.
*
- * Copyright 2007-2016 by Apple Inc.
+ * Copyright 2007-2017 by Apple Inc.
* Copyright 1997-2006 by Easy Software Products.
*
* Licensed under Apache License v2.0. See the file "LICENSE" for more information.
@@ -450,6 +450,25 @@ show_models(
}
ippDelete(response);
+
+ /*
+ * Show the "everywhere" model, which is handled by the lpadmin command...
+ */
+
+ if ((!include_schemes || strstr(include_schemes, "everywhere")) && (!exclude_schemes || !strstr(exclude_schemes, "everywhere")))
+ {
+ if (long_status)
+ {
+ _cupsLangPrintf(stdout,
+ _("Model: name = %s\n"
+ " natural_language = %s\n"
+ " make-and-model = %s\n"
+ " device-id = %s"),
+ "everywhere", cupsLangDefault()->language, "IPP Everywhere", "CMD:PwgRaster");
+ }
+ else
+ _cupsLangPuts(stdout, "everywhere IPP Everywhere");
+ }
}
else
{