Home
last modified time | relevance | path

Searched refs:attrptr (Results 1 – 3 of 3) sorted by relevance

/packages/services/BuiltInPrintService/jni/ipphelper/
Dipphelper.c327 ipp_attribute_t *attrptr; in get_PrinterStateReason() local
332 if ((attrptr = ippFindAttribute(response, "printer-state", IPP_TAG_ENUM)) == NULL) { in get_PrinterStateReason()
337 printer_ippstate = (ipp_pstate_t) ippGetInteger(attrptr, 0); in get_PrinterStateReason()
355 if ((attrptr = ippFindAttribute(response, "printer-state-reasons", IPP_TAG_KEYWORD)) == NULL) { in get_PrinterStateReason()
360 for (idx = 0; idx < ippGetCount(attrptr); idx++) { in get_PrinterStateReason()
363 ippGetString(attrptr, idx, NULL)); in get_PrinterStateReason()
364 if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_NONE, in get_PrinterStateReason()
378 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_SPOOL_FULL, in get_PrinterStateReason()
392 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_MARKER_SUPPLY_LOW, in get_PrinterStateReason()
395 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_TONER_LOW, in get_PrinterStateReason()
[all …]
Dippstatus_capabilities.c138 ipp_attribute_t *attrptr; // Attribute pointer in _get_capabilities() local
167 for (attrptr = ippFirstAttribute(request); attrptr; attrptr = ippNextAttribute(request)) { in _get_capabilities()
168 print_attr(attrptr); in _get_capabilities()
184 for (attrptr = ippFirstAttribute(response); attrptr; attrptr = ippNextAttribute( in _get_capabilities()
186 print_attr(attrptr); in _get_capabilities()
189 if ((attrptr = ippFindAttribute(response, "printer-state", IPP_TAG_ENUM)) == NULL) { in _get_capabilities()
192 LOGI("printer-state %d", (ipp_pstate_t) ippGetInteger(attrptr, 0)); in _get_capabilities()
Dipp_print.c176 ipp_attribute_t *attrptr; // Attribute pointer in _fill_job() local
405 for (attrptr = ippFirstAttribute(request); attrptr; attrptr = ippNextAttribute(request)) { in _fill_job()
406 print_attr(attrptr); in _fill_job()
455 ipp_attribute_t *attrptr; in _validate_job() local
456 for (attrptr = ippFirstAttribute(response); attrptr; attrptr = ippNextAttribute( in _validate_job()
458 print_attr(attrptr); in _validate_job()
563 ipp_attribute_t *attrptr; in _end_job() local
595 if ((attrptr = ippFindAttribute(response, "job-id", IPP_TAG_INTEGER)) == NULL) { in _end_job()
598 job_id = ippGetInteger(attrptr, 0); in _end_job()
603 for (attrptr = ippFirstAttribute(response); attrptr; attrptr = ippNextAttribute( in _end_job()
[all …]