Home
last modified time | relevance | path

Searched refs:num_printers (Results 1 – 6 of 6) sorted by relevance

/external/libcups/scheduler/
Dclasses.c68 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()
[all …]
Dprinters.h97 int num_printers, /* Number of printers in class */ member
Dclient.c2731 for (i = 0; i < p->num_printers; i ++) in get_file()
2744 if (i >= p->num_printers) in get_file()
2768 for (i = 0; i < p->num_printers; i ++) in get_file()
2781 if (i >= p->num_printers) in get_file()
Dipp.c1024 if (pclass->num_printers > 0) in add_class()
1027 pclass->num_printers = 0; in add_class()
4867 if (printer->num_printers > 0 && (!ra || cupsArrayFind(ra, "member-uris"))) in copy_printer_attrs()
4874 …(con->response, IPP_TAG_PRINTER, IPP_TAG_URI, "member-uris", printer->num_printers, NULL, NULL)) !… in copy_printer_attrs()
4876 for (i = 0; i < printer->num_printers; i ++) in copy_printer_attrs()
7105 for (i = 0; i < dest->num_printers; i ++) in get_ppd()
7114 if (i < dest->num_printers) in get_ppd()
Dprinters.c2405 if (p->num_printers > 0) in cupsdSetPrinterAttrs()
2412 "member-names", p->num_printers, NULL, NULL); in cupsdSetPrinterAttrs()
2415 for (i = 0; i < p->num_printers; i ++) in cupsdSetPrinterAttrs()
/external/libcups/cgi-bin/
Dadmin.c319 int num_printers; /* Number of printers */ in do_am_class() local
406 num_printers = cgiGetSize("MEMBER_URIS"); in do_am_class()
411 num_printers = 0; in do_am_class()
449 for (j = 0; j < num_printers; j ++) in do_am_class()
454 for (j = 0; j < num_printers; j ++) in do_am_class()
557 if ((num_printers = cgiGetSize("MEMBER_URIS")) > 0) in do_am_class()
560 num_printers, NULL, NULL); in do_am_class()
561 for (i = 0; i < num_printers; i ++) in do_am_class()