Advertise support for "fetchable" jobs.
@@ -675,11 +675,24 @@ serverCreatePrinter(
};
static const char * const which_jobs[] =
{ /* which-jobs-supported values */
+ "aborted",
+ "all",
+ "canceled",
"completed",
"not-completed",
+ "pending",
+ "pending-held",
+ "processing",
+ "processing-stopped"
+ };
+ static const char * const which_jobs_proxy[] =
+ { /* which-jobs-supported values */
"aborted",
"all",
"canceled",
+ "completed",
+ "fetchable",
+ "not-completed",
"pending",
"pending-held",
"processing",
@@ -1535,6 +1548,9 @@ serverCreatePrinter(
}
/* which-jobs-supported */
+ if (printer->pinfo.proxy_group != SERVER_GROUP_NONE || printer->pinfo.max_devices > 0)
+ ippAddStrings(printer->pinfo.attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "which-jobs-supported", sizeof(which_jobs_proxy) / sizeof(which_jobs_proxy[0]), NULL, which_jobs_proxy);
+ else
ippAddStrings(printer->pinfo.attrs, IPP_TAG_PRINTER, IPP_CONST_TAG(IPP_TAG_KEYWORD), "which-jobs-supported", sizeof(which_jobs) / sizeof(which_jobs[0]), NULL, which_jobs);
/* xri-authentication-supported */
