~ubuntu-branches/ubuntu/karmic/virtualbox-ose/karmic-updates

« back to all changes in this revision

Viewing changes to src/VBox/Additions/x11/x11include/4.3/programs/Xserver/render/glyphstr.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2009-09-14 18:25:07 UTC
  • mfrom: (0.4.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090914182507-c98g07mq16hjmn6d
Tags: 3.0.6-dfsg-1ubuntu1
* Merge from debian unstable (LP: #429697), remaining changes:
  - Enable DKMS support on virtualbox host and guest modules (LP: #267097)
    - Drop virtualbox-ose{-guest,}-modules-* package templates
    - Recommend *-source instead of *-modules packages
    - Replace error messages related to missing/mismatched
      kernel module accordingly
  - Autoload kernel module
    - LOAD_VBOXDRV_MODULE=1 in virtualbox-ose.default
  - Disable update action
    - patches/u01-disable-update-action.dpatch
  - Virtualbox should go in Accessories, not in System tools (LP: #288590)
    - virtualbox-ose-qt.files/virtualbox-ose.desktop
  - Add apport hook
    - virtualbox-ose.files/source_virtualbox-ose.py
    - virtualbox-ose.install
  - Add launchpad integration
    - control
    - lpi-bug.xpm
    - patches/u02-lp-integration.dpatch
  - virtualbox, virtualbox-* (names of the upstream proprietary packages)
    conflict with virtualbox-ose (LP: #379878)
* Make debug package depend on normal or guest utils package
* Drop patches/22-pulseaudio-stubs.dpatch (applied upstream)
* Rename Ubuntu specific patches to uXX-*.dpatch
* Fix lintian warnings in maintainer scripts

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * $XFree86: xc/programs/Xserver/render/glyphstr.h,v 1.4 2001/01/21 21:19:39 tsi Exp $
3
 
 *
4
 
 * Copyright � 2000 SuSE, Inc.
5
 
 *
6
 
 * Permission to use, copy, modify, distribute, and sell this software and its
7
 
 * documentation for any purpose is hereby granted without fee, provided that
8
 
 * the above copyright notice appear in all copies and that both that
9
 
 * copyright notice and this permission notice appear in supporting
10
 
 * documentation, and that the name of SuSE not be used in advertising or
11
 
 * publicity pertaining to distribution of the software without specific,
12
 
 * written prior permission.  SuSE makes no representations about the
13
 
 * suitability of this software for any purpose.  It is provided "as is"
14
 
 * without express or implied warranty.
15
 
 *
16
 
 * SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
17
 
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE
18
 
 * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19
 
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
20
 
 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
21
 
 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22
 
 *
23
 
 * Author:  Keith Packard, SuSE, Inc.
24
 
 */
25
 
 
26
 
#ifndef _GLYPHSTR_H_
27
 
#define _GLYPHSTR_H_
28
 
 
29
 
#include "renderproto.h"
30
 
#include "picture.h"
31
 
#include "screenint.h"
32
 
 
33
 
#define GlyphFormat1    0
34
 
#define GlyphFormat4    1
35
 
#define GlyphFormat8    2
36
 
#define GlyphFormat16   3
37
 
#define GlyphFormat32   4
38
 
#define GlyphFormatNum  5
39
 
 
40
 
typedef struct _Glyph {
41
 
    CARD32      refcnt;
42
 
    CARD32      size;   /* info + bitmap */
43
 
    xGlyphInfo  info;
44
 
    /* bits follow */
45
 
} GlyphRec, *GlyphPtr;
46
 
 
47
 
typedef struct _GlyphRef {
48
 
    CARD32      signature;
49
 
    GlyphPtr    glyph;
50
 
} GlyphRefRec, *GlyphRefPtr;
51
 
 
52
 
#define DeletedGlyph    ((GlyphPtr) 1)
53
 
 
54
 
typedef struct _GlyphHashSet {
55
 
    CARD32      entries;
56
 
    CARD32      size;
57
 
    CARD32      rehash;
58
 
} GlyphHashSetRec, *GlyphHashSetPtr;
59
 
 
60
 
typedef struct _GlyphHash {
61
 
    GlyphRefPtr     table;
62
 
    GlyphHashSetPtr hashSet;
63
 
    CARD32          tableEntries;
64
 
} GlyphHashRec, *GlyphHashPtr;
65
 
 
66
 
typedef struct _GlyphSet {
67
 
    CARD32          refcnt;
68
 
    PictFormatPtr   format;
69
 
    int             fdepth;
70
 
    GlyphHashRec    hash;
71
 
} GlyphSetRec, *GlyphSetPtr;
72
 
 
73
 
typedef struct _GlyphList {
74
 
    INT16           xOff;
75
 
    INT16           yOff;
76
 
    CARD8           len;
77
 
    PictFormatPtr   format;
78
 
} GlyphListRec, *GlyphListPtr;
79
 
 
80
 
extern GlyphHashRec     globalGlyphs[GlyphFormatNum];
81
 
 
82
 
GlyphHashSetPtr
83
 
FindGlyphHashSet (CARD32 filled);
84
 
 
85
 
Bool
86
 
GlyphInit (ScreenPtr pScreen);
87
 
 
88
 
GlyphRefPtr
89
 
FindGlyphRef (GlyphHashPtr hash, CARD32 signature, Bool match, GlyphPtr compare);
90
 
 
91
 
CARD32
92
 
HashGlyph (GlyphPtr glyph);
93
 
 
94
 
void
95
 
FreeGlyph (GlyphPtr glyph, int format);
96
 
 
97
 
void
98
 
AddGlyph (GlyphSetPtr glyphSet, GlyphPtr glyph, Glyph id);
99
 
 
100
 
Bool
101
 
DeleteGlyph (GlyphSetPtr glyphSet, Glyph id);
102
 
 
103
 
GlyphPtr
104
 
FindGlyph (GlyphSetPtr glyphSet, Glyph id);
105
 
 
106
 
GlyphPtr
107
 
AllocateGlyph (xGlyphInfo *gi, int format);
108
 
 
109
 
Bool
110
 
AllocateGlyphHash (GlyphHashPtr hash, GlyphHashSetPtr hashSet);
111
 
 
112
 
Bool
113
 
ResizeGlyphHash (GlyphHashPtr hash, CARD32 change, Bool global);
114
 
 
115
 
Bool
116
 
ResizeGlyphSet (GlyphSetPtr glyphSet, CARD32 change);
117
 
 
118
 
GlyphSetPtr
119
 
AllocateGlyphSet (int fdepth, PictFormatPtr format);
120
 
 
121
 
int
122
 
FreeGlyphSet (pointer   value,
123
 
              XID       gid);
124
 
 
125
 
 
126
 
 
127
 
#endif /* _GLYPHSTR_H_ */