cupsGetOption("device-uri", dest->num_options,dest->options) returns null

dinesh verma dverma at q3tech.com
Mon Feb 6 00:46:51 PST 2012


Hi Michael can you please point me to the pointer where i can get the source code for CUPS_GET_PRINTERS also the direction for lpstat code.

> CUPS 1.1.x did not expose the device-uri attribute in the options array.  You need to use  the IPP APIs to send a CUPS_GET_PRINTERS request and then parse the response (see the source for the "lpstat" command for inspiration)
>
> On Feb 5, 2012, at 10:46 PM, dinesh verma wrote:
>
> > Hi,
> > I am trying to create a printer application. in which i need to filter the printer list based on device-uri. My Application runs fine on mac OS version 10.5 & later. but when i tried to run the same application on mac 10.4.11 version
> >
> > cupsGetOption("device-uri", dest->num_options, dest->options) funtion always returns null.
> >
> > The target machine has cups version 1.1.23. Can Anyone please let me know if
> >
> > cupsGetOption("device-uri", dest->num_options, dest->options) really works on cups version 1.1.23 or there is anyother way to find the device uri on mac 10.4 with cups version 1.1.23..
> >
> > Thanks
> > _______________________________________________
> > cups-bugs mailing list
> > cups-bugs at easysw.com
> > http://lists.easysw.com/mailman/listinfo/cups-bugs
>
> _________________________________________________________
> Michael Sweet, Senior Printing System Engineer, PWG Chair
>





More information about the cups-devel mailing list