MCPcopy Create free account
hub / github.com/OpenPrinting/cups / cupsdFindPrinter

Function cupsdFindPrinter

scheduler/printers.c:828–838  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

826 */
827
828cupsd_printer_t * /* O - Printer in list */
829cupsdFindPrinter(const char *name) /* I - Name of printer to find */
830{
831 cupsd_printer_t *p; /* Printer in list */
832
833
834 if ((p = cupsdFindDest(name)) != NULL && (p->type & CUPS_PRINTER_CLASS))
835 return (NULL);
836 else
837 return (p);
838}
839
840
841/*

Callers 5

cupsdAddEventFunction · 0.85
cupsdReadClientFunction · 0.85
add_classFunction · 0.85
add_printerFunction · 0.85
cupsdLoadAllClassesFunction · 0.85

Calls 1

cupsdFindDestFunction · 0.85

Tested by

no test coverage detected