/external/libcups/cups/ |
D | options.c | 28 static int cups_find_option(const char *name, int num_options, 45 int num_options, /* I - Number of options */ in cupsAddIntegerOption() argument 53 return (cupsAddOption(name, strvalue, num_options, options)); in cupsAddIntegerOption() 67 int num_options,/* I - Number of options */ in cupsAddOption() argument 75 …(name=\"%s\", value=\"%s\", num_options=%d, options=%p)", name, value, num_options, (void *)option… in cupsAddOption() 77 if (!name || !name[0] || !value || !options || num_options < 0) in cupsAddOption() 79 DEBUG_printf(("3cupsAddOption: Returning %d", num_options)); in cupsAddOption() 80 return (num_options); in cupsAddOption() 84 num_options = cupsRemoveOption("print-quality", num_options, options); in cupsAddOption() 86 num_options = cupsRemoveOption("cupsPrintQuality", num_options, options); in cupsAddOption() [all …]
|
D | testppd.c | 154 int num_options; /* Number of options */ in main() local 309 num_options = cupsGetConflicts(ppd, "InputSlot", "Envelope", &options); in main() 310 if (num_options != 2 || in main() 311 (val = cupsGetOption("PageRegion", num_options, options)) == NULL || in main() 313 (val = cupsGetOption("PageSize", num_options, options)) == NULL || in main() 316 printf("FAIL (%d options:", num_options); in main() 317 for (i = 0; i < num_options; i ++) in main() 337 num_options = 0; in main() 339 if (!cupsResolveConflicts(ppd, "InputSlot", "Envelope", &num_options, in main() 345 else if (num_options != 2 || in main() [all …]
|
D | testoptions.c | 31 num_options; /* Number of options */ in main() local 47 num_options = cupsParseOptions("foo=1234 " in main() 56 if (num_options != 6) in main() 58 printf("FAIL (num_options=%d, expected 6)\n", num_options); in main() 61 else if ((value = cupsGetOption("foo", num_options, options)) == NULL || in main() 67 else if ((value = cupsGetOption("bar", num_options, options)) == NULL || in main() 74 else if ((value = cupsGetOption("baz", num_options, options)) == NULL || in main() 80 else if ((value = cupsGetOption("foobar", num_options, options)) == NULL || in main() 86 else if ((value = cupsGetOption("barfoo", num_options, options)) == NULL || in main() 92 else if ((value = cupsGetOption("auth-info", num_options, options)) == NULL || in main() [all …]
|
D | testconflicts.c | 38 int num_options; /* Number of options */ in main() local 69 num_options = 0; in main() 72 if (!cupsResolveConflicts(ppd, option, choice, &num_options, &options)) in main() 74 else if ((!option && num_options > 0) || (option && num_options > 1)) in main() 77 for (i = 0; i < num_options; i ++) in main() 82 cupsFreeOptions(num_options, options); in main() 113 num_options = cupsParseOptions(ptr, 0, &options); in main() 116 if (cupsMarkOptions(ppd, num_options, options)) in main() 118 cupsFreeOptions(num_options, options); in main()
|
D | ppd-mark.c | 53 int num_options, /* I - Number of options */ in cupsMarkOptions() argument 76 if (!ppd || num_options <= 0 || !options) in cupsMarkOptions() 86 media = cupsGetOption("media", num_options, options); in cupsMarkOptions() 87 output_bin = cupsGetOption("output-bin", num_options, options); in cupsMarkOptions() 88 page_size = cupsGetOption("PageSize", num_options, options); in cupsMarkOptions() 89 print_quality = cupsGetOption("print-quality", num_options, options); in cupsMarkOptions() 90 sides = cupsGetOption("sides", num_options, options); in cupsMarkOptions() 92 if ((print_color_mode = cupsGetOption("print-color-mode", num_options, in cupsMarkOptions() 94 print_color_mode = cupsGetOption("output-mode", num_options, options); in cupsMarkOptions() 146 !cupsGetOption(cache->source_option, num_options, options) && in cupsMarkOptions() [all …]
|
D | testcups.c | 367 …if ((dval = cupsGetOption("printer-is-temporary", dests[i].num_options, dest[i].options)) != NULL … in main() 421 dest->num_options, dest->options) <= 0) in main() 510 a->num_options != b->num_options) in dests_equal() 513 for (i = a->num_options, aoption = a->options; i > 0; i --, aoption ++) in dests_equal() 514 if ((bval = cupsGetOption(aoption->name, b->num_options, in dests_equal() 543 for (i = dest->num_options, option = dest->options; i > 0; i --, option ++) in enum_cb() 582 if (a->num_options != b->num_options) in show_diffs() 583 printf(" num_options %-24d %-24d\n", a->num_options, in show_diffs() 584 b->num_options); in show_diffs() 586 for (i = a->num_options, aoption = a->options; i > 0; i --, aoption ++) in show_diffs() [all …]
|
D | ppd-conflicts.c | 48 int num_options, 76 num_options; /* Number of conflicting options */ in cupsGetConflicts() local 104 for (num_options = 0, c = (_ppd_cups_uiconsts_t *)cupsArrayFirst(active); in cupsGetConflicts() 114 num_options = cupsAddOption(cptr->option->keyword, in cupsGetConflicts() 115 cptr->choice->choice, num_options, in cupsGetConflicts() 119 num_options = cupsAddOption(cptr->option->keyword, marked->choice, in cupsGetConflicts() 120 num_options, options); in cupsGetConflicts() 126 return (num_options); in cupsGetConflicts() 172 int *num_options, /* IO - Number of additional selected options */ in cupsResolveConflicts() argument 202 if (!ppd || !num_options || !options || (option == NULL) != (choice == NULL)) in cupsResolveConflicts() [all …]
|
D | cups.h | 260 int num_options; /* Number of options */ member 352 const char *title, int num_options, 356 int num_options, cups_option_t *options); 369 int num_options, cups_option_t **options); 370 extern void cupsEncodeOptions(ipp_t *ipp, int num_options, 372 extern void cupsFreeOptions(int num_options, 374 extern const char *cupsGetOption(const char *name, int num_options, 376 extern int cupsParseOptions(const char *arg, int num_options, 408 const char *title, int num_options, 412 const char *title, int num_options, [all …]
|
D | util.c | 159 int num_options, /* I - Number of options */ in cupsCreateJob() argument 168 …title=\"%s\", num_options=%d, options=%p)", (void *)http, name, title, num_options, (void *)option… in cupsCreateJob() 203 status = cupsCreateDestJob(http, dest, info, &job_id, title, num_options, options); in cupsCreateJob() 709 int num_options,/* I - Number of options */ in cupsPrintFile() argument 712 …\", title=\"%s\", num_options=%d, options=%p)", name, filename, title, num_options, (void *)option… in cupsPrintFile() 715 num_options, options)); in cupsPrintFile() 732 int num_options, /* I - Number of options */ in cupsPrintFile2() argument 735 …\", num_options=%d, options=%p)", (void *)http, name, filename, title, num_options, (void *)option… in cupsPrintFile2() 737 return (cupsPrintFiles2(http, name, 1, &filename, title, num_options, in cupsPrintFile2() 755 int num_options, /* I - Number of options */ in cupsPrintFiles() argument [all …]
|
D | dest.c | 294 if (instance && parent && parent->num_options > 0) in cupsAddDest() 300 dest->options = calloc(sizeof(cups_option_t), (size_t)parent->num_options); in cupsAddDest() 304 dest->num_options = parent->num_options; in cupsAddDest() 306 for (i = dest->num_options, doption = dest->options, in cupsAddDest() 644 if ((uri = cupsGetOption("device-uri", dest->num_options, dest->options)) != NULL) in cupsConnectDest() 652 else if ((uri = cupsGetOption("printer-uri-supported", dest->num_options, dest->options)) == NULL) in cupsConnectDest() 654 if ((uri = cupsGetOption("device-uri", dest->num_options, dest->options)) != NULL) in cupsConnectDest() 663 …uri = _cupsCreateDest(dest->name, cupsGetOption("printer-info", dest->num_options, dest->options),… in cupsConnectDest() 667 …dest->num_options = cupsAddOption("printer-uri-supported", uri, dest->num_options, &dest->options); in cupsConnectDest() 669 uri = cupsGetOption("printer-uri-supported", dest->num_options, dest->options); in cupsConnectDest() [all …]
|
D | testcache.c | 34 int num_options = 0;/* Number of options */ in main() local 68 num_options = cupsParseOptions(argv[i], num_options, &options); in main() 71 cupsMarkOptions(ppd, num_options, options); in main() 73 …num_finishings = _ppdCacheGetFinishingValues(pc, num_options, options, (int)sizeof(finishings) / s… in main()
|
D | dest-job.c | 170 int num_options, /* I - Number of job options */ in cupsCreateDestJob() argument 179 …LL, dest ? dest->instance : NULL, (void *)info, (void *)job_id, title, num_options, (void *)option… in cupsCreateDestJob() 223 cupsEncodeOptions2(request, num_options, options, IPP_TAG_OPERATION); in cupsCreateDestJob() 224 cupsEncodeOptions2(request, num_options, options, IPP_TAG_JOB); in cupsCreateDestJob() 225 cupsEncodeOptions2(request, num_options, options, IPP_TAG_SUBSCRIPTION); in cupsCreateDestJob() 320 int num_options, /* I - Number of document options */ in cupsStartDestDocument() argument 328 …, dest ? dest->instance : NULL, (void *)info, job_id, docname, format, num_options, (void *)option… in cupsStartDestDocument() 375 cupsEncodeOptions2(request, num_options, options, IPP_TAG_OPERATION); in cupsStartDestDocument() 376 cupsEncodeOptions2(request, num_options, options, IPP_TAG_DOCUMENT); in cupsStartDestDocument()
|
D | testdest.c | 30 …ttp, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *filename, int num_options, cups_option_t … 31 static void show_conflicts(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, int num_options, c… 149 num_options = 0;/* Number of options */ in main() local 153 num_options = cupsParseOptions(argv[i], num_options, &options); in main() 155 show_conflicts(http, dest, dinfo, num_options, options); in main() 198 num_options = 0;/* Number of options */ in main() local 202 num_options = cupsParseOptions(argv[i], num_options, &options); in main() 204 print_file(http, dest, dinfo, argv[3], num_options, options); in main() 233 for (i = 0; i < dest->num_options; i ++) in enum_cb() 385 int num_options, /* I - Number of options */ in print_file() argument [all …]
|
D | ppd-private.h | 118 int num_options; /* Number of options to apply */ member 168 …_color_mode_sup, const char *user, const char *format, int copies, int num_options, cups_option_t … 178 int num_options, 181 int num_options, 216 extern int _ppdParseOptions(const char *s, int num_options,
|
D | encode.c | 338 int num_options, /* I - Number of options */ in cupsEncodeOptions() argument 341 DEBUG_printf(("cupsEncodeOptions(%p, %d, %p)", (void *)ipp, num_options, (void *)options)); in cupsEncodeOptions() 347 cupsEncodeOptions2(ipp, num_options, options, IPP_TAG_OPERATION); in cupsEncodeOptions() 348 cupsEncodeOptions2(ipp, num_options, options, IPP_TAG_JOB); in cupsEncodeOptions() 349 cupsEncodeOptions2(ipp, num_options, options, IPP_TAG_SUBSCRIPTION); in cupsEncodeOptions() 366 int num_options, /* I - Number of options */ in cupsEncodeOptions2() argument 387 …p_tag=%x)", (void *)ipp, ipp ? ippOpString(ippGetOperation(ipp)) : "", num_options, (void *)option… in cupsEncodeOptions2() 393 if (!ipp || num_options < 1 || !options) in cupsEncodeOptions2() 410 if ((val = (char *)cupsGetOption("document-format", num_options, in cupsEncodeOptions2() 414 else if (cupsGetOption("raw", num_options, options)) in cupsEncodeOptions2() [all …]
|
D | ppd-cache.c | 64 int num_options, /* I - Number of options */ in _cupsConvertOptions() argument 89 …if (pc->password && (password = cupsGetOption("job-password", num_options, options)) != NULL && ip… in _cupsConvertOptions() 93 if ((keyword = cupsGetOption("job-password-encryption", num_options, options)) == NULL) in _cupsConvertOptions() 123 if ((keyword = cupsGetOption("job-account-id", num_options, options)) == NULL) in _cupsConvertOptions() 124 keyword = cupsGetOption("job-billing", num_options, options); in _cupsConvertOptions() 132 if ((keyword = cupsGetOption("job-accounting-user-id", num_options, options)) == NULL) in _cupsConvertOptions() 155 (keyword = cupsGetOption(mandatory, num_options, options)) != NULL) in _cupsConvertOptions() 199 if ((keyword = cupsGetOption("PageSize", num_options, options)) == NULL) in _cupsConvertOptions() 200 keyword = cupsGetOption("media", num_options, options); in _cupsConvertOptions() 202 media_source = _ppdCacheGetSource(pc, cupsGetOption("InputSlot", num_options, options)); in _cupsConvertOptions() [all …]
|
D | ppd.h | 191 int num_options; /* Number of options */ member 370 extern int cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options) _PPD_DEPRECAT… 419 int num_options, 460 int *num_options,
|
D | cupspm.md | 122 destination \(`num_options` and `options`). 274 The `num_options` and `options` members of the `cups_dest_t` structure provide 306 dest->num_options, 424 `num_options` and `options` members of the `cups_dest_t` structure, and 439 cupsGetOption(CUPS_FINISHINGS, dest->num_options, 638 const char *title, int num_options, 642 The `num_options` and `options` arguments specify the options for the print 653 int num_options = 0; 656 num_options = cupsAddOption(CUPS_COPIES, "42", 657 num_options, &options); [all …]
|
/external/libcups/filter/ |
D | pstops.c | 64 int num_options; /* Number of options for this page */ member 73 int num_options; /* Number of document-wide options */ member 170 int num_options, 175 char *argv[], int num_options, 186 int num_options, cups_option_t *options); 200 int num_options; /* Number of print options */ in main() local 289 num_options = cupsParseOptions(argv[5], 0, &options); in main() 290 ppd = SetCommonOptions(num_options, options, 1); in main() 292 set_pstops_options(&doc, ppd, argv, num_options, options); in main() 390 cupsFreeOptions(num_options, options); in main() [all …]
|
D | common.c | 46 int num_options, /* I - Number of options */ in SetCommonOptions() argument 62 cupsMarkOptions(ppd, num_options, options); in SetCommonOptions() 83 if ((val = cupsGetOption("landscape", num_options, options)) != NULL) in SetCommonOptions() 94 else if ((val = cupsGetOption("orientation-requested", num_options, options)) != NULL) in SetCommonOptions() 110 if ((val = cupsGetOption("page-left", num_options, options)) != NULL) in SetCommonOptions() 129 if ((val = cupsGetOption("page-right", num_options, options)) != NULL) in SetCommonOptions() 148 if ((val = cupsGetOption("page-bottom", num_options, options)) != NULL) in SetCommonOptions() 167 if ((val = cupsGetOption("page-top", num_options, options)) != NULL) in SetCommonOptions()
|
D | testraster.c | 184 static int do_ppd_tests(const char *filename, int num_options, 216 int num_options; /* Number of options */ in main() local 220 for (errors = 0, num_options = 0, options = NULL, i = 1; i < argc; i ++) in main() 227 num_options = cupsParseOptions(argv[i] + 2, num_options, &options); in main() 232 num_options = cupsParseOptions(argv[i], num_options, &options); in main() 251 errors += do_ppd_tests(argv[i], num_options, options); in main() 263 cupsFreeOptions(num_options, options); in main() 276 int num_options, /* I - Number of options */ in do_ppd_tests() argument 301 cupsMarkOptions(ppd, num_options, options); in do_ppd_tests()
|
D | rastertopwg.c | 57 int num_options; /* Number of options */ in main() local 87 num_options = cupsParseOptions(argv[5], 0, &options); in main() 90 cupsMarkOptions(ppd, num_options, options); in main() 204 if ((val = cupsGetOption("print-content-optimize", num_options, in main() 226 if ((val = cupsGetOption("print-quality", num_options, options)) != NULL) in main() 239 if ((val = cupsGetOption("print-rendering-intent", num_options, in main()
|
D | rastertolabel.c | 1093 int num_options; /* Number of options */ in main() local 1164 num_options = cupsParseOptions(argv[5], 0, &options); in main() 1183 cupsMarkOptions(ppd, num_options, options); in main() 1278 cupsFreeOptions(num_options, options); in main()
|
D | common.h | 55 extern ppd_file_t *SetCommonOptions(int num_options, cups_option_t *options,
|
/external/ppp/pppd/plugins/radius/ |
D | options.h | 63 static int num_options = ((sizeof(config_options))/(sizeof(config_options[0]))); variable
|