2
* Copyright (c) 1998-1999 Shunsuke Akiyama <akiyama@jp.FreeBSD.org>.
4
* Copyright (c) 1998-1999 X-TrueType Server Project, All rights
7
* Redistribution and use in source and binary forms, with or without
8
* modification, are permitted provided that the following conditions
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.
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
28
* Id: fontcachstr.h,v 1.7 1999/01/31 14:58:40 akiyama Exp $
30
/* $XFree86: xc/include/extensions/fontcachstr.h,v 1.3 2001/08/01 00:44:35 tsi Exp $ */
32
/* THIS IS NOT AN X CONSORTIUM STANDARD */
34
#ifndef _FONTCACHESTR_H_
35
#define _FONTCACHESTR_H_
37
#include <X11/extensions/fontcache.h>
39
#define FONTCACHENAME "FontCache"
41
#define FONTCACHE_MAJOR_VERSION 0 /* current version numbers */
42
#define FONTCACHE_MINOR_VERSION 1
44
typedef struct _FontCacheQueryVersion {
45
CARD8 reqType; /* always FontCacheReqCode */
46
CARD8 fontcacheReqType; /* always X_FontCacheQueryVersion */
48
} xFontCacheQueryVersionReq;
49
#define sz_xFontCacheQueryVersionReq 4
52
BYTE type; /* X_Reply */
54
CARD16 sequenceNumber B16;
56
CARD16 majorVersion B16; /* major version of Font-Cache */
57
CARD16 minorVersion B16; /* minor version of Font-Cache */
63
} xFontCacheQueryVersionReply;
64
#define sz_xFontCacheQueryVersionReply 32
66
typedef struct _FontCacheGetCacheSettings {
67
CARD8 reqType; /* always FontCacheReqCode */
68
CARD8 fontcacheReqType; /* always X_FontCacheGetCacheSettings */
70
} xFontCacheGetCacheSettingsReq;
71
#define sz_xFontCacheGetCacheSettingsReq 4
74
BYTE type; /* X_Reply */
76
CARD16 sequenceNumber B16;
84
} xFontCacheGetCacheSettingsReply;
85
#define sz_xFontCacheGetCacheSettingsReply 32
87
typedef struct _FontCacheChangeCacheSettings {
88
CARD8 reqType; /* always FontCacheReqCode */
89
CARD8 fontcacheReqType; /* always X_FontCacheChangeCacheSettings */
98
} xFontCacheChangeCacheSettingsReq;
99
#define sz_xFontCacheChangeCacheSettingsReq 32
101
typedef struct _FontCacheGetCacheStatistics {
102
CARD8 reqType; /* always FontCacheReqCode */
103
CARD8 fontcacheReqType; /* always X_FontCacheGetCacheStatistics */
105
} xFontCacheGetCacheStatisticsReq;
106
#define sz_xFontCacheGetCacheStatisticsReq 4
109
BYTE type; /* X_Reply */
111
CARD16 sequenceNumber B16;
113
CARD32 purge_runs B32;
114
CARD32 purge_stat B32;
118
CARD32 f_misshits B32;
121
CARD32 f_reserve0 B32;
123
CARD32 v_misshits B32;
126
CARD32 v_reserve0 B32;
127
} xFontCacheGetCacheStatisticsReply;
128
#define sz_xFontCacheGetCacheStatisticsReply 64
130
#endif /* _FONTCACHESTR_H_ */