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

« back to all changes in this revision

Viewing changes to src/VBox/Additions/x11/x11include/1.4/xorg/damagestr.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
 
 * Copyright © 2003 Keith Packard
3
 
 *
4
 
 * Permission to use, copy, modify, distribute, and sell this software and its
5
 
 * documentation for any purpose is hereby granted without fee, provided that
6
 
 * the above copyright notice appear in all copies and that both that
7
 
 * copyright notice and this permission notice appear in supporting
8
 
 * documentation, and that the name of Keith Packard not be used in
9
 
 * advertising or publicity pertaining to distribution of the software without
10
 
 * specific, written prior permission.  Keith Packard makes no
11
 
 * representations about the suitability of this software for any purpose.  It
12
 
 * is provided "as is" without express or implied warranty.
13
 
 *
14
 
 * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15
 
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16
 
 * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17
 
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18
 
 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19
 
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20
 
 * PERFORMANCE OF THIS SOFTWARE.
21
 
 */
22
 
 
23
 
#ifdef HAVE_DIX_CONFIG_H
24
 
#include <dix-config.h>
25
 
#endif
26
 
 
27
 
#ifndef _DAMAGESTR_H_
28
 
#define _DAMAGESTR_H_
29
 
 
30
 
#include "damage.h"
31
 
#include "gcstruct.h"
32
 
#ifdef RENDER
33
 
# include "picturestr.h"
34
 
#endif
35
 
 
36
 
typedef struct _damage {
37
 
    DamagePtr           pNext;
38
 
    DamagePtr           pNextWin;
39
 
    RegionRec           damage;
40
 
    
41
 
    DamageReportLevel   damageLevel;
42
 
    Bool                isInternal;
43
 
    void                *closure;
44
 
    Bool                isWindow;
45
 
    DrawablePtr         pDrawable;
46
 
    
47
 
    DamageReportFunc    damageReport;
48
 
    DamageDestroyFunc   damageDestroy;
49
 
 
50
 
    Bool                reportAfter;
51
 
    RegionRec           pendingDamage;
52
 
} DamageRec;
53
 
 
54
 
typedef struct _damageScrPriv {
55
 
    int                         internalLevel;
56
 
 
57
 
    /*
58
 
     * For DDXen which don't provide GetScreenPixmap, this provides
59
 
     * a place to hook damage for windows on the screen
60
 
     */
61
 
    DamagePtr                   pScreenDamage;
62
 
 
63
 
    PaintWindowBackgroundProcPtr PaintWindowBackground;
64
 
    PaintWindowBorderProcPtr    PaintWindowBorder;
65
 
    CopyWindowProcPtr           CopyWindow;
66
 
    CloseScreenProcPtr          CloseScreen;
67
 
    CreateGCProcPtr             CreateGC;
68
 
    DestroyPixmapProcPtr        DestroyPixmap;
69
 
    SetWindowPixmapProcPtr      SetWindowPixmap;
70
 
    DestroyWindowProcPtr        DestroyWindow;
71
 
#ifdef RENDER
72
 
    CompositeProcPtr            Composite;
73
 
    GlyphsProcPtr               Glyphs;
74
 
#endif
75
 
    BSFuncRec                   BackingStoreFuncs;
76
 
} DamageScrPrivRec, *DamageScrPrivPtr;
77
 
 
78
 
typedef struct _damageGCPriv {
79
 
    GCOps   *ops;
80
 
    GCFuncs *funcs;
81
 
} DamageGCPrivRec, *DamageGCPrivPtr;
82
 
 
83
 
/* XXX should move these into damage.c, damageScrPrivateIndex is static */
84
 
#define damageGetScrPriv(pScr) \
85
 
    ((DamageScrPrivPtr) (pScr)->devPrivates[damageScrPrivateIndex].ptr)
86
 
 
87
 
#define damageScrPriv(pScr) \
88
 
    DamageScrPrivPtr    pScrPriv = damageGetScrPriv(pScr)
89
 
 
90
 
#define damageGetPixPriv(pPix) \
91
 
    ((DamagePtr) (pPix)->devPrivates[damagePixPrivateIndex].ptr)
92
 
 
93
 
#define damgeSetPixPriv(pPix,v) \
94
 
    ((pPix)->devPrivates[damagePixPrivateIndex].ptr = (pointer ) (v))
95
 
 
96
 
#define damagePixPriv(pPix) \
97
 
    DamagePtr       pDamage = damageGetPixPriv(pPix)
98
 
 
99
 
#define damageGetGCPriv(pGC) \
100
 
    ((DamageGCPrivPtr) (pGC)->devPrivates[damageGCPrivateIndex].ptr)
101
 
 
102
 
#define damageGCPriv(pGC) \
103
 
    DamageGCPrivPtr  pGCPriv = damageGetGCPriv(pGC)
104
 
 
105
 
#define damageGetWinPriv(pWin) \
106
 
    ((DamagePtr) (pWin)->devPrivates[damageWinPrivateIndex].ptr)
107
 
 
108
 
#define damageSetWinPriv(pWin,d) \
109
 
    ((pWin)->devPrivates[damageWinPrivateIndex].ptr = (d))
110
 
 
111
 
#endif /* _DAMAGESTR_H_ */