Lines Matching refs:num_printers
68 for (i = 0; i < c->num_printers; i ++) in cupsdAddPrinterToClass()
76 if (c->num_printers == 0) in cupsdAddPrinterToClass()
79 temp = realloc(c->printers, sizeof(cupsd_printer_t *) * (size_t)(c->num_printers + 1)); in cupsdAddPrinterToClass()
93 temp += c->num_printers; in cupsdAddPrinterToClass()
94 c->num_printers ++; in cupsdAddPrinterToClass()
116 for (i = 0; i < c->num_printers; i ++) in cupsdDeletePrinterFromClass()
124 if (i < c->num_printers) in cupsdDeletePrinterFromClass()
130 c->num_printers --; in cupsdDeletePrinterFromClass()
131 if (i < c->num_printers) in cupsdDeletePrinterFromClass()
133 (size_t)(c->num_printers - i) * sizeof(cupsd_printer_t *)); in cupsdDeletePrinterFromClass()
197 if (c->num_printers == 0) in cupsdFindAvailablePrinter()
205 if (c->last_printer >= c->num_printers) in cupsdFindAvailablePrinter()
219 if (i >= c->num_printers) in cupsdFindAvailablePrinter()
777 for (i = 0; i < pclass->num_printers; i ++) in cupsdSaveAllClasses()