Job Attributes type determination

Michael Sweet mike at easysw.com
Wed Jan 31 06:33:11 PST 2007


vladimir wrote:
> I'm sorry too
> Well, in general, I need to get Job attributes of specified JOB and display this data to user.
> I build two arrays: for JOB_ATTRIB_NAME and for JOB_ATTRIB_VALUE correspondingly by calling for cgiSetArray.
> My problem is about to pass third parameter: cgiSetArray receive it as string but attr->values[0] may have different data types(date, string, integer, etc).
> The question: do I have to perform type determination by myself or exists some API function to do this?
 > ...

Well, none of the CGI functions are public APIs, but if you look at
the cgi-bin/ipp-var.c file you'll see code to convert attribute
values to strings.

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




More information about the cups mailing list