[cups.general] Faster cupsGetDests alternative

Michael R Sweet msweet at apple.com
Wed Dec 19 10:40:00 PST 2007


Tim Waugh wrote:
> (Yes, this is an old thread...)
> 
> On Tue, 2006-08-29 at 08:23 -0400, Michael Sweet wrote:
>> cups-lpd implements a single printer lookup with its options from
>> /etc/cups/lpoptions; see the "get_printer()" function for the
>> implementation.
>>
>> It is not designed to be a general-purpose replacement for
>> cupsGetDests(), but rather a faster alternative when you know the
>> printer name.  It might make its way into the CUPS API in a future
>> feature release for use by the lp and lpr commands, however there
>> is still the issue of handling the "default" printer which slows
>> things down a bit...
> 
> Mike,
> 
> What do you think about adding a cupsGetSingleDest() (or similar) API
> function for implementing this?

The main issues are how to implement this efficiently for the default
printer case and avoid duplicating a lot of code.  I've created STR
#2638 to track this:

     http://www.cups.org/str.php?L2638

We'll add the API in CUPS 1.4...

-- 
______________________________________________________________________
Michael R Sweet                        Senior Printing System Engineer





More information about the cups mailing list