• Home
  • Raw
  • Download

Lines Matching refs:response

43 static void parse_IPPVersions(ipp_t *response, ipp_version_supported_t *ippVersions);
48 static void parse_printerUris(ipp_t *response, printer_capabilities_t *capabilities);
141 ipp_t *response; in test_and_set_ipp_version() local
156 if ((response = cupsDoRequest(http, request, http_resource)) == NULL) { in test_and_set_ipp_version()
193 ippDelete(response); in test_and_set_ipp_version()
197 parse_IPPVersions(response, &ippVersions); in test_and_set_ipp_version()
221 if (response != NULL) ippDelete(response); in test_and_set_ipp_version()
236 ipp_t *response = NULL; in get_PrinterState() local
259 if ((response = ipp_doCupsRequest(http, request, http_resource, printer_uri)) == NULL) { in get_PrinterState()
267 get_PrinterStateReason(response, printer_state, printer_state_dyn); in get_PrinterState()
275 ippDelete(response); in get_PrinterState()
279 void get_PrinterStateReason(ipp_t *response, ipp_pstate_t *printer_state, in get_PrinterStateReason() argument
287 if ((attrptr = ippFindAttribute(response, "printer-state", IPP_TAG_ENUM)) == NULL) { in get_PrinterStateReason()
310 if ((attrptr = ippFindAttribute(response, "printer-state-reasons", IPP_TAG_KEYWORD)) == NULL) { in get_PrinterStateReason()
576 void parse_IPPVersions(ipp_t *response, ipp_version_supported_t *ippVersions) { in parse_IPPVersions() argument
586 attrptr = ippFindAttribute(response, "ipp-versions-supported", IPP_TAG_KEYWORD); in parse_IPPVersions()
633 void parse_getMediaSupported(ipp_t *response, media_supported_t *media_supported) { in parse_getMediaSupported() argument
642 if ((attrptr = ippFindAttribute(response, "media-supported", IPP_TAG_KEYWORD)) != NULL) { in parse_getMediaSupported()
704 void parse_printerAttributes(ipp_t *response, printer_capabilities_t *capabilities) { in parse_printerAttributes() argument
714 parse_getMediaSupported(response, &media_supported); in parse_printerAttributes()
716 parse_printerUris(response, capabilities); in parse_printerAttributes()
731 if ((attrptr = ippFindAttribute(response, "printer-dns-sd-name", IPP_TAG_NAME)) != NULL) { in parse_printerAttributes()
736 if ((attrptr = ippFindAttribute(response, "printer-info", IPP_TAG_TEXT)) != NULL) { in parse_printerAttributes()
742 if ((attrptr = ippFindAttribute(response, "printer-name", IPP_TAG_TEXT)) != NULL) { in parse_printerAttributes()
747 if ((attrptr = ippFindAttribute(response, "printer-make-and-model", IPP_TAG_TEXT)) != NULL) { in parse_printerAttributes()
751 if ((attrptr = ippFindAttribute(response, "printer-uuid", IPP_TAG_URI)) != NULL) { in parse_printerAttributes()
755 if ((attrptr = ippFindAttribute(response, "printer-location", IPP_TAG_TEXT)) != NULL) { in parse_printerAttributes()
760 if ((attrptr = ippFindAttribute(response, "media-default", IPP_TAG_KEYWORD)) != NULL) { in parse_printerAttributes()
765 if ((attrptr = ippFindAttribute(response, "color-supported", IPP_TAG_BOOLEAN)) != NULL) { in parse_printerAttributes()
770 if ((attrptr = ippFindAttribute(response, "copies-supported", IPP_TAG_RANGE)) != NULL) { in parse_printerAttributes()
779 if ((attrptr = ippFindAttribute(response, "print-color-mode-supported", IPP_TAG_KEYWORD)) != in parse_printerAttributes()
787 if ((attrptr = ippFindAttribute(response, "print-quality-supported", IPP_TAG_ENUM)) != in parse_printerAttributes()
802 if ((attrptr = ippFindAttribute(response, "document-format-supported", IPP_TAG_MIMETYPE)) in parse_printerAttributes()
819 if ((attrptr = ippFindAttribute(response, "sides-supported", IPP_TAG_KEYWORD)) != NULL) { in parse_printerAttributes()
831 if (((attrptr = ippFindAttribute(response, "media-type-supported", IPP_TAG_KEYWORD)) != NULL) in parse_printerAttributes()
832 || ((attrptr = ippFindAttribute(response, "media-type-supported", IPP_TAG_NAME)) in parse_printerAttributes()
856 if ((attrptr = ippFindAttribute(response, "pclm-source-resolution-supported", in parse_printerAttributes()
859 } else if ((attrptr = ippFindAttribute(response, "printer-resolution-supported", in parse_printerAttributes()
868 if ((attrptr = ippFindAttribute(response, "ipp-versions-supported", IPP_TAG_KEYWORD)) != NULL) { in parse_printerAttributes()
901 if ((attrptr = ippFindAttribute(response, "epcl-version-supported", IPP_TAG_KEYWORD)) != NULL) { in parse_printerAttributes()
913 if ((attrptr = ippFindAttribute(response, "epcl-version-supported", IPP_TAG_TEXT)) != NULL) { in parse_printerAttributes()
925 if ((attrptr = ippFindAttribute(response, "media-col-default", IPP_TAG_BEGIN_COLLECTION)) != in parse_printerAttributes()
947 if ((attrptr = ippFindAttribute(response, "media-size-name", IPP_TAG_KEYWORD)) != NULL) { in parse_printerAttributes()
954 if ((attrptr = ippFindAttribute(response, "pclm-strip-height-preferred", in parse_printerAttributes()
973 if ((attrptr = ippFindAttribute(response, "pclm-compression-method-preferred", in parse_printerAttributes()
979 if ((attrptr = ippFindAttribute(response, "pclm-raster-back-side", IPP_TAG_KEYWORD)) != NULL) { in parse_printerAttributes()
992 if ((attrptr = ippFindAttribute(response, "media-top-margin-supported", IPP_TAG_INTEGER)) != in parse_printerAttributes()
1002 if ((attrptr = ippFindAttribute(response, "media-bottom-margin-supported", IPP_TAG_INTEGER)) != in parse_printerAttributes()
1012 if ((attrptr = ippFindAttribute(response, "media-right-margin-supported", IPP_TAG_INTEGER)) != in parse_printerAttributes()
1022 if ((attrptr = ippFindAttribute(response, "media-left-margin-supported", IPP_TAG_INTEGER)) != in parse_printerAttributes()
1040 if ((attrptr = ippFindAttribute(response, "printer-device-id", IPP_TAG_TEXT)) != NULL) { in parse_printerAttributes()
1050 if ((attrptr = ippFindAttribute(response, "output-bin-supported", IPP_TAG_KEYWORD)) != NULL) { in parse_printerAttributes()
1057 if ((attrptr = ippFindAttribute(response, "document-format-details-supported", in parse_printerAttributes()
1083 static void parse_printerUris(ipp_t *response, printer_capabilities_t *capabilities) { in parse_printerUris() argument
1088 if ((attrptr = ippFindAttribute(response, "printer-uri-supported", IPP_TAG_URI)) != NULL) { in parse_printerUris()
1097 if ((attrptr = ippFindAttribute(response, "uri-security-supported", IPP_TAG_KEYWORD)) != NULL) { in parse_printerUris()
1107 if ((attrptr = ippFindAttribute(response, "uri-authentication-supported", IPP_TAG_KEYWORD)) in parse_printerUris()
1240 ipp_t *response = NULL; in ippSendRequest() local
1248 response = cupsGetResponse(http, resource); in ippSendRequest()
1252 if (result == HTTP_CONTINUE && response == NULL) { in ippSendRequest()
1266 return response; in ippSendRequest()
1277 ipp_t *response = NULL; in ipp_doCupsRequest() local
1300 response = ippSendRequest(http, request, http_resource); in ipp_doCupsRequest()
1301 if (response == NULL) { in ipp_doCupsRequest()
1346 ippDelete(response); in ipp_doCupsRequest()
1347 response = NULL; in ipp_doCupsRequest()
1351 ippDelete(response); in ipp_doCupsRequest()
1352 response = NULL; in ipp_doCupsRequest()
1359 return response; in ipp_doCupsRequest()