Lines Matching defs:printer

28 /* $Id: printer.c 151 2006-04-25 16:55:34Z njacobs $ */
38 papiPrinterFree(papi_printer_t printer)
40 printer_t *tmp = printer;
47 f(tmp->printer);
90 * copy the resulting printer object pointers into our own
91 * representation of a printer object because we need the
92 * service context to operate against the individual printer
107 p->printer = svc_printers[i];
116 /* Get printer attributes from it's print service */
122 papi_printer_t printer = NULL;
129 papiAttributeListGetString(p->attributes, NULL, "printer-name", &uri);
130 papiAttributeListGetString(p->attributes, NULL, "printer-uri-supported",
133 /* contact the service for the printer */
140 /* get the printer from the service */
141 result = papiPrinterQuery(p_svc, uri, requested_attrs, NULL, &printer);
145 attributes = papiPrinterGetAttributeList(printer);
148 papiPrinterFree(printer);
234 papi_attribute_t **job_attributes, papi_printer_t *printer)
241 if ((svc == NULL) || (name == NULL) || (printer == NULL))
247 if ((*printer = p = calloc(1, sizeof (*p))) == NULL)
256 job_attributes, &p->printer);
341 papi_attribute_t **attributes, papi_printer_t *printer,
355 if ((*printer = p = calloc(1, sizeof (*p))) == NULL)
362 &p->printer);
369 papi_attribute_t **attributes, papi_printer_t *printer)
371 return (_papi_printer_add_or_modify(handle, name, attributes, printer,
377 papi_attribute_t **attributes, papi_printer_t *printer)
379 return (_papi_printer_add_or_modify(handle, name, attributes, printer,
497 papiPrinterGetAttributeList(papi_printer_t printer)
500 printer_t *p = printer;
502 if ((p != NULL) && (p->printer != NULL)) {
508 result = f(p->printer);