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

« back to all changes in this revision

Viewing changes to src/VBox/Additions/x11/x11include/4.2/programs/Xserver/mi/mibstorest.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
 
 * mibstorest.h
3
 
 *
4
 
 * internal structure definitions for mi backing store
5
 
 */
6
 
 
7
 
/* $Xorg: mibstorest.h,v 1.4 2001/02/09 02:05:20 xorgcvs Exp $ */
8
 
 
9
 
/*
10
 
 
11
 
Copyright 1989, 1998  The Open Group
12
 
 
13
 
Permission to use, copy, modify, distribute, and sell this software and its
14
 
documentation for any purpose is hereby granted without fee, provided that
15
 
the above copyright notice appear in all copies and that both that
16
 
copyright notice and this permission notice appear in supporting
17
 
documentation.
18
 
 
19
 
The above copyright notice and this permission notice shall be included in
20
 
all copies or substantial portions of the Software.
21
 
 
22
 
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
 
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
 
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
25
 
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
26
 
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
27
 
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
 
 
29
 
Except as contained in this notice, the name of The Open Group shall not be
30
 
used in advertising or otherwise to promote the sale, use or other dealings
31
 
in this Software without prior written authorization from The Open Group.
32
 
*/
33
 
 
34
 
/* $XFree86: xc/programs/Xserver/mi/mibstorest.h,v 1.5 2001/12/14 20:00:21 dawes Exp $ */
35
 
 
36
 
#include "mibstore.h"
37
 
#include "regionstr.h"
38
 
 
39
 
/*
40
 
 * One of these structures is allocated per GC used with a backing-store
41
 
 * drawable.
42
 
 */
43
 
 
44
 
typedef struct {
45
 
    GCPtr           pBackingGC;     /* Copy of the GC but with graphicsExposures
46
 
                                     * set FALSE and the clientClip set to
47
 
                                     * clip output to the valid regions of the
48
 
                                     * backing pixmap. */
49
 
    int             guarantee;      /* GuaranteeNothing, etc. */
50
 
    unsigned long   serialNumber;   /* clientClip computed time */
51
 
    unsigned long   stateChanges;   /* changes in parent gc since last copy */
52
 
    GCOps           *wrapOps;       /* wrapped ops */
53
 
    GCFuncs         *wrapFuncs;     /* wrapped funcs */
54
 
} miBSGCRec, *miBSGCPtr;
55
 
 
56
 
/*
57
 
 * one of these structures is allocated per Window with backing store
58
 
 */
59
 
 
60
 
typedef struct {
61
 
    PixmapPtr     pBackingPixmap;   /* Pixmap for saved areas */
62
 
    short         x;                /* origin of pixmap relative to window */
63
 
    short         y;
64
 
    RegionRec     SavedRegion;      /* Valid area in pBackingPixmap */
65
 
    char          viewable;         /* Tracks pWin->viewable so SavedRegion may
66
 
                                     * be initialized correctly when the window
67
 
                                     * is first mapped */
68
 
    char          status;           /* StatusNoPixmap, etc. */
69
 
    char          backgroundState;  /* background type */
70
 
    PixUnion      background;       /* background pattern */
71
 
} miBSWindowRec, *miBSWindowPtr;
72
 
 
73
 
#define StatusNoPixmap  1       /* pixmap has not been created */
74
 
#define StatusVirtual   2       /* pixmap is virtual, tiled with background */
75
 
#define StatusVDirty    3       /* pixmap is virtual, visiblt has contents */
76
 
#define StatusBadAlloc  4       /* pixmap create failed, do not try again */
77
 
#define StatusContents  5       /* pixmap is created, has valid contents */
78
 
 
79
 
typedef struct {
80
 
    /*
81
 
     * screen func wrappers
82
 
     */
83
 
    CloseScreenProcPtr  CloseScreen;
84
 
    GetImageProcPtr     GetImage;
85
 
    GetSpansProcPtr     GetSpans;
86
 
    ChangeWindowAttributesProcPtr ChangeWindowAttributes;
87
 
    CreateGCProcPtr     CreateGC;
88
 
    DestroyWindowProcPtr DestroyWindow;
89
 
} miBSScreenRec, *miBSScreenPtr;