[cups] programmatically obtain connection
Michael Sweet
msweet at apple.com
Tue May 24 08:17:06 PDT 2016
John,
See:
https://www.cups.org/documentation.php/doc-2.1/api-httpipp.html#cupsGetDevices
(this will be moving to a new administrative programming manual in 2.2)
The cupsGetDevices() API came in CUPS 1.4, long after the CUPS book which was written mostly in 2000 (CUPS 1.1.x/leading up to 1.2...)
> On May 24, 2016, at 10:58 AM, Boncek, John <jboncek at hunter.com> wrote:
>
> After considerable searching, I find no references to cupsGetDevices. Can you point me to
> the documentation? I also searched for cupsGetDevice and cupsGetDev. The CUPS book
> doesn't seem to know it either.
>
> -----Original Message-----
> From: cups-bounces at cups.org [mailto:cups-bounces at cups.org] On Behalf Of Michael Sweet
> Sent: Friday, May 20, 2016 6:53 PM
> To: The CUPS user discussion list.
> Subject: Re: [cups] programmatically obtain connection
>
> You want to look at the cupsGetDevices API.
>
>> On May 20, 2016, at 5:27 PM, Boncek, John <jboncek at hunter.com> wrote:
>>
>> Using CUPS 1.7.2 under Ubuntu 14.04 at http://localhost:631, the
>> Printers page shows a list of available printers. When you click one,
>> it shows various information about that printer, including
>> "Connection", with values like "socket:10.2..." or "usb://HP/..." How
>> can I programmatically get that information for a printer? I've
>> looked thru the CUPS API but can't see any way to do so. I know how
>> to get a list of destinations but that doesn't contain this
>> information as far as I can see. Thanks for any help you can provide.
>> (If this is the wrong list for a question like this, please point me
>> to a better one.) _______________________________________________
>> cups mailing list
>> cups at cups.org
>> https://www.cups.org/mailman/listinfo/cups
>
> _________________________________________________________
> Michael Sweet, Senior Printing System Engineer
>
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://www.cups.org/mailman/listinfo/cups
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://www.cups.org/mailman/listinfo/cups
_________________________________________________________
Michael Sweet, Senior Printing System Engineer
More information about the cups
mailing list