Lines Matching refs:name

47 	char *name;  in usage()  local
49 if ((name = strrchr(program, '/')) == NULL) in usage()
50 name = program; in usage()
52 name++; in usage()
58 name); in usage()
92 char *name = NULL; in lpstat_default_printer() local
101 name = printer_name(p); in lpstat_default_printer()
103 if (name != NULL) in lpstat_default_printer()
104 printf(gettext("system default printer: %s\n"), name); in lpstat_default_printer()
118 char *name = NULL; in lpstat_service_status() local
120 if (((name = getenv("PAPI_SERVICE_URI")) == NULL) && in lpstat_service_status()
121 ((name = getenv("IPP_SERVER")) == NULL) && in lpstat_service_status()
122 ((name = getenv("CUPS_SERVER")) == NULL)) in lpstat_service_status()
123 name = DEFAULT_SERVICE_URI; in lpstat_service_status()
125 status = papiServiceCreate(&svc, name, NULL, NULL, cli_auth_callback, in lpstat_service_status()
137 get_device_uri(papi_service_t svc, char *name) in get_device_uri() argument
144 status = papiPrinterQuery(svc, name, keys, NULL, &p); in get_device_uri()
200 report_device(papi_service_t svc, char *name, papi_printer_t printer, in report_device() argument
209 if (name == NULL) { in report_device()
211 "printer-name", &name); in report_device()
214 "printer-uri-supported", &name); in report_device()
217 if (name == NULL) in report_device()
229 device = get_device_uri(svc, name); in report_device()
232 printf(gettext("device for %s: %s\n"), name, device); in report_device()
235 printf(gettext("system for %s: %s (as %s)\n"), name, in report_device()
252 report_accepting(papi_service_t svc, char *name, papi_printer_t printer, in report_accepting() argument
260 if (name == NULL) { in report_accepting()
262 "printer-name", &name); in report_accepting()
265 "printer-uri-supported", &name); in report_accepting()
267 if (name == NULL) in report_accepting()
282 name, nctime(&curr)); in report_accepting()
290 name, nctime(&curr), reason); in report_accepting()
300 report_class(papi_service_t svc, char *name, papi_printer_t printer, in report_class() argument
313 if (name == NULL) { in report_class()
315 "printer-name", &name); in report_class()
318 "printer-uri-supported", &name); in report_class()
320 if (name == NULL) in report_class()
323 printf(gettext("members of class %s:\n\t%s\n"), name, member); in report_class()
374 report_printer(papi_service_t svc, char *name, papi_printer_t printer, in report_printer() argument
389 if (name == NULL) { in report_printer()
391 "printer-name", &name); in report_printer()
394 "printer-uri-supported", &name); in report_printer()
396 if (name == NULL) in report_printer()
399 printf(gettext("printer %s "), name); in report_printer()
410 status = papiPrinterListJobs(svc, name, NULL, in report_printer()
453 name, jobid); in report_printer()
458 name, jobid); in report_printer()
514 "%s\n"), name, host); in report_printer()
534 print_description(attrs, name); in report_printer()
665 print_description(attrs, name); in report_printer()
676 printer_query(char *name, int (*report)(papi_service_t, char *, papi_printer_t, in printer_query() argument
683 char **list = getlist(name, LP_WS, LP_SEP); in printer_query()
687 list[0] = name; in printer_query()
696 for (i = 0; name == NULL || list[i] != NULL; i++) { in printer_query()
697 name = list[i]; in printer_query()
699 status = papiServiceCreate(&svc, name, NULL, NULL, in printer_query()
705 name ? name : "(NULL)"); in printer_query()
709 name ? name : "(NULL)", in printer_query()
716 if (name == NULL) { /* all */ in printer_query()
745 status = papiPrinterQuery(svc, name, keys, in printer_query()
750 name, verbose_papi_message(svc, status)); in printer_query()
757 result += report(svc, name, printer, verbose, in printer_query()
765 if (name == NULL) in printer_query()
1156 report_form(char *name, papi_attribute_t **attrs, int verbose) in report_form() argument
1167 if ((name == NULL) || (strcmp(name, form) == 0)) { in report_form()
1183 report_print_wheels(char *name, papi_attribute_t **attrs, int verbose) in report_print_wheels() argument
1193 if ((name == NULL) || (strcmp(name, pw) == 0)) { in report_print_wheels()
1209 service_query(char *name, int (*report)(char *, papi_attribute_t **, int), in service_query() argument
1217 status = papiServiceCreate(&svc, name, NULL, NULL, cli_auth_callback, in service_query()
1226 result = report(name, attrs, verbose); in service_query()