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.
int cupsAddDest (const char *name, const char *instance, int num_dests, cups_dest_t **dests) ;
The new number of destinations.
cupsAddDest() function adds a destination to the destinations array. If the destination already exists, then it is not added.