1/*-
2 * Copyright (c) 1998-1999 Shunsuke Akiyama <akiyama@jp.FreeBSD.org>.
3 * All rights reserved.
4 * Copyright (c) 1998-1999 X-TrueType Server Project, All rights
5 * reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 *    notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 *    notice, this list of conditions and the following disclaimer in the
14 *    documentation and/or other materials provided with the distribution.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 *	Id: fontcachstr.h,v 1.7 1999/01/31 14:58:40 akiyama Exp $
29 */
30/* $XFree86$ */
31
32/* THIS IS NOT AN X CONSORTIUM STANDARD */
33
34#ifndef _FONTCACHESTR_H_
35#define _FONTCACHESTR_H_
36
37#include <X11/extensions/fontcache.h>
38
39#define FONTCACHENAME		"FontCache"
40
41#define FONTCACHE_MAJOR_VERSION	0	/* current version numbers */
42#define FONTCACHE_MINOR_VERSION	1
43
44typedef struct _FontCacheQueryVersion {
45    CARD8	reqType;		/* always FontCacheReqCode */
46    CARD8	fontcacheReqType;	/* always X_FontCacheQueryVersion */
47    CARD16	length;
48} xFontCacheQueryVersionReq;
49#define sz_xFontCacheQueryVersionReq	4
50
51typedef struct {
52    BYTE	type;			/* X_Reply */
53    BOOL	pad1;
54    CARD16	sequenceNumber;
55    CARD32	length;
56    CARD16	majorVersion;		/* major version of Font-Cache */
57    CARD16	minorVersion;		/* minor version of Font-Cache */
58    CARD32	pad2;
59    CARD32	pad3;
60    CARD32	pad4;
61    CARD32	pad5;
62    CARD32	pad6;
63} xFontCacheQueryVersionReply;
64#define sz_xFontCacheQueryVersionReply	32
65
66typedef struct _FontCacheGetCacheSettings {
67    CARD8	reqType;		/* always FontCacheReqCode */
68    CARD8	fontcacheReqType;	/* always X_FontCacheGetCacheSettings */
69    CARD16	length;
70} xFontCacheGetCacheSettingsReq;
71#define sz_xFontCacheGetCacheSettingsReq	4
72
73typedef struct {
74    BYTE	type;			/* X_Reply */
75    BOOL	pad1;
76    CARD16	sequenceNumber;
77    CARD32	length;
78    CARD32	himark;
79    CARD32	lowmark;
80    CARD32	balance;
81    CARD32	reserve0;
82    CARD32	reserve1;
83    CARD32	reserve2;
84} xFontCacheGetCacheSettingsReply;
85#define sz_xFontCacheGetCacheSettingsReply	32
86
87typedef struct _FontCacheChangeCacheSettings {
88    CARD8	reqType;		/* always FontCacheReqCode */
89    CARD8	fontcacheReqType;	/* always X_FontCacheChangeCacheSettings */
90    CARD16	length;
91    CARD32	himark;
92    CARD32	lowmark;
93    CARD32	balance;
94    CARD32	reserve0;
95    CARD32	reserve1;
96    CARD32	reserve2;
97    CARD32	reserve3;
98} xFontCacheChangeCacheSettingsReq;
99#define sz_xFontCacheChangeCacheSettingsReq	32
100
101typedef struct _FontCacheGetCacheStatistics {
102    CARD8	reqType;		/* always FontCacheReqCode */
103    CARD8	fontcacheReqType;	/* always X_FontCacheGetCacheStatistics */
104    CARD16	length;
105} xFontCacheGetCacheStatisticsReq;
106#define sz_xFontCacheGetCacheStatisticsReq	4
107
108typedef struct {
109    BYTE	type;			/* X_Reply */
110    BOOL	pad1;
111    CARD16	sequenceNumber;
112    CARD32	length;
113    CARD32	purge_runs;
114    CARD32	purge_stat;
115    CARD32	balance;
116    CARD32	reserve0;
117    CARD32	f_hits;
118    CARD32	f_misshits;
119    CARD32	f_purged;
120    CARD32	f_usage;
121    CARD32	f_reserve0;
122    CARD32	v_hits;
123    CARD32	v_misshits;
124    CARD32	v_purged;
125    CARD32	v_usage;
126    CARD32	v_reserve0;
127} xFontCacheGetCacheStatisticsReply;
128#define sz_xFontCacheGetCacheStatisticsReply	64
129
130#endif /* _FONTCACHESTR_H_ */
131