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

Function ippSetRequestId

cups/ipp.c:3346–3366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3344 */
3345
3346int /* O - 1 on success, 0 on failure */
3347ippSetRequestId(ipp_t *ipp, /* I - IPP message */
3348 int request_id) /* I - Request ID */
3349{
3350 /*
3351 * Range check input; not checking request_id values since ipptool wants to send
3352 * invalid values for conformance testing and a bad request_id does not affect the
3353 * encoding of a message...
3354 */
3355
3356 if (!ipp)
3357 return (0);
3358
3359 /*
3360 * Set the request ID and return...
3361 */
3362
3363 ipp->request.any.request_id = request_id;
3364
3365 return (1);
3366}
3367
3368
3369/*

Callers 3

do_monitor_printer_stateFunction · 0.85
do_testFunction · 0.85
_ppdCreateFromIPP2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected