Lines Matching refs:attrptr
905 ipp_attribute_t *attrptr, /* Attribute pointer */ in do_test() local
960 …for (attrptr = ippFirstAttribute(request), group = ippGetGroupTag(attrptr); attrptr; attrptr = ipp… in do_test()
961 print_attr(data->outfile, data->output, attrptr, &group); in do_test()
973 for (attrptr = ippFirstAttribute(request); attrptr; attrptr = ippNextAttribute(request)) in do_test()
974 print_attr(cupsFileStdout(), _CUPS_OUTPUT_TEST, attrptr, NULL); in do_test()
1185 if ((attrptr = ippFindAttribute(response, "job-id", IPP_TAG_INTEGER)) != NULL) in do_test()
1187 snprintf(temp, sizeof(temp), "%d", ippGetInteger(attrptr, 0)); in do_test()
1191 if ((attrptr = ippFindAttribute(response, "job-uri", IPP_TAG_URI)) != NULL) in do_test()
1192 _ippVarsSet(vars, "job-uri", ippGetString(attrptr, 0, NULL)); in do_test()
1194 if ((attrptr = ippFindAttribute(response, "notify-subscription-id", IPP_TAG_INTEGER)) != NULL) in do_test()
1196 snprintf(temp, sizeof(temp), "%d", ippGetInteger(attrptr, 0)); in do_test()
1221 attrptr = ippFirstAttribute(response); in do_test()
1222 if (!attrptr) in do_test()
1228 …attrptr) || ippGetValueTag(attrptr) != IPP_TAG_CHARSET || ippGetGroupTag(attrptr) != IPP_TAG_OPERA… in do_test()
1229 …attrptr) ? ippGetName(attrptr) : "(null)", ippGetCount(attrptr) > 1 ? "1setOf " : "", ippTagString… in do_test()
1231 attrptr = ippNextAttribute(response); in do_test()
1232 if (!attrptr) in do_test()
1234 …attrptr) || ippGetValueTag(attrptr) != IPP_TAG_LANGUAGE || ippGetGroupTag(attrptr) != IPP_TAG_OPER… in do_test()
1235 …attrptr) ? ippGetName(attrptr) : "(null)", ippGetCount(attrptr) > 1 ? "1setOf " : "", ippTagString… in do_test()
1238 if ((attrptr = ippFindAttribute(response, "status-message", IPP_TAG_ZERO)) != NULL) in do_test()
1240 const char *status_message = ippGetString(attrptr, 0, NULL); in do_test()
1243 if (ippGetValueTag(attrptr) != IPP_TAG_TEXT) in do_test()
1244 …(255)) has wrong value tag %s (RFC 2911 section 3.1.6.2).", ippTagString(ippGetValueTag(attrptr))); in do_test()
1245 if (ippGetGroupTag(attrptr) != IPP_TAG_OPERATION) in do_test()
1246 …(255)) has wrong group tag %s (RFC 2911 section 3.1.6.2).", ippTagString(ippGetGroupTag(attrptr))); in do_test()
1247 if (ippGetCount(attrptr) != 1) in do_test()
1248 …ors, "status-message (text(255)) has %d values (RFC 2911 section 3.1.6.2).", ippGetCount(attrptr)); in do_test()
1253 if ((attrptr = ippFindAttribute(response, "detailed-status-message", in do_test()
1256 const char *detailed_status_message = ippGetString(attrptr, 0, NULL); in do_test()
1259 if (ippGetValueTag(attrptr) != IPP_TAG_TEXT) in do_test()
1263 ippTagString(ippGetValueTag(attrptr))); in do_test()
1264 if (ippGetGroupTag(attrptr) != IPP_TAG_OPERATION) in do_test()
1268 ippTagString(ippGetGroupTag(attrptr))); in do_test()
1269 if (ippGetCount(attrptr) != 1) in do_test()
1273 ippGetCount(attrptr)); in do_test()
1283 for (attrptr = ippFirstAttribute(response), group = ippGetGroupTag(attrptr); in do_test()
1284 attrptr; in do_test()
1285 attrptr = ippNextAttribute(response)) in do_test()
1287 if (ippGetGroupTag(attrptr) != group) in do_test()
1292 switch (ippGetGroupTag(attrptr)) in do_test()
1313 if (group > ippGetGroupTag(attrptr) && group != IPP_TAG_DOCUMENT) in do_test()
1318 if (group > ippGetGroupTag(attrptr)) in do_test()
1325 ippTagString(ippGetGroupTag(attrptr)), in do_test()
1328 if (ippGetGroupTag(attrptr) != IPP_TAG_ZERO) in do_test()
1329 group = ippGetGroupTag(attrptr); in do_test()
1332 if (!ippValidateAttribute(attrptr)) in do_test()
1335 if (ippGetName(attrptr)) in do_test()
1337 if (cupsArrayFind(a, (void *)ippGetName(attrptr)) && data->output < _CUPS_OUTPUT_LIST) in do_test()
1339 ippGetName(attrptr), ippTagString(group)); in do_test()
1341 cupsArrayAdd(a, (void *)ippGetName(attrptr)); in do_test()
1403 if ((attrptr = ippFindAttribute(response, "status-message", in do_test()
1405 add_stringf(data->errors, "status-message=\"%s\"", ippGetString(attrptr, 0, NULL)); in do_test()
1534 attrptr = ippFindAttribute(response, expect->same_count_as, in do_test()
1537 if (!attrptr || ippGetCount(attrptr) != ippGetCount(found)) in do_test()
1543 if (!attrptr) in do_test()
1548 else if (ippGetCount(attrptr) != ippGetCount(found)) in do_test()
1552 expect->same_count_as, ippGetCount(attrptr)); in do_test()
1644 for (attrptr = ippFirstAttribute(response); attrptr; attrptr = ippNextAttribute(response)) in do_test()
1646 const char *attrname = ippGetName(attrptr); in do_test()
1653 print_attr(cupsFileStdout(), _CUPS_OUTPUT_TEST, attrptr, NULL); in do_test()
1694 for (attrptr = ippFirstAttribute(response), group = ippGetGroupTag(attrptr); in do_test()
1695 attrptr; in do_test()
1696 attrptr = ippNextAttribute(response)) in do_test()
1697 print_attr(data->outfile, data->output, attrptr, &group); in do_test()
1703 for (attrptr = ippFirstAttribute(response); attrptr; attrptr = ippNextAttribute(response)) in do_test()
1705 if (!ippGetName(attrptr) || ippGetGroupTag(attrptr) != IPP_TAG_PRINTER) in do_test()
1708 print_ippserver_attr(data, attrptr, 0); in do_test()
1723 for (attrptr = ippFirstAttribute(response); attrptr; attrptr = ippNextAttribute(response)) in do_test()
1724 print_attr(cupsFileStdout(), _CUPS_OUTPUT_TEST, attrptr, NULL); in do_test()
1739 for (attrptr = ippFindAttribute(response, data->displayed[i], IPP_TAG_ZERO); in do_test()
1740 attrptr; in do_test()
1741 attrptr = ippFindNextAttribute(response, data->displayed[i], IPP_TAG_ZERO)) in do_test()
1743 width = ippAttributeString(attrptr, NULL, 0); in do_test()
1754 attrptr = ippFirstAttribute(response); in do_test()
1756 while (attrptr) in do_test()
1758 while (attrptr && ippGetGroupTag(attrptr) <= IPP_TAG_OPERATION) in do_test()
1759 attrptr = ippNextAttribute(response); in do_test()
1761 if (attrptr) in do_test()
1764 print_csv(data, response, attrptr, data->num_displayed, data->displayed, widths); in do_test()
1766 print_line(data, response, attrptr, data->num_displayed, data->displayed, widths); in do_test()
1768 while (attrptr && ippGetGroupTag(attrptr) > IPP_TAG_OPERATION) in do_test()
1769 attrptr = ippNextAttribute(response); in do_test()
1799 for (attrptr = ippFirstAttribute(response); attrptr; attrptr = ippNextAttribute(response)) in do_test()
1801 if (ippGetName(attrptr)) in do_test()
1805 if (!strcmp(data->displayed[i], ippGetName(attrptr))) in do_test()
1807 print_attr(data->outfile, data->output, attrptr, NULL); in do_test()