MCPcopy Create free account
hub / github.com/OpenPrinting/cups / ippGetRange

Function ippGetRange

cups/ipp.c:2365–2391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2363 */
2364
2365int /* O - Lower value of range or 0 */
2366ippGetRange(ipp_attribute_t *attr, /* I - IPP attribute */
2367 int element, /* I - Value number (0-based) */
2368 int *uppervalue)/* O - Upper value of range */
2369{
2370 /*
2371 * Range check input...
2372 */
2373
2374 if (!attr || attr->value_tag != IPP_TAG_RANGE ||
2375 element < 0 || element >= attr->num_values)
2376 {
2377 if (uppervalue)
2378 *uppervalue = 0;
2379
2380 return (0);
2381 }
2382
2383 /*
2384 * Return the values...
2385 */
2386
2387 if (uppervalue)
2388 *uppervalue = attr->values[element].range.upper;
2389
2390 return (attr->values[element].range.lower);
2391}
2392
2393
2394/*

Callers 12

expect_matchesFunction · 0.85
print_attrFunction · 0.85
print_ippserver_attrFunction · 0.85
print_json_attrFunction · 0.85
with_distinct_valuesFunction · 0.85
with_valueFunction · 0.85
valid_job_attributesFunction · 0.85
_ppdCreateFromIPP2Function · 0.85
localizeFunction · 0.85
show_supportedFunction · 0.85
cups_collection_stringFunction · 0.85
show_supportedFunction · 0.85

Calls

no outgoing calls

Tested by 3

localizeFunction · 0.68
show_supportedFunction · 0.68
show_supportedFunction · 0.68