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

Function ippGetInteger

cups/ipp.c:2249–2266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2247 */
2248
2249int /* O - Value or 0 on error */
2250ippGetInteger(ipp_attribute_t *attr, /* I - IPP attribute */
2251 int element) /* I - Value number (0-based) */
2252{
2253 /*
2254 * Range check input...
2255 */
2256
2257 if (!attr || (attr->value_tag != IPP_TAG_INTEGER && attr->value_tag != IPP_TAG_ENUM) ||
2258 element < 0 || element >= attr->num_values)
2259 return (0);
2260
2261 /*
2262 * Return the value...
2263 */
2264
2265 return (attr->values[element].integer);
2266}
2267
2268
2269/*

Callers 15

list_serviceFunction · 0.85
do_monitor_printer_stateFunction · 0.85
do_testFunction · 0.85
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
with_value_fromFunction · 0.85
create_jobFunction · 0.85
find_jobFunction · 0.85

Calls

no outgoing calls

Tested by 6

mainFunction · 0.68
localizeFunction · 0.68
show_supportedFunction · 0.68
monitor_printerFunction · 0.68
run_clientFunction · 0.68
show_supportedFunction · 0.68