Searched refs:num_options (Results 1 - 25 of 29) sorted by relevance

12

/external/libcups/cups/
H A Doptions.c28 static int cups_find_option(const char *name, int num_options,
36 * "num_options" parameter.
45 int num_options, /* I - Number of options */
53 return (cupsAddOption(name, strvalue, num_options, options));
61 * "num_options" parameter.
67 int num_options,/* I - Number of options */
75 DEBUG_printf(("2cupsAddOption(name=\"%s\", value=\"%s\", num_options=%d, options=%p)", name, value, num_options, (void *)options));
77 if (!name || !name[0] || !value || !options || num_options < 0)
79 DEBUG_printf(("3cupsAddOption: Returning %d", num_options));
42 cupsAddIntegerOption( const char *name, int value, int num_options, cups_option_t **options) argument
65 cupsAddOption(const char *name, const char *value, int num_options, cups_option_t **options) argument
165 cupsFreeOptions( int num_options, cups_option_t *options) argument
197 cupsGetIntegerOption( const char *name, int num_options, cups_option_t *options) argument
224 cupsGetOption(const char *name, int num_options, cups_option_t *options) argument
264 cupsParseOptions( const char *arg, int num_options, cups_option_t **options) argument
488 cupsRemoveOption( const char *name, int num_options, cups_option_t **options) argument
644 cups_find_option( const char *name, int num_options, cups_option_t *options, int prev, int *rdiff) argument
[all...]
H A Dtestconflicts.c38 int num_options; /* Number of options */ local
69 num_options = 0;
72 if (!cupsResolveConflicts(ppd, option, choice, &num_options, &options))
74 else if ((!option && num_options > 0) || (option && num_options > 1))
77 for (i = 0; i < num_options; i ++)
82 cupsFreeOptions(num_options, options);
113 num_options = cupsParseOptions(ptr, 0, &options);
116 if (cupsMarkOptions(ppd, num_options, options))
118 cupsFreeOptions(num_options, option
[all...]
H A Dtestoptions.c31 num_options; /* Number of options */ local
47 num_options = cupsParseOptions("foo=1234 "
56 if (num_options != 6)
58 printf("FAIL (num_options=%d, expected 6)\n", num_options);
61 else if ((value = cupsGetOption("foo", num_options, options)) == NULL ||
67 else if ((value = cupsGetOption("bar", num_options, options)) == NULL ||
74 else if ((value = cupsGetOption("baz", num_options, options)) == NULL ||
80 else if ((value = cupsGetOption("foobar", num_options, options)) == NULL ||
86 else if ((value = cupsGetOption("barfoo", num_options, option
[all...]
H A Dtestcache.c34 int num_options = 0;/* Number of options */ local
68 num_options = cupsParseOptions(argv[i], num_options, &options);
71 cupsMarkOptions(ppd, num_options, options);
73 num_finishings = _ppdCacheGetFinishingValues(pc, num_options, options, (int)sizeof(finishings) / sizeof(finishings[0]), finishings);
H A Dtestppd.c154 int num_options; /* Number of options */ local
309 num_options = cupsGetConflicts(ppd, "InputSlot", "Envelope", &options);
310 if (num_options != 2 ||
311 (val = cupsGetOption("PageRegion", num_options, options)) == NULL ||
313 (val = cupsGetOption("PageSize", num_options, options)) == NULL ||
316 printf("FAIL (%d options:", num_options);
317 for (i = 0; i < num_options; i ++)
337 num_options = 0;
339 if (!cupsResolveConflicts(ppd, "InputSlot", "Envelope", &num_options,
345 else if (num_options !
[all...]
H A Dppd-mark.c53 int num_options, /* I - Number of options */
76 if (!ppd || num_options <= 0 || !options)
86 media = cupsGetOption("media", num_options, options);
87 output_bin = cupsGetOption("output-bin", num_options, options);
88 page_size = cupsGetOption("PageSize", num_options, options);
89 print_quality = cupsGetOption("print-quality", num_options, options);
90 sides = cupsGetOption("sides", num_options, options);
92 if ((print_color_mode = cupsGetOption("print-color-mode", num_options,
94 print_color_mode = cupsGetOption("output-mode", num_options, options);
146 !cupsGetOption(cache->source_option, num_options, option
51 cupsMarkOptions( ppd_file_t *ppd, int num_options, cups_option_t *options) argument
621 _ppdParseOptions( const char *s, int num_options, cups_option_t **options, _ppd_parse_t which) argument
748 num_options; /* Number of options */ local
[all...]
H A Ddest-job.c170 int num_options, /* I - Number of job options */
179 "job_id=%p, title=\"%s\", num_options=%d, options=%p)", (void *)http, (void *)dest, dest ? dest->name : NULL, dest ? dest->instance : NULL, (void *)info, (void *)job_id, title, num_options, (void *)options));
223 cupsEncodeOptions2(request, num_options, options, IPP_TAG_OPERATION);
224 cupsEncodeOptions2(request, num_options, options, IPP_TAG_JOB);
225 cupsEncodeOptions2(request, num_options, options, IPP_TAG_SUBSCRIPTION);
304 * document (see CUPS_FORMAT_xxx constants), and "num_options" and "options"
320 int num_options, /* I - Number of document options */
328 DEBUG_printf(("cupsStartDestDocument(http=%p, dest=%p(%s/%s), info=%p, job_id=%d, docname=\"%s\", format=\"%s\", num_options=%d, options=%p, last_document=%d)", (void *)http, (void *)dest, dest ? dest->name : NULL, dest ? dest->instance : NULL, (void *)info, job_id, docname, format, num_options, (voi
164 cupsCreateDestJob( http_t *http, cups_dest_t *dest, cups_dinfo_t *info, int *job_id, const char *title, int num_options, cups_option_t *options) argument
313 cupsStartDestDocument( http_t *http, cups_dest_t *dest, cups_dinfo_t *info, int job_id, const char *docname, const char *format, int num_options, cups_option_t *options, int last_document) argument
[all...]
H A Dtestcups.c367 if ((dval = cupsGetOption("printer-is-temporary", dests[i].num_options, dest[i].options)) != NULL && !strcmp(dval, "false"))
421 dest->num_options, dest->options) <= 0)
510 a->num_options != b->num_options)
513 for (i = a->num_options, aoption = a->options; i > 0; i --, aoption ++)
514 if ((bval = cupsGetOption(aoption->name, b->num_options,
543 for (i = dest->num_options, option = dest->options; i > 0; i --, option ++)
582 if (a->num_options != b->num_options)
583 printf(" num_options
[all...]
H A Dppd-private.h118 int num_options; /* Number of options to apply */ member in struct:_pwg_finishings_s
168 extern int _cupsConvertOptions(ipp_t *request, ppd_file_t *ppd, _ppd_cache_t *pc, ipp_attribute_t *media_col_sup, ipp_attribute_t *doc_handling_sup, ipp_attribute_t *print_color_mode_sup, const char *user, const char *format, int copies, int num_options, cups_option_t *options);
178 int num_options,
181 int num_options,
216 extern int _ppdParseOptions(const char *s, int num_options,
H A Dcups.h260 int num_options; /* Number of options */ member in struct:cups_dest_s
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...]
H A Dutil.c172 int num_options, /* I - Number of options */
181 DEBUG_printf(("cupsCreateJob(http=%p, name=\"%s\", title=\"%s\", num_options=%d, options=%p)", (void *)http, name, title, num_options, (void *)options));
221 status = cupsCreateDestJob(http, data.dest, info, &job_id, title, num_options, options);
727 int num_options,/* I - Number of options */
730 DEBUG_printf(("cupsPrintFile(name=\"%s\", filename=\"%s\", title=\"%s\", num_options=%d, options=%p)", name, filename, title, num_options, (void *)options));
733 num_options, options));
750 int num_options, /* I - Number of options */
753 DEBUG_printf(("cupsPrintFile2(http=%p, name=\"%s\", filename=\"%s\", title=\"%s\", num_options
168 cupsCreateJob( http_t *http, const char *name, const char *title, int num_options, cups_option_t *options) argument
724 cupsPrintFile(const char *name, const char *filename, const char *title, int num_options, cups_option_t *options) argument
745 cupsPrintFile2( http_t *http, const char *name, const char *filename, const char *title, int num_options, cups_option_t *options) argument
768 cupsPrintFiles( const char *name, int num_files, const char **files, const char *title, int num_options, cups_option_t *options) argument
795 cupsPrintFiles2( http_t *http, const char *name, int num_files, const char **files, const char *title, int num_options, cups_option_t *options) argument
[all...]
H A Ddest.c294 if (instance && parent && parent->num_options > 0)
300 dest->options = calloc(sizeof(cups_option_t), (size_t)parent->num_options);
304 dest->num_options = parent->num_options;
306 for (i = dest->num_options, doption = dest->options,
644 if ((uri = cupsGetOption("device-uri", dest->num_options, dest->options)) != NULL)
652 else if ((uri = cupsGetOption("printer-uri-supported", dest->num_options, dest->options)) == NULL)
654 if ((uri = cupsGetOption("device-uri", dest->num_options, dest->options)) != NULL)
663 uri = _cupsCreateDest(dest->name, cupsGetOption("printer-info", dest->num_options, dest->options), NULL, uri, tempresource, sizeof(tempresource));
667 dest->num_options
1338 int num_options; /* Number of options */ local
[all...]
H A Dencode.c338 int num_options, /* I - Number of options */
341 DEBUG_printf(("cupsEncodeOptions(%p, %d, %p)", (void *)ipp, num_options, (void *)options));
347 cupsEncodeOptions2(ipp, num_options, options, IPP_TAG_OPERATION);
348 cupsEncodeOptions2(ipp, num_options, options, IPP_TAG_JOB);
349 cupsEncodeOptions2(ipp, num_options, options, IPP_TAG_SUBSCRIPTION);
366 int num_options, /* I - Number of options */
387 DEBUG_printf(("cupsEncodeOptions2(ipp=%p(%s), num_options=%d, options=%p, group_tag=%x)", (void *)ipp, ipp ? ippOpString(ippGetOperation(ipp)) : "", num_options, (void *)options, group_tag));
393 if (!ipp || num_options < 1 || !options)
410 if ((val = (char *)cupsGetOption("document-format", num_options,
337 cupsEncodeOptions(ipp_t *ipp, int num_options, cups_option_t *options) argument
364 cupsEncodeOptions2( ipp_t *ipp, int num_options, cups_option_t *options, ipp_tag_t group_tag) argument
[all...]
H A Dppd-conflicts.c49 int num_options,
77 num_options; /* Number of conflicting options */ local
105 for (num_options = 0, c = (_ppd_cups_uiconsts_t *)cupsArrayFirst(active);
115 num_options = cupsAddOption(cptr->option->keyword,
116 cptr->choice->choice, num_options,
120 num_options = cupsAddOption(cptr->option->keyword, marked->choice,
121 num_options, options);
127 return (num_options);
136 * "num_options" and "options" contain any pending option changes that have
138 * selection which may or may not be in "num_options" o
169 cupsResolveConflicts( ppd_file_t *ppd, const char *option, const char *choice, int *num_options, cups_option_t **options) argument
949 ppd_test_constraints( ppd_file_t *ppd, const char *option, const char *choice, int num_options, cups_option_t *options, int which) argument
[all...]
H A Dtestdest.c30 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);
149 num_options = 0;/* Number of options */ local
153 num_options = cupsParseOptions(argv[i], num_options, &options);
155 show_conflicts(http, dest, dinfo, num_options, options);
198 num_options = 0;/* Number of options */ local
202 num_options = cupsParseOptions(argv[i], num_options, &options);
204 print_file(http, dest, dinfo, argv[3], num_options, option
381 print_file(http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, const char *filename, int num_options, cups_option_t *options) argument
449 show_conflicts( http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, int num_options, cups_option_t *options) argument
[all...]
H A Dppd-cache.c64 int num_options, /* I - Number of options */
89 if (pc->password && (password = cupsGetOption("job-password", num_options, options)) != NULL && ippGetOperation(request) != IPP_OP_VALIDATE_JOB)
93 if ((keyword = cupsGetOption("job-password-encryption", num_options, options)) == NULL)
123 if ((keyword = cupsGetOption("job-account-id", num_options, options)) == NULL)
124 keyword = cupsGetOption("job-billing", num_options, options);
132 if ((keyword = cupsGetOption("job-accounting-user-id", num_options, options)) == NULL)
155 (keyword = cupsGetOption(mandatory, num_options, options)) != NULL)
199 if ((keyword = cupsGetOption("PageSize", num_options, options)) == NULL)
200 keyword = cupsGetOption("media", num_options, options);
202 media_source = _ppdCacheGetSource(pc, cupsGetOption("InputSlot", num_options, option
53 _cupsConvertOptions( ipp_t *request, ppd_file_t *ppd, _ppd_cache_t *pc, ipp_attribute_t *media_col_sup, ipp_attribute_t *doc_handling_sup, ipp_attribute_t *print_color_mode_sup, const char *user, const char *format, int copies, int num_options, cups_option_t *options) argument
968 int num_options; /* Number of preset options and props */ local
2001 _ppdCacheGetFinishingOptions( _ppd_cache_t *pc, ipp_t *job, ipp_finishings_t value, int num_options, cups_option_t **options) argument
2069 _ppdCacheGetFinishingValues( _ppd_cache_t *pc, int num_options, cups_option_t *options, int max_values, int *values) argument
[all...]
H A Dppd.h189 int num_options; /* Number of options */ member in struct:ppd_group_s
368 extern int cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options) _PPD_DEPRECATED;
417 int num_options,
458 int *num_options,
H A Ddest-options.c54 int num_options,
259 * "num_options" and "options" represent the currently selected options by the
282 int num_options, /* I - Number of current options */
363 for (i = num_options, option = options; i > 0; i --, option ++)
371 num_myres = num_options;
504 if ((myvalue = cupsGetOption(myoption->name, num_options,
1205 if ((media = cupsGetOption("media", dest->num_options,
2086 int num_options, /* I - Number of options */
2127 else if ((value = cupsGetOption(attr->name, num_options,
278 cupsCopyDestConflicts( http_t *http, cups_dest_t *dest, cups_dinfo_t *dinfo, int num_options, cups_option_t *options, const char *new_option, const char *new_value, int *num_conflicts, cups_option_t **conflicts, int *num_resolved, cups_option_t **resolved) argument
2082 cups_test_constraints( cups_dinfo_t *dinfo, const char *new_option, const char *new_value, int num_options, cups_option_t *options, int *num_conflicts, cups_option_t **conflicts) argument
/external/libcups/filter/
H A Dpstops.c64 int num_options; /* Number of options for this page */ member in struct:__anon11132
73 int num_options; /* Number of document-wide options */ member in struct:__anon11133
171 int num_options,
176 char *argv[], int num_options,
187 int num_options, cups_option_t *options);
201 int num_options; /* Number of print options */ local
290 num_options = cupsParseOptions(argv[5], 0, &options);
291 ppd = SetCommonOptions(num_options, options, 1);
293 set_pstops_options(&doc, ppd, argv, num_options, options);
391 cupsFreeOptions(num_options, option
1745 int num_options; /* Number of options */ local
2144 include_feature( ppd_file_t *ppd, const char *line, int num_options, cups_option_t **options) argument
2295 set_pstops_options( pstops_doc_t *doc, ppd_file_t *ppd, char *argv[], int num_options, cups_option_t *options) argument
3333 write_options( pstops_doc_t *doc, ppd_file_t *ppd, int num_options, cups_option_t *options) argument
[all...]
H A Dcommon.c46 int num_options, /* I - Number of options */
62 cupsMarkOptions(ppd, num_options, options);
83 if ((val = cupsGetOption("landscape", num_options, options)) != NULL)
94 else if ((val = cupsGetOption("orientation-requested", num_options, options)) != NULL)
110 if ((val = cupsGetOption("page-left", num_options, options)) != NULL)
129 if ((val = cupsGetOption("page-right", num_options, options)) != NULL)
148 if ((val = cupsGetOption("page-bottom", num_options, options)) != NULL)
167 if ((val = cupsGetOption("page-top", num_options, options)) != NULL)
45 SetCommonOptions( int num_options, cups_option_t *options, int change_size) argument
H A Dcommon.h55 extern ppd_file_t *SetCommonOptions(int num_options, cups_option_t *options,
H A Drastertopwg.c57 int num_options; /* Number of options */ local
87 num_options = cupsParseOptions(argv[5], 0, &options);
90 cupsMarkOptions(ppd, num_options, options);
204 if ((val = cupsGetOption("print-content-optimize", num_options,
226 if ((val = cupsGetOption("print-quality", num_options, options)) != NULL)
239 if ((val = cupsGetOption("print-rendering-intent", num_options,
H A Dtestraster.c184 static int do_ppd_tests(const char *filename, int num_options,
216 int num_options; /* Number of options */ local
220 for (errors = 0, num_options = 0, options = NULL, i = 1; i < argc; i ++)
227 num_options = cupsParseOptions(argv[i] + 2, num_options, &options);
232 num_options = cupsParseOptions(argv[i], num_options, &options);
251 errors += do_ppd_tests(argv[i], num_options, options);
263 cupsFreeOptions(num_options, options);
276 int num_options, /*
275 do_ppd_tests(const char *filename, int num_options, cups_option_t *options) argument
[all...]
H A Drastertolabel.c1093 int num_options; /* Number of options */ local
1164 num_options = cupsParseOptions(argv[5], 0, &options);
1183 cupsMarkOptions(ppd, num_options, options);
1278 cupsFreeOptions(num_options, options);
/external/ppp/pppd/plugins/radius/
H A Doptions.h63 static int num_options = ((sizeof(config_options))/(sizeof(config_options[0]))); variable

Completed in 619 milliseconds

12