[cups.development] how to add new printer with libcups

Michael Sweet msweet at apple.com
Wed Sep 2 08:28:46 PDT 2009


You'll need to use the HTTP and IPP APIs to send a  
CUPS_ADD_MODIFY_PRINTER request.  Use the lpadmin code as a guide.

API documentation:

     http://www.cups.org/documentation.php/api-httpipp.html

IPP documentation:

     http://www.cups.org/documentation.php/spec-ipp.html

On Sep 2, 2009, at 6:22 AM, Dmitry wrote:

> Hi. I have some (unknown) printer connected to USB interface. I can  
> get its vendor, model etc. via system tools. How can I add this  
> printer to cups programmatically via CUPS API (libcups2) in Debian  
> Lenny? I need to do it exactly via API, not with standard system  
> tools. Thanks!
> _______________________________________________
> cups-dev mailing list
> cups-dev at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups-dev

___________________________________________________
Michael Sweet, Senior Printing System Engineer







More information about the cups-devel mailing list