VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/XFree86-4.3/Xserver/closestr.h@ 97956

最後變更 在這個檔案從97956是 69098,由 vboxsync 提交於 7 年 前

Clean up XFree86 driver header files.
bugref:3810: X11 Guest Additions maintenance
Over the years we have cleaned up the layout in the tree of the X.Org
header files we use to build drivers. The XFree86 ones were still in their
original, rather sub-optimal layout. This change fixes that.

  • 屬性 svn:eol-style 設為 native
檔案大小: 3.8 KB
 
1/* $Xorg: closestr.h,v 1.4 2001/02/09 02:05:14 xorgcvs Exp $ */
2/*
3
4Copyright 1991, 1998 The Open Group
5
6Permission to use, copy, modify, distribute, and sell this software and its
7documentation for any purpose is hereby granted without fee, provided that
8the above copyright notice appear in all copies and that both that
9copyright notice and this permission notice appear in supporting
10documentation.
11
12The above copyright notice and this permission notice shall be included
13in all copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
19OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21OTHER DEALINGS IN THE SOFTWARE.
22
23Except as contained in this notice, the name of The Open Group shall
24not be used in advertising or otherwise to promote the sale, use or
25other dealings in this Software without prior written authorization
26from The Open Group.
27
28*/
29/* $XFree86: xc/programs/Xserver/include/closestr.h,v 3.4 2001/12/14 19:59:53 dawes Exp $ */
30
31
32#ifndef CLOSESTR_H
33#define CLOSESTR_H
34
35#define NEED_REPLIES
36#include "Xproto.h"
37#include "closure.h"
38#include "dix.h"
39#include "misc.h"
40#include "gcstruct.h"
41
42/* closure structures */
43
44/* OpenFont */
45
46typedef struct _OFclosure {
47 ClientPtr client;
48 short current_fpe;
49 short num_fpes;
50 FontPathElementPtr *fpe_list;
51 Mask flags;
52 Bool slept;
53
54/* XXX -- get these from request buffer instead? */
55 char *origFontName;
56 int origFontNameLen;
57 XID fontid;
58 char *fontname;
59 int fnamelen;
60 FontPtr non_cachable_font;
61} OFclosureRec;
62
63/* ListFontsWithInfo */
64
65#define XLFDMAXFONTNAMELEN 256
66typedef struct _LFWIstate {
67 char pattern[XLFDMAXFONTNAMELEN];
68 int patlen;
69 int current_fpe;
70 int max_names;
71 Bool list_started;
72 pointer private;
73} LFWIstateRec, *LFWIstatePtr;
74
75typedef struct _LFWIclosure {
76 ClientPtr client;
77 int num_fpes;
78 FontPathElementPtr *fpe_list;
79 xListFontsWithInfoReply *reply;
80 int length;
81 LFWIstateRec current;
82 LFWIstateRec saved;
83 int savedNumFonts;
84 Bool haveSaved;
85 Bool slept;
86 char *savedName;
87} LFWIclosureRec;
88
89/* ListFonts */
90
91typedef struct _LFclosure {
92 ClientPtr client;
93 int num_fpes;
94 FontPathElementPtr *fpe_list;
95 FontNamesPtr names;
96 LFWIstateRec current;
97 LFWIstateRec saved;
98 Bool haveSaved;
99 Bool slept;
100 char *savedName;
101 int savedNameLen;
102} LFclosureRec;
103
104/* PolyText */
105
106typedef
107 int (* PolyTextPtr)(
108#if NeedNestedPrototypes
109 DrawablePtr /* pDraw */,
110 GCPtr /* pGC */,
111 int /* x */,
112 int /* y */,
113 int /* count */,
114 void * /* chars or shorts */
115#endif
116 );
117
118typedef struct _PTclosure {
119 ClientPtr client;
120 DrawablePtr pDraw;
121 GC *pGC;
122 unsigned char *pElt;
123 unsigned char *endReq;
124 unsigned char *data;
125 int xorg;
126 int yorg;
127 CARD8 reqType;
128 PolyTextPtr polyText;
129 int itemSize;
130 XID did;
131 int err;
132 Bool slept;
133} PTclosureRec;
134
135/* ImageText */
136
137typedef
138 void (* ImageTextPtr)(
139#if NeedNestedPrototypes
140 DrawablePtr /* pDraw */,
141 GCPtr /* pGC */,
142 int /* x */,
143 int /* y */,
144 int /* count */,
145 void * /* chars or shorts */
146#endif
147 );
148
149typedef struct _ITclosure {
150 ClientPtr client;
151 DrawablePtr pDraw;
152 GC *pGC;
153 BYTE nChars;
154 unsigned char *data;
155 int xorg;
156 int yorg;
157 CARD8 reqType;
158 ImageTextPtr imageText;
159 int itemSize;
160 XID did;
161 Bool slept;
162} ITclosureRec;
163#endif /* CLOSESTR_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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