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

Function ippSetGroupTag

cups/ipp.c:3058–3080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3056 */
3057
3058int /* O - 1 on success, 0 on failure */
3059ippSetGroupTag(
3060 ipp_t *ipp, /* I - IPP message */
3061 ipp_attribute_t **attr, /* IO - Attribute */
3062 ipp_tag_t group_tag) /* I - Group tag */
3063{
3064 /*
3065 * Range check input - group tag must be 0x01 to 0x0F, per RFC 8011...
3066 */
3067
3068 if (!ipp || !attr || !*attr ||
3069 group_tag < IPP_TAG_ZERO || group_tag == IPP_TAG_END ||
3070 group_tag >= IPP_TAG_UNSUPPORTED_VALUE)
3071 return (0);
3072
3073 /*
3074 * Set the group tag and return...
3075 */
3076
3077 (*attr)->group_tag = group_tag;
3078
3079 return (1);
3080}
3081
3082
3083/*

Callers 5

respond_ignoredFunction · 0.85
respond_unsupportedFunction · 0.85
valid_job_attributesFunction · 0.85
add_jobFunction · 0.85
set_job_attrsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected