1
#ifndef PRINTERQUEUES_H
2
#define PRINTERQUEUES_H
12
void (*Dispose)(struct pqinfo *pq);
14
/* For querying the available printer queues */
16
int (*GetPrinterCount)(struct pqinfo *pq);
17
char *(*GetPrinterName)(struct pqinfo *pq,int index);
19
/* Select a printer queue with this function */
21
void (*SetPrinterQueue)(struct pqinfo *pq,const char *queue);
23
/* Returns the gutenprint driver associated with
24
the queue, or NULL if unknown. */
26
char *(*GetDriver)(struct pqinfo *pq);
28
/* Returns the PPD associated with the the queue,
29
or NULL if unknown or not applicable. */
31
char *(*GetPPD)(struct pqinfo *pq);
33
/* Functions to delineate the beginning and end of pages and jobs. */
34
int (*InitialiseJob)(struct pqinfo *pq);
35
void (*InitialisePage)(struct pqinfo *pq);
36
void (*EndPage)(struct pqinfo *pq);
37
void (*EndJob)(struct pqinfo *pq);
38
void (*CancelJob)(struct pqinfo *pq);
40
/* Function to write data to the printer queue */
41
int (*WriteData)(struct pqinfo *pq,const char *data,int bytecount);
43
struct pqprivate *priv;
46
struct pqinfo *pqinfo_create();