~ubuntu-branches/ubuntu/feisty/photoprint/feisty

« back to all changes in this revision

Viewing changes to stp_support/printerqueues.h

  • Committer: Bazaar Package Importer
  • Author(s): Milan Zamazal
  • Date: 2006-09-29 12:18:16 UTC
  • Revision ID: james.westby@ubuntu.com-20060929121816-6t2iz9zaymixd3om
Tags: upstream-0.3.3
ImportĀ upstreamĀ versionĀ 0.3.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef PRINTERQUEUES_H
 
2
#define PRINTERQUEUES_H
 
3
 
 
4
#ifdef __cplusplus
 
5
        extern "C" {
 
6
#endif
 
7
 
 
8
struct pqprivate;
 
9
 
 
10
struct pqinfo
 
11
{
 
12
        void (*Dispose)(struct pqinfo *pq);
 
13
 
 
14
        /* For querying the available printer queues */
 
15
 
 
16
        int (*GetPrinterCount)(struct pqinfo *pq);
 
17
        char *(*GetPrinterName)(struct pqinfo *pq,int index);
 
18
 
 
19
        /* Select a printer queue with this function */
 
20
 
 
21
        void (*SetPrinterQueue)(struct pqinfo *pq,const char *queue);
 
22
 
 
23
        /* Returns the gutenprint driver associated with
 
24
           the queue, or NULL if unknown.  */
 
25
 
 
26
        char *(*GetDriver)(struct pqinfo *pq);
 
27
        
 
28
        /* Returns the PPD associated with the the queue,
 
29
           or NULL if unknown or not applicable. */
 
30
 
 
31
        char *(*GetPPD)(struct pqinfo *pq);
 
32
 
 
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);
 
39
 
 
40
        /* Function to write data to the printer queue */
 
41
        int (*WriteData)(struct pqinfo *pq,const char *data,int bytecount);
 
42
 
 
43
        struct pqprivate *priv;
 
44
};
 
45
 
 
46
struct pqinfo *pqinfo_create();
 
47
 
 
48
#ifdef __cplusplus
 
49
    }
 
50
#endif
 
51
 
 
52
#endif