Home | History | Annotate | Download | only in cups

Lines Matching refs:http

10  * missing or damaged, see the license at "http://www.cups.org/".
29 static void localize(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option, const char *value);
30 static void print_file(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *filename, int num_options, cups_option_t *options);
31 static void show_conflicts(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, int num_options, cups_option_t *options);
32 static void show_default(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option);
33 static void show_media(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, unsigned flags, const char *name);
34 static void show_supported(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *option, const char *value);
46 http_t *http; /* Connection to destination */
125 if ((http = cupsConnectDest(dest, CUPS_DEST_FLAGS_NONE, 30000, NULL, NULL, 0, NULL, NULL)) == NULL)
131 if ((dinfo = cupsCopyDestInfo(http, dest)) == NULL)
140 show_supported(http, dest, dinfo, argv[3], argv[4]);
142 show_supported(http, dest, dinfo, argv[3], NULL);
144 show_supported(http, dest, dinfo, NULL, NULL);
155 show_conflicts(http, dest, dinfo, num_options, options);
159 show_default(http, dest, dinfo, argv[3]);
164 localize(http, dest, dinfo, argv[3], argv[4]);
166 localize(http, dest, dinfo, argv[3], NULL);
168 localize(http, dest, dinfo, NULL, NULL);
193 show_media(http, dest, dinfo, flags, name);
204 print_file(http, dest, dinfo, argv[3], num_options, options);
245 localize(http_t *http, /* I - Connection to destination */
258 attr = cupsFindDestSupported(http, dest, dinfo, "job-creation-attributes");
263 localize(http, dest, dinfo, ippGetString(attr, i, NULL), NULL);
282 if (cupsCheckDestSupported(http, dest, dinfo, options[i], NULL))
283 localize(http, dest, dinfo, options[i], NULL);
288 printf("%s (%s)\n", option, cupsLocalizeDestOption(http, dest, dinfo, option));
290 if ((attr = cupsFindDestSupported(http, dest, dinfo, option)) != NULL)
340 printf(" %s (%s)\n", ippGetString(attr, i, NULL), cupsLocalizeDestValue(http, dest, dinfo, option, ippGetString(attr, i, NULL)));
372 puts(cupsLocalizeDestValue(http, dest, dinfo, option, value));
381 print_file(http_t *http, /* I - Connection to destination */
407 if ((status = cupsCreateDestJob(http, dest, dinfo, &job_id, title, num_options, options)) > IPP_STATUS_OK_IGNORED_OR_SUBSTITUTED)
416 if (cupsStartDestDocument(http, dest, dinfo, job_id, title, CUPS_FORMAT_AUTO, 0, NULL, 1) != HTTP_STATUS_CONTINUE)
425 if (cupsWriteRequestData(http, buffer, (size_t)bytes) != HTTP_STATUS_CONTINUE)
434 if ((status = cupsFinishDestDocument(http, dest, dinfo)) > IPP_STATUS_OK_IGNORED_OR_SUBSTITUTED)
450 http_t *http, /* I - Connection to destination */
456 (void)http;
469 show_default(http_t *http, /* I - Connection to destination */
482 if (cupsGetDestMediaDefault(http, dest, dinfo, CUPS_MEDIA_FLAGS_DEFAULT, &size))
495 if ((defattr = cupsFindDestDefault(http, dest, dinfo, option)) != NULL)
513 show_media(http_t *http, /* I - Connection to destination */
550 if (cupsGetDestMediaBySize(http, dest, dinfo, width, length, flags, &size))
552 printf(" %s (%s) %dx%d B%d L%d R%d T%d\n", size.media, cupsLocalizeDestMedia(http, dest, dinfo, flags, &size), size.width, size.length, size.bottom, size.left, size.right, size.top);
559 else if (cupsGetDestMediaByName(http, dest, dinfo, name, flags, &size))
561 printf(" %s (%s) %dx%d B%d L%d R%d T%d\n", size.media, cupsLocalizeDestMedia(http, dest, dinfo, flags, &size), size.width, size.length, size.bottom, size.left, size.right, size.top);
570 count = cupsGetDestMediaCount(http, dest, dinfo, flags);
575 if (cupsGetDestMediaByIndex(http, dest, dinfo, i, flags, &size))
576 printf(" %s (%s) %dx%d B%d L%d R%d T%d\n", size.media, cupsLocalizeDestMedia(http, dest, dinfo, flags, &size), size.width, size.length, size.bottom, size.left, size.right, size.top);
589 show_supported(http_t *http, /* I - Connection to destination */
602 attr = cupsFindDestSupported(http, dest, dinfo, "job-creation-attributes");
607 show_supported(http, dest, dinfo, ippGetString(attr, i, NULL), NULL);
626 if (cupsCheckDestSupported(http, dest, dinfo, options[i], NULL))
627 show_supported(http, dest, dinfo, options[i], NULL);
632 printf("%s (%s - %s)\n", option, cupsLocalizeDestOption(http, dest, dinfo, option), cupsCheckDestSupported(http, dest, dinfo, option, NULL) ? "supported" : "not-supported");
634 if ((attr = cupsFindDestSupported(http, dest, dinfo, option)) != NULL)
652 printf(" %s (%s)\n", ippEnumString(option, ippGetInteger(attr, i)), cupsLocalizeDestValue(http, dest, dinfo, option, valstr));
681 printf(" %s (%s)\n", ippGetString(attr, i, NULL), cupsLocalizeDestValue(http, dest, dinfo, option, ippGetString(attr, i, NULL)));
725 else if (cupsCheckDestSupported(http, dest, dinfo, option, value))