IPP_SET_JOB_ATTRIBUTES

Michael Sweet mike at easysw.com
Fri Feb 2 07:20:40 PST 2007


vladimir wrote:
> How can I change parameters of the Job?
> I try to use the following code, but something wrong with it:
> //Change user defined "HISTORY" attribute
>     request = ippNewRequest(IPP_SET_JOB_ATTRIBUTES);
> 
>     ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "job-uri",
>                    NULL, "ipp://localhost/jobs/3");
>     ippAddString(request,IPP_TAG_OPERATION, IPP_TAG_NAME,"HISTORY",NULL, "new_value");
> 
> //Do request
>     ippDelete(cupsDoRequest(http, request, "/jobs/3"));
>     printf ("ERROR %s<BR>",cupsLastErrorString());
> ////////////////////////////////////////////////////////////
> cupsDoRequest returns Ok,but the parameter does not change.
> Something wrong with my code or it's future is not implemented in this way?

Job template attributes need to be passed in the job group
(IPP_TAG_JOB), not the operation group (IPP_TAG_OPERATION).

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software          http://www.easysw.com




More information about the cups-devel mailing list