• Home
  • Raw
  • Download

Lines Matching refs:num_options

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()
844 cupsFreeOptions(new_dest->num_options, new_dest->options); in cupsCopyDest()
846 new_dest->num_options = 0; in cupsCopyDest()
854 if ((new_dest->options = calloc(sizeof(cups_option_t), (size_t)dest->num_options)) == NULL) in cupsCopyDest()
857 new_dest->num_options = dest->num_options; in cupsCopyDest()
859 for (i = dest->num_options, option = dest->options, in cupsCopyDest()
1044 cupsFreeOptions(dest->num_options, dest->options); in cupsFreeDests()
1138 if ((uri = cupsGetOption("printer-uri-supported", dest->num_options, dest->options)) == NULL) in _cupsGetDestResource()
1140 if ((uri = cupsGetOption("device-uri", dest->num_options, dest->options)) != NULL) in _cupsGetDestResource()
1152 …uri = _cupsCreateDest(dest->name, cupsGetOption("printer-info", dest->num_options, dest->options),… in _cupsGetDestResource()
1159 …dest->num_options = cupsAddOption("printer-uri-supported", uri, dest->num_options, &dest->options); in _cupsGetDestResource()
1161 uri = cupsGetOption("printer-uri-supported", dest->num_options, dest->options); in _cupsGetDestResource()
1292 dest->num_options = cupsAddOption("device-uri", uri, dest->num_options, &(dest->options)); in cupsGetDestWithURI()
1293 dest->num_options = cupsAddOption("printer-info", info, dest->num_options, &(dest->options)); in cupsGetDestWithURI()
1338 int num_options; /* Number of options */ in _cupsGetDests() local
1446 num_options = 0; in _cupsGetDests()
1491 num_options = cupsAddOption(attr->name, in _cupsGetDests()
1494 num_options, &options); in _cupsGetDests()
1509 num_options = cupsAddOption("media", media_default, num_options, &options); in _cupsGetDests()
1534 if (_cups_strcasecmp(optname, "media") || !cupsGetOption("media", num_options, options)) in _cupsGetDests()
1535num_options = cupsAddOption(optname, cups_make_string(attr, value, sizeof(value)), num_options, &o… in _cupsGetDests()
1545 cupsFreeOptions(num_options, options); in _cupsGetDests()
1555 dest->num_options = num_options; in _cupsGetDests()
1559 cupsFreeOptions(num_options, options); in _cupsGetDests()
2002 cupsFreeOptions(dest->num_options, dest->options); in cupsRemoveDest()
2185 if (dest->instance != NULL || dest->num_options != 0 || dest->is_default) in cupsSetDests2()
2201 for (j = dest->num_options, option = dest->options; j > 0; j --, option ++) in cupsSetDests2()
2217 (val = cupsGetOption(option->name, temp->num_options, in cupsSetDests2()
2599 dest->num_options = 0; in cups_add_dest()
2821 cupsFreeOptions(device->dest.num_options, device->dest.options); in cups_dnssd_free_device()
2918 device->dest.num_options = cupsAddOption("printer-info", serviceName, 0, &device->dest.options); in cups_dnssd_get_device()
3247 device->dest.num_options = cupsAddOption("printer-location", value,
3248 device->dest.num_options,
3349 …device->dest.num_options = cupsAddOption("printer-make-and-model", make_and_model, device->dest.nu…
3352 …device->dest.num_options = cupsAddOption("printer-make-and-model", model, device->dest.num_options
3356 …device->dest.num_options = cupsAddOption("printer-type", value, device->dest.num_options, &device-…
3369 …device->dest.num_options = cupsAddOption("device-uri", uri, device->dest.num_options, &device->des…
3431 dest->num_options = cupsAddOption("device-uri", uri, dest->num_options, &dest->options);
3433 return (cupsGetOption("device-uri", dest->num_options, dest->options));
3659 …if (!dest->instance && (device_uri = cupsGetOption("device-uri", dest->num_options, dest->options)…
4293 dest->num_options = cupsParseOptions(lineptr, dest->num_options,