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

Function ippGetCollection

cups/ipp.c:2142–2160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2140 */
2141
2142ipp_t * /* O - Collection value or @code NULL@ on error */
2143ippGetCollection(
2144 ipp_attribute_t *attr, /* I - IPP attribute */
2145 int element) /* I - Value number (0-based) */
2146{
2147 /*
2148 * Range check input...
2149 */
2150
2151 if (!attr || attr->value_tag != IPP_TAG_BEGIN_COLLECTION ||
2152 element < 0 || element >= attr->num_values)
2153 return (NULL);
2154
2155 /*
2156 * Return the value...
2157 */
2158
2159 return (attr->values[element].collection);
2160}
2161
2162
2163/*

Callers 13

print_attrFunction · 0.85
print_ippserver_attrFunction · 0.85
print_json_attrFunction · 0.85
with_distinct_valuesFunction · 0.85
show_mediaFunction · 0.85
valid_job_attributesFunction · 0.85
cupsdLogPageFunction · 0.85
get_optionsFunction · 0.85
_ppdCacheGetInputSlotFunction · 0.85
_ppdCreateFromIPP2Function · 0.85
cups_collection_containsFunction · 0.85
cups_collection_stringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected