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

Get Common UNIX Printing System now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.