cupsGetDests

Name

cupsGetDests -- Get the list of destinations from the default server.

Synopsis

#include <cups/cups.h>

int cupsGetDests(cups_dest_t ** dests);

Description

Get the list of destinations from the default server.

Starting with CUPS 1.2, the returned list of destinations include the printer-info, printer-is-accepting-jobs, printer-is-shared, printer-make-and-model, printer-state, printer-state-change-time, printer-state-reasons, and printer-type attributes as options.

Use the cupsFreeDests() function to free the destination list and the cupsGetDest() function to find a particular destination.

Return Value

Number of destinations