table of contents
other versions
XpGetPrinterList(3Xp) | XPRINT FUNCTIONS | XpGetPrinterList(3Xp) |
NAME¶
XpGetPrinterList - Retrieves a list of all printers supported on an X Print Server.SYNOPSIS¶
cc [ flag... ] file... -lXp [ library... ]
#include <X11/extensions/Print.h> XPPrinterList XpGetPrinterList ( display, printer_name, list_count_return )
Display * display;
char * printer_name;
int * list_count_return;
ARGUMENTS¶
- display
- Specifies a pointer to the Display structure; returned from XOpenDisplay.
- printer_name
- Specifies the name of the printer for which information is desired. If NULL, then information is returned for all printers associated with the server.
- list_count_return
- Returns the number of printers in the list.
DESCRIPTION¶
XpGetPrinterList returns a list of printer records where each record describes a printer supported by the X Print Server, or NULL if any errors occur.typedef struct { char *name; /∗ name */ char *desc; /∗ localized description */ } XPPrinterRec, *XPPrinterList;
DIAGNOSTICS¶
- BadAlloc
- Insufficient memory.
SEE ALSO¶
XpFreePrinterList(3Xp), XpSetLocaleHinter(3Xp)libXp 1.0.0 | X Version 11 |