Home
last modified time | relevance | path

Searched refs:num_options (Results 1 – 25 of 57) sorted by relevance

123

/external/libcups/cups/
Doptions.c23 static int cups_find_option(const char *name, int num_options,
40 int num_options, /* I - Number of options */ in cupsAddIntegerOption() argument
48 return (cupsAddOption(name, strvalue, num_options, options)); in cupsAddIntegerOption()
62 int num_options,/* I - Number of options */ in cupsAddOption() argument
70 …(name=\"%s\", value=\"%s\", num_options=%d, options=%p)", name, value, num_options, (void *)option… in cupsAddOption()
72 if (!name || !name[0] || !value || !options || num_options < 0) in cupsAddOption()
74 DEBUG_printf(("3cupsAddOption: Returning %d", num_options)); in cupsAddOption()
75 return (num_options); in cupsAddOption()
79 num_options = cupsRemoveOption("print-quality", num_options, options); in cupsAddOption()
81 num_options = cupsRemoveOption("cupsPrintQuality", num_options, options); in cupsAddOption()
[all …]
Dtestoptions.c25 num_options; /* Number of options */ in main() local
41 num_options = cupsParseOptions("foo=1234 " in main()
50 if (num_options != 6) in main()
52 printf("FAIL (num_options=%d, expected 6)\n", num_options); in main()
55 else if ((value = cupsGetOption("foo", num_options, options)) == NULL || in main()
61 else if ((value = cupsGetOption("bar", num_options, options)) == NULL || in main()
68 else if ((value = cupsGetOption("baz", num_options, options)) == NULL || in main()
74 else if ((value = cupsGetOption("foobar", num_options, options)) == NULL || in main()
80 else if ((value = cupsGetOption("barfoo", num_options, options)) == NULL || in main()
86 else if ((value = cupsGetOption("auth-info", num_options, options)) == NULL || in main()
[all …]
Dtestppd.c33 static int do_ppd_tests(const char *filename, int num_options, cups_option_t *options);
309 int num_options; /* Number of options */ in main() local
464 num_options = cupsGetConflicts(ppd, "InputSlot", "Envelope", &options); in main()
465 if (num_options != 2 || in main()
466 (val = cupsGetOption("PageRegion", num_options, options)) == NULL || in main()
468 (val = cupsGetOption("PageSize", num_options, options)) == NULL || in main()
471 printf("FAIL (%d options:", num_options); in main()
472 for (i = 0; i < num_options; i ++) in main()
492 num_options = 0; in main()
494 if (!cupsResolveConflicts(ppd, "InputSlot", "Envelope", &num_options, in main()
[all …]
Dtestconflicts.c32 int num_options; /* Number of options */ in main() local
63 num_options = 0; in main()
66 if (!cupsResolveConflicts(ppd, option, choice, &num_options, &options)) in main()
68 else if ((!option && num_options > 0) || (option && num_options > 1)) in main()
71 for (i = 0; i < num_options; i ++) in main()
76 cupsFreeOptions(num_options, options); in main()
107 num_options = cupsParseOptions(ptr, 0, &options); in main()
110 if (cupsMarkOptions(ppd, num_options, options)) in main()
112 cupsFreeOptions(num_options, options); in main()
Dppd-mark.c49 int num_options, /* I - Number of options */ in cupsMarkOptions() argument
72 if (!ppd || num_options <= 0 || !options) in cupsMarkOptions()
82 media = cupsGetOption("media", num_options, options); in cupsMarkOptions()
83 output_bin = cupsGetOption("output-bin", num_options, options); in cupsMarkOptions()
84 page_size = cupsGetOption("PageSize", num_options, options); in cupsMarkOptions()
85 print_quality = cupsGetOption("print-quality", num_options, options); in cupsMarkOptions()
86 sides = cupsGetOption("sides", num_options, options); in cupsMarkOptions()
88 if ((print_color_mode = cupsGetOption("print-color-mode", num_options, in cupsMarkOptions()
90 print_color_mode = cupsGetOption("output-mode", num_options, options); in cupsMarkOptions()
142 !cupsGetOption(cache->source_option, num_options, options) && in cupsMarkOptions()
[all …]
Dtestcups.c380 …if ((dval = cupsGetOption("printer-is-temporary", dests[i].num_options, dest[i].options)) != NULL … in main()
434 dest->num_options, dest->options) <= 0) in main()
523 a->num_options != b->num_options) in dests_equal()
526 for (i = a->num_options, aoption = a->options; i > 0; i --, aoption ++) in dests_equal()
527 if ((bval = cupsGetOption(aoption->name, b->num_options, in dests_equal()
556 for (i = dest->num_options, option = dest->options; i > 0; i --, option ++) in enum_cb()
595 if (a->num_options != b->num_options) in show_diffs()
596 printf(" num_options %-24d %-24d\n", a->num_options, in show_diffs()
597 b->num_options); in show_diffs()
599 for (i = a->num_options, aoption = a->options; i > 0; i --, aoption ++) in show_diffs()
[all …]
Dcups.h255 int num_options; /* Number of options */ member
347 const char *title, int num_options,
351 int num_options, cups_option_t *options) _CUPS_PUBLIC;
364 int num_options, cups_option_t **options) _CUPS_PUBLIC;
365 extern void cupsEncodeOptions(ipp_t *ipp, int num_options,
367 extern void cupsFreeOptions(int num_options,
369 extern const char *cupsGetOption(const char *name, int num_options,
371 extern int cupsParseOptions(const char *arg, int num_options,
403 const char *title, int num_options,
407 const char *title, int num_options,
[all …]
Dutil.c155 int num_options, /* I - Number of options */ in cupsCreateJob() argument
164 …title=\"%s\", num_options=%d, options=%p)", (void *)http, name, title, num_options, (void *)option… in cupsCreateJob()
199 status = cupsCreateDestJob(http, dest, info, &job_id, title, num_options, options); in cupsCreateJob()
705 int num_options,/* I - Number of options */ in cupsPrintFile() argument
708 …\", title=\"%s\", num_options=%d, options=%p)", name, filename, title, num_options, (void *)option… in cupsPrintFile()
711 num_options, options)); in cupsPrintFile()
728 int num_options, /* I - Number of options */ in cupsPrintFile2() argument
731 …\", num_options=%d, options=%p)", (void *)http, name, filename, title, num_options, (void *)option… in cupsPrintFile2()
733 return (cupsPrintFiles2(http, name, 1, &filename, title, num_options, in cupsPrintFile2()
751 int num_options, /* I - Number of options */ in cupsPrintFiles() argument
[all …]
Dppd-conflicts.c44 int num_options,
72 num_options; /* Number of conflicting options */ in cupsGetConflicts() local
100 for (num_options = 0, c = (_ppd_cups_uiconsts_t *)cupsArrayFirst(active); in cupsGetConflicts()
110 num_options = cupsAddOption(cptr->option->keyword, in cupsGetConflicts()
111 cptr->choice->choice, num_options, in cupsGetConflicts()
115 num_options = cupsAddOption(cptr->option->keyword, marked->choice, in cupsGetConflicts()
116 num_options, options); in cupsGetConflicts()
122 return (num_options); in cupsGetConflicts()
168 int *num_options, /* IO - Number of additional selected options */ in cupsResolveConflicts() argument
198 if (!ppd || !num_options || !options || (option == NULL) != (choice == NULL)) in cupsResolveConflicts()
[all …]
Ddest.c285 if (instance && parent && parent->num_options > 0) in cupsAddDest()
291 dest->options = calloc(sizeof(cups_option_t), (size_t)parent->num_options); in cupsAddDest()
295 dest->num_options = parent->num_options; in cupsAddDest()
297 for (i = dest->num_options, doption = dest->options, in cupsAddDest()
635 if ((uri = cupsGetOption("device-uri", dest->num_options, dest->options)) != NULL) in cupsConnectDest()
643 else if ((uri = cupsGetOption("printer-uri-supported", dest->num_options, dest->options)) == NULL) in cupsConnectDest()
645 if ((uri = cupsGetOption("device-uri", dest->num_options, dest->options)) != NULL) in cupsConnectDest()
654 …uri = _cupsCreateDest(dest->name, cupsGetOption("printer-info", dest->num_options, dest->options),… in cupsConnectDest()
658 …dest->num_options = cupsAddOption("printer-uri-supported", uri, dest->num_options, &dest->options); in cupsConnectDest()
660 uri = cupsGetOption("printer-uri-supported", dest->num_options, dest->options); in cupsConnectDest()
[all …]
Ddest-job.c165 int num_options, /* I - Number of job options */ in cupsCreateDestJob() argument
174 …LL, dest ? dest->instance : NULL, (void *)info, (void *)job_id, title, num_options, (void *)option… in cupsCreateDestJob()
218 cupsEncodeOptions2(request, num_options, options, IPP_TAG_OPERATION); in cupsCreateDestJob()
219 cupsEncodeOptions2(request, num_options, options, IPP_TAG_JOB); in cupsCreateDestJob()
220 cupsEncodeOptions2(request, num_options, options, IPP_TAG_SUBSCRIPTION); in cupsCreateDestJob()
315 int num_options, /* I - Number of document options */ in cupsStartDestDocument() argument
323 …, dest ? dest->instance : NULL, (void *)info, job_id, docname, format, num_options, (void *)option… in cupsStartDestDocument()
370 cupsEncodeOptions2(request, num_options, options, IPP_TAG_OPERATION); in cupsStartDestDocument()
371 cupsEncodeOptions2(request, num_options, options, IPP_TAG_DOCUMENT); in cupsStartDestDocument()
Dtestcache.c28 int num_options = 0;/* Number of options */ in main() local
62 num_options = cupsParseOptions(argv[i], num_options, &options); in main()
65 cupsMarkOptions(ppd, num_options, options); in main()
Dtestdest.c24 …ttp, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *filename, int num_options, cups_option_t …
25 static void show_conflicts(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, int num_options, c…
170 int num_options = 0;/* Number of options */ in main() local
174 num_options = cupsParseOptions(argv[i], num_options, &options); in main()
176 show_conflicts(http, dest, dinfo, num_options, options); in main()
218 int num_options = 0;/* Number of options */ in main() local
223 num_options = cupsParseOptions(argv[i], num_options, &options); in main()
225 print_file(http, dest, dinfo, filename, num_options, options); in main()
254 for (i = 0; i < dest->num_options; i ++) in enum_cb()
408 int num_options, /* I - Number of options */ in print_file() argument
[all …]
Dppd-private.h106 int num_options; /* Number of options to apply */ member
158 …_color_mode_sup, const char *user, const char *format, int copies, int num_options, cups_option_t …
160 extern int _cupsRasterInterpretPPD(cups_page_header2_t *h, ppd_file_t *ppd, int num_options, cups_…
171 int num_options,
205 extern int _ppdParseOptions(const char *s, int num_options,
Dencode.c699 int num_options, /* I - Number of options */ in cupsEncodeOptions() argument
702 DEBUG_printf(("cupsEncodeOptions(%p, %d, %p)", (void *)ipp, num_options, (void *)options)); in cupsEncodeOptions()
708 cupsEncodeOptions2(ipp, num_options, options, IPP_TAG_OPERATION); in cupsEncodeOptions()
709 cupsEncodeOptions2(ipp, num_options, options, IPP_TAG_JOB); in cupsEncodeOptions()
710 cupsEncodeOptions2(ipp, num_options, options, IPP_TAG_SUBSCRIPTION); in cupsEncodeOptions()
727 int num_options, /* I - Number of options */ in cupsEncodeOptions2() argument
738 …p_tag=%x)", (void *)ipp, ipp ? ippOpString(ippGetOperation(ipp)) : "", num_options, (void *)option… in cupsEncodeOptions2()
744 if (!ipp || num_options < 1 || !options) in cupsEncodeOptions2()
759 if ((val = (char *)cupsGetOption("document-format", num_options, options)) != NULL) in cupsEncodeOptions2()
761 else if (cupsGetOption("raw", num_options, options)) in cupsEncodeOptions2()
[all …]
/external/libcups/berkeley/
Dlpr.c44 int num_options; /* Number of options */ in main() local
55 num_options = 0; in main()
153 num_options = cupsParseOptions(opt + 1, num_options, &options); in main()
165 num_options = cupsParseOptions(argv[i], num_options, &options); in main()
170 num_options = cupsAddOption("raw", "true", num_options, &options); in main()
174 num_options = cupsAddOption("prettyprint", "true", num_options, &options); in main()
178 num_options = cupsAddOption("job-sheets", "none", num_options, &options); in main()
189 num_options = cupsAddOption("notify-recipient-uri", email, num_options, &options); in main()
194 num_options = cupsAddOption("job-hold-until", "indefinite", num_options, &options); in main()
224 for (j = 0; j < dest->num_options; j ++) in main()
[all …]
/external/libcups/systemv/
Dlp.c23 static int set_job_attrs(const char *command, int job_id, int num_options, cups_option_t *options);
47 int num_options; /* Number of options */ in main() local
77 num_options = 0; in main()
149 for (j = 0; j < dest->num_options; j ++) in main()
150 if (cupsGetOption(dest->options[j].name, num_options, in main()
152 num_options = cupsAddOption(dest->options[j].name, in main()
154 num_options, &options); in main()
252 num_options = cupsAddOption("notify-recipient-uri", email, num_options, &options); in main()
284 num_options = cupsAddOption("copies", buffer, num_options, in main()
291 num_options = cupsParseOptions(opt + 1, num_options, &options); in main()
[all …]
Dlpoptions.c38 int num_options; /* Number of options */ in main() local
58 num_options = 0; in main()
110 for (j = 0; j < dest->num_options; j ++) in main()
111 if (cupsGetOption(dest->options[j].name, num_options, in main()
113 num_options = cupsAddOption(dest->options[j].name, in main()
115 num_options, &options); in main()
171 for (j = 0; j < dest->num_options; j ++) in main()
172 if (cupsGetOption(dest->options[j].name, num_options, options) == NULL) in main()
173 num_options = cupsAddOption(dest->options[j].name, in main()
175 num_options, &options); in main()
[all …]
Dlpadmin.c31 static char *get_printer_ppd(const char *uri, char *buffer, size_t bufsize, int *num_options, cups…
35 int num_options, cups_option_t *options,
56 int num_options; /* Number of options */ in main() local
68 num_options = 0; in main()
273 num_options = cupsAddOption("ppd-name", opt + 1, num_options, &options); in main()
286 num_options = cupsAddOption("ppd-name", argv[i], num_options, &options); in main()
293 num_options = cupsParseOptions(opt + 1, num_options, &options); in main()
306 num_options = cupsParseOptions(argv[i], num_options, &options); in main()
467 num_options = cupsAddOption("requesting-user-name-allowed", val + 6, num_options, &options); in main()
469 num_options = cupsAddOption("requesting-user-name-denied", val + 5, num_options, &options); in main()
[all …]
/external/libcups/filter/
Dpstops.c59 int num_options; /* Number of options for this page */ member
68 int num_options; /* Number of document-wide options */ member
165 int num_options,
170 char *argv[], int num_options,
181 int num_options, cups_option_t *options);
195 int num_options; /* Number of print options */ in main() local
284 num_options = cupsParseOptions(argv[5], 0, &options); in main()
285 ppd = SetCommonOptions(num_options, options, 1); in main()
287 set_pstops_options(&doc, ppd, argv, num_options, options); in main()
385 cupsFreeOptions(num_options, options); in main()
[all …]
Dcommon.c40 int num_options, /* I - Number of options */ in SetCommonOptions() argument
56 cupsMarkOptions(ppd, num_options, options); in SetCommonOptions()
77 if ((val = cupsGetOption("landscape", num_options, options)) != NULL) in SetCommonOptions()
88 else if ((val = cupsGetOption("orientation-requested", num_options, options)) != NULL) in SetCommonOptions()
104 if ((val = cupsGetOption("page-left", num_options, options)) != NULL) in SetCommonOptions()
123 if ((val = cupsGetOption("page-right", num_options, options)) != NULL) in SetCommonOptions()
142 if ((val = cupsGetOption("page-bottom", num_options, options)) != NULL) in SetCommonOptions()
161 if ((val = cupsGetOption("page-top", num_options, options)) != NULL) in SetCommonOptions()
/external/libcups/tools/
Dippeveps.c49 static int pdf_to_ps(const char *filename, int copies, int num_options, cups_option_t *options);
65 int num_options; /* Number of options */ in main() local
73 num_options = get_options(&options); in main()
95 return (pdf_to_ps(argv[1], copies, num_options, options)); in main()
348 int num_options = 0; /* Number of options */ in get_options() local
413 num_options = cupsAddOption("PageSize", media->ppd, num_options, options); in get_options()
435num_options = _ppdCacheGetFinishingOptions(ppd_cache, NULL, (ipp_finishings_t)fin, num_options, op… in get_options()
445 num_options = cupsAddOption("InputSlot", choice, num_options, options); in get_options()
451 num_options = cupsAddOption("MediaType", choice, num_options, options); in get_options()
460 num_options = cupsAddOption("OutputBin", choice, num_options, options); in get_options()
[all …]
/external/tensorflow/tensorflow/lite/delegates/utils/dummy_delegate/
Dexternal_delegate_adaptor.cc28 size_t num_options) { in CreateDummyDelegateFromOptions() argument
34 std::unique_ptr<const char*>(new const char*[num_options + 1]); in CreateDummyDelegateFromOptions()
39 option_args.reserve(num_options); in CreateDummyDelegateFromOptions()
40 for (int i = 0; i < num_options; ++i) { in CreateDummyDelegateFromOptions()
67 int argc = num_options + 1; in CreateDummyDelegateFromOptions()
92 char** options_keys, char** options_values, size_t num_options, in tflite_plugin_create_delegate() argument
95 options_keys, options_values, num_options); in tflite_plugin_create_delegate()
/external/libcups/scheduler/
Dcups-lpd.c56 …tp_t *http, const char *dest, const char *title, const char *user, int num_options, cups_option_t …
329 int num_options, /* I - Number of options for job */ in create_job() argument
358 cupsEncodeOptions(request, num_options, options); in create_job()
414 int num_options; /* Number of options */ in get_printer() local
651 num_options = 0; in get_printer()
687 num_options = cupsParseOptions(optptr, num_options, options); in get_printer()
702 return (num_options); in get_printer()
797 num_options; /* Number of options */ in recv_print_job() local
822 num_options = get_printer(http, queue, dest, sizeof(dest), &options, in recv_print_job()
825 if (num_options < 0 || !accepting || !shared) in recv_print_job()
[all …]
Dcupsfilter.c67 static char *escape_options(int num_options, cups_option_t *options);
74 const char *title, int num_options,
114 int num_options; /* Number of options */ in main() local
141 num_options = 0; in main()
186 num_options = cupsParseOptions(argv[i], num_options, &options); in main()
196 num_options = cupsAddOption("copies", argv[i], num_options, &options); in main()
272 num_options = cupsAddOption("copies", argv[i], num_options, &options); in main()
289 num_options = cupsParseOptions(argv[i], num_options, &options); in main()
502 title, num_options, options); in main()
747 int num_options, /* I - Number of options */ in escape_options() argument
[all …]

123