Home
last modified time | relevance | path

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

/packages/services/BuiltInPrintService/jni/ipphelper/
Dipphelper.c282 ipp_attribute_t *attrptr; in get_PrinterStateReason() local
287 if ((attrptr = ippFindAttribute(response, "printer-state", IPP_TAG_ENUM)) == NULL) { in get_PrinterStateReason()
292 printer_ippstate = (ipp_pstate_t) ippGetInteger(attrptr, 0); in get_PrinterStateReason()
310 if ((attrptr = ippFindAttribute(response, "printer-state-reasons", IPP_TAG_KEYWORD)) == NULL) { in get_PrinterStateReason()
315 for (idx = 0; idx < ippGetCount(attrptr); idx++) { in get_PrinterStateReason()
318 ippGetString(attrptr, idx, NULL)); in get_PrinterStateReason()
319 if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_NONE, in get_PrinterStateReason()
333 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_SPOOL_FULL, in get_PrinterStateReason()
347 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_MARKER_SUPPLY_LOW, in get_PrinterStateReason()
350 } else if (strncmp(ippGetString(attrptr, idx, NULL), IPP_PRNT_STATE_TONER_LOW, in get_PrinterStateReason()
[all …]
Dippstatus_capabilities.c135 ipp_attribute_t *attrptr; // Attribute pointer in _get_capabilities() local
164 for (attrptr = ippFirstAttribute(request); attrptr; attrptr = ippNextAttribute(request)) { in _get_capabilities()
165 print_attr(attrptr); in _get_capabilities()
181 for (attrptr = ippFirstAttribute(response); attrptr; attrptr = ippNextAttribute( in _get_capabilities()
183 print_attr(attrptr); in _get_capabilities()
186 if ((attrptr = ippFindAttribute(response, "printer-state", IPP_TAG_ENUM)) == NULL) { in _get_capabilities()
189 LOGI("printer-state %d", (ipp_pstate_t) ippGetInteger(attrptr, 0)); in _get_capabilities()
Dipp_print.c173 ipp_attribute_t *attrptr; // Attribute pointer in _fill_job() local
398 for (attrptr = ippFirstAttribute(request); attrptr; attrptr = ippNextAttribute(request)) { in _fill_job()
399 print_attr(attrptr); in _fill_job()
448 ipp_attribute_t *attrptr; in _validate_job() local
449 for (attrptr = ippFirstAttribute(response); attrptr; attrptr = ippNextAttribute( in _validate_job()
451 print_attr(attrptr); in _validate_job()
558 ipp_attribute_t *attrptr; in _end_job() local
590 if ((attrptr = ippFindAttribute(response, "job-id", IPP_TAG_INTEGER)) == NULL) { in _end_job()
593 job_id = ippGetInteger(attrptr, 0); in _end_job()
598 for (attrptr = ippFirstAttribute(response); attrptr; attrptr = ippNextAttribute( in _end_job()
[all …]