MCPcopy Create free account
hub / github.com/OpenPrinting/cups / have_document_data

Function have_document_data

tools/ippeveprinter.c:2825–2836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2823 */
2824
2825static int /* O - 1 if data is present, 0 otherwise */
2826have_document_data(
2827 ippeve_client_t *client) /* I - Client */
2828{
2829 char temp; /* Data */
2830
2831
2832 if (httpGetState(client->http) != HTTP_STATE_POST_RECV)
2833 return (0);
2834 else
2835 return (httpPeek(client->http, &temp, 1) > 0);
2836}
2837
2838
2839/*

Callers 4

finish_document_uriFunction · 0.85
ipp_create_jobFunction · 0.85
ipp_print_jobFunction · 0.85
ipp_send_documentFunction · 0.85

Calls 2

httpGetStateFunction · 0.85
httpPeekFunction · 0.85

Tested by

no test coverage detected