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

Function ippGetOctetString

cups/ipp.c:2302–2329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2300 */
2301
2302void * /* O - Pointer to octetString data */
2303ippGetOctetString(
2304 ipp_attribute_t *attr, /* I - IPP attribute */
2305 int element, /* I - Value number (0-based) */
2306 int *datalen) /* O - Length of octetString data */
2307{
2308 /*
2309 * Range check input...
2310 */
2311
2312 if (!attr || attr->value_tag != IPP_TAG_STRING ||
2313 element < 0 || element >= attr->num_values)
2314 {
2315 if (datalen)
2316 *datalen = 0;
2317
2318 return (NULL);
2319 }
2320
2321 /*
2322 * Return the values...
2323 */
2324
2325 if (datalen)
2326 *datalen = attr->values[element].unknown.length;
2327
2328 return (attr->values[element].unknown.data);
2329}
2330
2331
2332/*

Callers 12

expect_matchesFunction · 0.85
print_attrFunction · 0.85
print_ippserver_attrFunction · 0.85
print_json_attrFunction · 0.85
with_valueFunction · 0.85
show_mediaFunction · 0.85
show_suppliesFunction · 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