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

Function ippGetBoolean

cups/ipp.c:2113–2130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2111 */
2112
2113int /* O - Boolean value or 0 on error */
2114ippGetBoolean(ipp_attribute_t *attr, /* I - IPP attribute */
2115 int element) /* I - Value number (0-based) */
2116{
2117 /*
2118 * Range check input...
2119 */
2120
2121 if (!attr || attr->value_tag != IPP_TAG_BOOLEAN ||
2122 element < 0 || element >= attr->num_values)
2123 return (0);
2124
2125 /*
2126 * Return the value...
2127 */
2128
2129 return (attr->values[element].boolean);
2130}
2131
2132
2133/*

Callers 15

list_serviceFunction · 0.85
do_monitor_printer_stateFunction · 0.85
do_testFunction · 0.85
print_attrFunction · 0.85
print_ippserver_attrFunction · 0.85
print_json_attrFunction · 0.85
with_valueFunction · 0.85
ipp_get_jobsFunction · 0.85
register_printerFunction · 0.85
valid_job_attributesFunction · 0.85
add_classFunction · 0.85
add_jobFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected