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

Function ippSetVersion

cups/ipp.c:3902–3922  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3900 */
3901
3902int /* O - 1 on success, 0 on failure */
3903ippSetVersion(ipp_t *ipp, /* I - IPP message */
3904 int major, /* I - Major version number (major.minor) */
3905 int minor) /* I - Minor version number (major.minor) */
3906{
3907 /*
3908 * Range check input...
3909 */
3910
3911 if (!ipp || major < 0 || minor < 0)
3912 return (0);
3913
3914 /*
3915 * Set the version number...
3916 */
3917
3918 ipp->request.any.version[0] = (ipp_uchar_t)major;
3919 ipp->request.any.version[1] = (ipp_uchar_t)minor;
3920
3921 return (1);
3922}
3923
3924
3925/*

Callers 15

list_serviceFunction · 0.85
do_monitor_printer_stateFunction · 0.85
do_testFunction · 0.85
create_local_bg_threadFunction · 0.85
mainFunction · 0.85
cancel_jobFunction · 0.85
check_printer_stateFunction · 0.85
monitor_printerFunction · 0.85
new_requestFunction · 0.85
cupsCancelDestJobFunction · 0.85
cupsCloseDestJobFunction · 0.85
cupsCreateDestJobFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected