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 */ ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.