O'Reilly logo

Common UNIX Printing System by Michael R. Sweet

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix ECUPS Functions

This appendix describes the functions that are provided in the CUPS API and CUPS Imaging libraries. For a reference on the constants and structures these functions use, please consult Appendices B, C, and D.

cupsAddDest()

Usage

 int cupsAddDest (const char     *name,                        const char     *instance,                        int                 num_dests,                        cups_dest_t  **dests) ;

Arguments

Image

Returns

The new number of destinations.

Description

The cupsAddDest() function adds a destination to the destinations array. If the destination already exists, then it is not added.

Example

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required