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

Function ippAddOutOfBand

cups/ipp.c:569–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567 */
568
569ipp_attribute_t * /* O - New attribute */
570ippAddOutOfBand(ipp_t *ipp, /* I - IPP message */
571 ipp_tag_t group, /* I - IPP group */
572 ipp_tag_t value_tag, /* I - Type of attribute */
573 const char *name) /* I - Name of attribute */
574{
575 DEBUG_printf(("ippAddOutOfBand(ipp=%p, group=%02x(%s), value_tag=%02x(%s), name=\"%s\")", (void *)ipp, group, ippTagString(group), value_tag, ippTagString(value_tag), name));
576
577 value_tag &= IPP_TAG_CUPS_MASK;
578
579 /*
580 * Range check input...
581 */
582
583 if (!ipp || !name || group < IPP_TAG_ZERO ||
584 group == IPP_TAG_END || group >= IPP_TAG_UNSUPPORTED_VALUE ||
585 (value_tag != IPP_TAG_UNSUPPORTED_VALUE &&
586 value_tag != IPP_TAG_DEFAULT &&
587 value_tag != IPP_TAG_UNKNOWN &&
588 value_tag != IPP_TAG_NOVALUE &&
589 value_tag != IPP_TAG_NOTSETTABLE &&
590 value_tag != IPP_TAG_DELETEATTR &&
591 value_tag != IPP_TAG_ADMINDEFINE))
592 return (NULL);
593
594 /*
595 * Create the attribute...
596 */
597
598 return (ipp_add_attr(ipp, name, group, value_tag, 1));
599}
600
601
602/*

Callers 10

copy_job_attributesFunction · 0.85
create_printerFunction · 0.85
show_mediaFunction · 0.85
add_jobFunction · 0.85
cupsdSetPrinterAttrsFunction · 0.85
load_ppdFunction · 0.85
ippAddIntegerFunction · 0.85
ippCopyAttributeFunction · 0.85
_ippFileParseFunction · 0.85
parse_collectionFunction · 0.85

Calls 2

ippTagStringFunction · 0.85
ipp_add_attrFunction · 0.85

Tested by

no test coverage detected