You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CUPS version: latest snapshot of repo
The CupsPM states that
If the value argument is NULL, the cupsCheckDestSupported function returns whether the option is supported by the destination. Otherwise, the function returns whether the specified value of the option is supported.
However, this is not working as expected for me. For instance, cupsCheckDestSupported(http, dest, dinfo, CUPS_COPIES , NULL) returns 0;
But cupsCheckDestSupported(http, dest, dinfo, CUPS_COPIES , "1" ) returns 1.
Also, cupsFindDestSupported(http, dest, dinfo, "job-creation-attributes") lists "copies" as one of the values.
Shouldn't cupsCheckDestSupported(http, dest, dinfo, CUPS_COPIES , NULL) have returned 1 according to the CUPS PM ?
Am I missing something in the CUPS Manual?
The text was updated successfully, but these errors were encountered:
NilanjanaLodh
changed the title
cupsCheckDestSupported() does not work as expected when *value = NULL
cupsCheckDestSupported() does not work as expected when value = NULL
Jun 13, 2017
Hmm, that should definitely not be the case. I've pushed a change to the "testdest" unit test program to verify this - after making CUPS the "testdest" program will be found in the "cups" directory, which can then be run with:
cups/testdest PRINTER-NAME supported copies
this works as expected with one printer I tested with:
CUPS version: latest snapshot of repo
The CupsPM states that
However, this is not working as expected for me. For instance,
cupsCheckDestSupported(http, dest, dinfo, CUPS_COPIES , NULL)
returns 0;But
cupsCheckDestSupported(http, dest, dinfo, CUPS_COPIES , "1" )
returns 1.Also,
cupsFindDestSupported(http, dest, dinfo, "job-creation-attributes")
lists"copies"
as one of the values.Shouldn't
cupsCheckDestSupported(http, dest, dinfo, CUPS_COPIES , NULL)
have returned1
according to the CUPS PM ?Am I missing something in the CUPS Manual?
The text was updated successfully, but these errors were encountered: