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 DCUPS Structures

This appendix provides a detailed description of all the data structures provided by the CUPS software. Please refer to Appendices B and C for a description of the constants used in these data structures.

CUPS API Structures

The CUPS API uses the following structures for basic printing services.

cups_dest_t

The cups_dest_t structure describes a single printer or instance and the associated options.

typedef struct                          /**** Destination ****/{   char              *name,             /* Printer or class name */                        *instance;        /* Local instance name or NULL */   int                  is_default;      /* Is this printer the default? */   int                  num_options; /* Number of options */ ...

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