[cups.development] Determine hardware and virtual printers

Michael Sweet msweet at apple.com
Tue Sep 8 11:23:49 PDT 2009


On Sep 8, 2009, at 10:44 AM, Dmitry wrote:
> Hi. Is there a way in CUPS API to determine which printers are  
> hardware and which are virtual?

What do you mean by virtual?  If you are looking to determine whether  
a particular printer is a class or a specific printer, you can look at  
the printer-type value returned in the options array for each  
destination returned by cupsGetDests().

If you are trying to determine whether you'll be printing or saving as  
PDF, for example, then you'll need to know about the device URIs used  
by each of the third-party solutions - then you can just look at the  
device-uri for each printer and determine from there.

That said, why do you need to know this information?  Why do you care?

___________________________________________________
Michael Sweet, Senior Printing System Engineer







More information about the cups mailing list