~ubuntu-branches/ubuntu/intrepid/xserver-xgl/intrepid

« back to all changes in this revision

Viewing changes to Xprint/DiPrint.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthew Garrett
  • Date: 2006-02-13 14:21:43 UTC
  • Revision ID: james.westby@ubuntu.com-20060213142143-mad6z9xzem7hzxz9
Tags: upstream-7.0.0
ImportĀ upstreamĀ versionĀ 7.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Xorg: DiPrint.h,v 1.3 2000/08/17 19:48:04 cpqbld Exp $ */
 
2
/*
 
3
(c) Copyright 1996 Hewlett-Packard Company
 
4
(c) Copyright 1996 International Business Machines Corp.
 
5
(c) Copyright 1996 Sun Microsystems, Inc.
 
6
(c) Copyright 1996 Novell, Inc.
 
7
(c) Copyright 1996 Digital Equipment Corp.
 
8
(c) Copyright 1996 Fujitsu Limited
 
9
(c) Copyright 1996 Hitachi, Ltd.
 
10
 
 
11
Permission is hereby granted, free of charge, to any person obtaining a copy
 
12
of this software and associated documentation files (the "Software"), to deal
 
13
in the Software without restriction, including without limitation the rights
 
14
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 
15
copies of the Software, and to permit persons to whom the Software is
 
16
furnished to do so, subject to the following conditions:
 
17
 
 
18
The above copyright notice and this permission notice shall be included in
 
19
all copies or substantial portions of the Software.
 
20
 
 
21
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
22
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
23
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 
24
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 
25
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 
26
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
27
 
 
28
Except as contained in this notice, the names of the copyright holders shall
 
29
not be used in advertising or otherwise to promote the sale, use or other
 
30
dealings in this Software without prior written authorization from said
 
31
copyright holders.
 
32
*/
 
33
/*
 
34
 * The XpDiListEntry struct is the type of each element of the array
 
35
 * handed back to the extension code to handle a GetPrinterList request.
 
36
 * We don't use the printerDb directly because of the desire to handle
 
37
 * multiple locales.  Creating this new array for each GetPrinterList
 
38
 * request will allow us to build it with the description in the locale of
 
39
 * the requesting client.
 
40
 */
 
41
#ifdef HAVE_DIX_CONFIG_H
 
42
#include <dix-config.h>
 
43
#endif
 
44
 
 
45
#ifndef _XpDiPrint_H_
 
46
#define _XpDiPrint_H_ 1
 
47
 
 
48
#include "scrnintstr.h"
 
49
 
 
50
typedef struct _diListEntry {
 
51
    char *name;
 
52
    char *description;
 
53
    char *localeName;
 
54
    unsigned long rootWinId;
 
55
} XpDiListEntry;
 
56
 
 
57
extern void XpDiFreePrinterList(XpDiListEntry **list);
 
58
 
 
59
extern XpDiListEntry **XpDiGetPrinterList(
 
60
    int nameLen,
 
61
    char *name,
 
62
    int localeLen,
 
63
    char *locale);
 
64
 
 
65
extern char * XpDiGetDriverName(int index, char *printerName);
 
66
 
 
67
extern WindowPtr XpDiValidatePrinter(char *printerName, int printerNameLen);
 
68
 
 
69
extern int PrinterOptions(int argc, char **argv, int i);
 
70
 
 
71
extern void PrinterUseMsg(void);
 
72
 
 
73
extern void PrinterInitGlobals(void);
 
74
 
 
75
extern void PrinterInitOutput(ScreenInfo *pScreenInfo, int argc, char **argv);
 
76
 
 
77
extern void _XpVoidNoop(void);
 
78
 
 
79
extern Bool _XpBoolNoop(void);
 
80
 
 
81
#endif /* _XpDiPrint_H_ */