| 3056 | */ |
| 3057 | |
| 3058 | int /* O - 1 on success, 0 on failure */ |
| 3059 | ippSetGroupTag( |
| 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 | /* |
no outgoing calls
no test coverage detected