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

Function ippGetVersion

cups/ipp.c:2579–2603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2577 */
2578
2579int /* O - Major version number or 0 on error */
2580ippGetVersion(ipp_t *ipp, /* I - IPP message */
2581 int *minor) /* O - Minor version number or @code NULL@ for don't care */
2582{
2583 /*
2584 * Range check input...
2585 */
2586
2587 if (!ipp)
2588 {
2589 if (minor)
2590 *minor = 0;
2591
2592 return (0);
2593 }
2594
2595 /*
2596 * Return the value...
2597 */
2598
2599 if (minor)
2600 *minor = ipp->request.any.version[1];
2601
2602 return (ipp->request.any.version[0]);
2603}
2604
2605
2606/*

Callers 4

do_testFunction · 0.85
debug_attributesFunction · 0.85
process_ippFunction · 0.85
show_attributesFunction · 0.85

Calls

no outgoing calls

Tested by 1

show_attributesFunction · 0.68