Lines Matching refs:printer

64 			    "printer-name", &bsd[1]);
91 char *printer = NULL;
99 "printer-uri-supported", &printer);
100 /* if there is no printer-uri-supported, there is nothing to do */
101 if (printer == NULL) {
105 if (uri_from_string(printer, &uri) < 0) {
119 printer = "";
121 if ((printer = strrchr(uri->path, '/')) == NULL)
122 printer = uri->path;
124 printer++;
127 /* is there an lpsched queue (printer/class) */
128 snprintf(buf, sizeof (buf), "/etc/lp/interfaces/%s", printer);
129 snprintf(buf2, sizeof (buf2), "/etc/lp/classes/%s", printer);
142 (uri->host ? uri->host : "localhost"), printer);
144 "printer-uri-supported", buf);
155 /* do we have a printer-uri-supported */
156 attribute = papiAttributeListFind(*list, "printer-uri-supported");
160 /* do we have a printer-uri (in URI form) to rename */
161 attribute = papiAttributeListFind(*list, "printer-uri");
169 attribute->name = strdup("printer-uri-supported");
180 "printer-uri-supported", uri);
192 /* default to "printer-name", but use "rp" if we have it */
193 papiAttributeListGetString(*list, NULL, "printer-name", &rp);
202 "printer-uri-supported", strdup(buf));
207 /* if were are here, we don't have a printer-uri-supported */
220 /* do we have a printer-uri */
221 attribute = papiAttributeListFind(*list, "printer-uri");
229 papiAttributeListAddString(list, PAPI_ATTR_EXCL, "printer-uri",
230 "broken printer-uri semantic");
277 PAPI_ATTR_APPEND, "printer-name", buf);
299 PAPI_ATTR_APPEND, "printer-name", buf);
479 "printer-name", name);
481 "printer-uri-supported", name);
486 "printer-name", name);
489 "printer-uri-supported", uri);