VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.1.0/attributes.h

Last change on this file was 51223, checked in by vboxsync, 11 years ago

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

  • Property svn:eol-style set to native
File size: 4.7 KB
Line 
1/* $Xorg: attributes.h,v 1.4 2001/03/14 18:42:44 pookie 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
11Permission is hereby granted, free of charge, to any person obtaining a copy
12of this software and associated documentation files (the "Software"), to deal
13in the Software without restriction, including without limitation the rights
14to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15copies of the Software, and to permit persons to whom the Software is
16furnished to do so, subject to the following conditions:
17
18The above copyright notice and this permission notice shall be included in
19all copies or substantial portions of the Software.
20
21THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
25IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
26CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27
28Except as contained in this notice, the names of the copyright holders shall
29not be used in advertising or otherwise to promote the sale, use or other
30dealings in this Software without prior written authorization from said
31copyright holders.
32*/
33
34#ifdef HAVE_DIX_CONFIG_H
35#include <dix-config.h>
36#endif
37
38#ifndef _Xp_attributes_h
39#define _Xp_attributes_h 1
40
41#include "scrnintstr.h"
42#include "AttrValid.h"
43
44#define BFuncArgs int ndx, ScreenPtr pScreen, int argc, char **argv
45typedef Bool (*pBFunc)(BFuncArgs);
46
47#define VFuncArgs char *name, XpValidatePoolsRec *pValRec, float *width, float *height, int *res
48typedef void (*pVFunc)(VFuncArgs);
49
50/*
51 * attributes.c
52 */
53void XpInitAttributes(XpContextPtr pContext);
54void XpBuildAttributeStore(char *printerName,
55 char *qualifierName);
56void XpAddPrinterAttribute(char *printerName,
57 char *printerQualifier,
58 char *attributeName,
59 char *attributeValue);
60void XpDestroyAttributes(XpContextPtr pContext);
61char *XpGetConfigDir(Bool useLocale);
62char *XpGetOneAttribute(XpContextPtr pContext,
63 XPAttributes class,
64 char *attributeName);
65void XpPutOneAttribute(XpContextPtr pContext,
66 XPAttributes class,
67 const char* attributeName,
68 const char* value);
69int XpRehashAttributes(void);
70char *XpGetAttributes(XpContextPtr pContext,
71 XPAttributes class);
72int XpAugmentAttributes(XpContextPtr pContext,
73 XPAttributes class,
74 char *attributes);
75int XpSetAttributes(XpContextPtr pContext,
76 XPAttributes class,
77 char *attributes);
78const char *XpGetPrinterAttribute(const char *printerName,
79 const char *attribute);
80void XpGetTrayMediumFromContext(XpContextPtr pCon,
81 char **medium,
82 char **tray);
83int XpSubmitJob(char *fileName, XpContextPtr pContext);
84
85/*
86 * mediaSizes.c
87 */
88int XpGetResolution(XpContextPtr pContext);
89XpOid XpGetContentOrientation(XpContextPtr pContext);
90XpOid XpGetAvailableCompression(XpContextPtr pContext);
91XpOid XpGetPlex(XpContextPtr pContext);
92XpOid XpGetPageSize(XpContextPtr pContext,
93 XpOid* pTray,
94 const XpOidMediumSS* msss);
95void XpGetMediumMillimeters(XpOid page_size,
96 float *width,
97 float *height);
98void XpGetMediumDimensions(XpContextPtr pContext,
99 unsigned short *width,
100 unsigned short *height);
101void XpGetReproductionArea(XpContextPtr pContext,
102 xRectangle *pRect);
103void XpGetMaxWidthHeightRes(const char *printer_name,
104 const XpValidatePoolsRec* vpr,
105 float *width,
106 float *height,
107 int* resolution);
108
109/* Util.c */
110char *ReplaceAnyString(char *string,
111 char *target,
112 char *replacement);
113char *ReplaceFileString(char *string,
114 char *inFileName,
115 char *outFileName);
116int TransferBytes(FILE *pSrcFile,
117 FILE *pDstFile,
118 int numBytes);
119Bool CopyContentsAndDelete(FILE **ppSrcFile,
120 char **pSrcFileName,
121 FILE *pDstFile);
122int XpSendDocumentData(ClientPtr client,
123 FILE *fp,
124 int fileLen,
125 int maxBufSize);
126int XpFinishDocData(ClientPtr client);
127Bool XpOpenTmpFile(char *mode,
128 char **fname,
129 FILE **stream);
130
131#endif /* _Xp_attributes_h */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette