~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/Xext/dgaproc.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
 
/* $XFree86: xc/programs/Xserver/Xext/dgaproc.h,v 1.21 2000/06/30 19:06:54 keithp Exp $ */
2
 
 
3
 
#ifndef __DGAPROC_H
4
 
#define __DGAPROC_H
5
 
 
6
 
#include "Xproto.h"
7
 
#include "pixmap.h"
8
 
 
9
 
#define DGA_CONCURRENT_ACCESS   0x00000001
10
 
#define DGA_FILL_RECT           0x00000002
11
 
#define DGA_BLIT_RECT           0x00000004
12
 
#define DGA_BLIT_RECT_TRANS     0x00000008
13
 
#define DGA_PIXMAP_AVAILABLE    0x00000010
14
 
 
15
 
#define DGA_INTERLACED          0x00010000
16
 
#define DGA_DOUBLESCAN          0x00020000
17
 
 
18
 
#define DGA_FLIP_IMMEDIATE      0x00000001
19
 
#define DGA_FLIP_RETRACE        0x00000002
20
 
 
21
 
#define DGA_COMPLETED           0x00000000
22
 
#define DGA_PENDING             0x00000001
23
 
 
24
 
#define DGA_NEED_ROOT           0x00000001
25
 
 
26
 
typedef struct {
27
 
   int num;             /* A unique identifier for the mode (num > 0) */
28
 
   char *name;          /* name of mode given in the XF86Config */
29
 
   int VSync_num;
30
 
   int VSync_den;
31
 
   int flags;           /* DGA_CONCURRENT_ACCESS, etc... */
32
 
   int imageWidth;      /* linear accessible portion (pixels) */
33
 
   int imageHeight;
34
 
   int pixmapWidth;     /* Xlib accessible portion (pixels) */
35
 
   int pixmapHeight;    /* both fields ignored if no concurrent access */
36
 
   int bytesPerScanline; 
37
 
   int byteOrder;       /* MSBFirst, LSBFirst */
38
 
   int depth;           
39
 
   int bitsPerPixel;
40
 
   unsigned long red_mask;
41
 
   unsigned long green_mask;
42
 
   unsigned long blue_mask;
43
 
   short visualClass;
44
 
   int viewportWidth;
45
 
   int viewportHeight;
46
 
   int xViewportStep;   /* viewport position granularity */
47
 
   int yViewportStep;
48
 
   int maxViewportX;    /* max viewport origin */
49
 
   int maxViewportY;
50
 
   int viewportFlags;   /* types of page flipping possible */
51
 
   int offset;
52
 
   int reserved1;
53
 
   int reserved2;
54
 
} XDGAModeRec, *XDGAModePtr;
55
 
 
56
 
 
57
 
void XFree86DGAExtensionInit(void);
58
 
 
59
 
/* DDX interface */
60
 
 
61
 
int
62
 
DGASetMode(
63
 
   int Index,
64
 
   int num,
65
 
   XDGAModePtr mode,
66
 
   PixmapPtr *pPix
67
 
);
68
 
 
69
 
void
70
 
DGASetInputMode(
71
 
   int Index,
72
 
   Bool keyboard,
73
 
   Bool mouse
74
 
);
75
 
 
76
 
void 
77
 
DGASelectInput(
78
 
   int Index,
79
 
   ClientPtr client,
80
 
   long mask
81
 
);
82
 
 
83
 
Bool DGAAvailable(int Index);
84
 
Bool DGAActive(int Index);
85
 
void DGAShutdown(void);
86
 
void DGAInstallCmap(ColormapPtr cmap);
87
 
int DGAGetViewportStatus(int Index); 
88
 
int DGASync(int Index);
89
 
 
90
 
int
91
 
DGAFillRect(
92
 
   int Index,
93
 
   int x, int y, int w, int h,
94
 
   unsigned long color
95
 
);
96
 
 
97
 
int
98
 
DGABlitRect(
99
 
   int Index,
100
 
   int srcx, int srcy, 
101
 
   int w, int h, 
102
 
   int dstx, int dsty
103
 
);
104
 
 
105
 
int
106
 
DGABlitTransRect(
107
 
   int Index,
108
 
   int srcx, int srcy, 
109
 
   int w, int h, 
110
 
   int dstx, int dsty,
111
 
   unsigned long color
112
 
);
113
 
 
114
 
int
115
 
DGASetViewport(
116
 
   int Index,
117
 
   int x, int y,
118
 
   int mode
119
 
); 
120
 
 
121
 
int DGAGetModes(int Index);
122
 
int DGAGetOldDGAMode(int Index);
123
 
 
124
 
int DGAGetModeInfo(int Index, XDGAModePtr mode, int num);
125
 
 
126
 
Bool DGAVTSwitch(void);
127
 
Bool DGAStealMouseEvent(int Index, xEvent *e, int dx, int dy);
128
 
Bool DGAStealKeyEvent(int Index, xEvent *e);
129
 
Bool DGAIsDgaEvent (xEvent *e);
130
 
 
131
 
Bool DGADeliverEvent (ScreenPtr pScreen, xEvent *e);
132
 
            
133
 
Bool DGAOpenFramebuffer(int Index, char **name, unsigned char **mem, 
134
 
                        int *size, int *offset, int *flags);
135
 
void DGACloseFramebuffer(int Index);
136
 
Bool DGAChangePixmapMode(int Index, int *x, int *y, int mode);
137
 
int DGACreateColormap(int Index, ClientPtr client, int id, int mode, 
138
 
                        int alloc);
139
 
 
140
 
extern unsigned char DGAReqCode;
141
 
extern int DGAErrorBase;
142
 
extern int DGAEventBase;
143
 
extern int *XDGAEventBase;
144
 
 
145
 
 
146
 
 
147
 
#endif /* __DGAPROC_H */