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

« back to all changes in this revision

Viewing changes to src/VBox/Additions/x11/x11include/7.1/xorg/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 <X11/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
 
/* DDX interface */
57
 
 
58
 
int
59
 
DGASetMode(
60
 
   int Index,
61
 
   int num,
62
 
   XDGAModePtr mode,
63
 
   PixmapPtr *pPix
64
 
);
65
 
 
66
 
void
67
 
DGASetInputMode(
68
 
   int Index,
69
 
   Bool keyboard,
70
 
   Bool mouse
71
 
);
72
 
 
73
 
void 
74
 
DGASelectInput(
75
 
   int Index,
76
 
   ClientPtr client,
77
 
   long mask
78
 
);
79
 
 
80
 
Bool DGAAvailable(int Index);
81
 
Bool DGAActive(int Index);
82
 
void DGAShutdown(void);
83
 
void DGAInstallCmap(ColormapPtr cmap);
84
 
int DGAGetViewportStatus(int Index); 
85
 
int DGASync(int Index);
86
 
 
87
 
int
88
 
DGAFillRect(
89
 
   int Index,
90
 
   int x, int y, int w, int h,
91
 
   unsigned long color
92
 
);
93
 
 
94
 
int
95
 
DGABlitRect(
96
 
   int Index,
97
 
   int srcx, int srcy, 
98
 
   int w, int h, 
99
 
   int dstx, int dsty
100
 
);
101
 
 
102
 
int
103
 
DGABlitTransRect(
104
 
   int Index,
105
 
   int srcx, int srcy, 
106
 
   int w, int h, 
107
 
   int dstx, int dsty,
108
 
   unsigned long color
109
 
);
110
 
 
111
 
int
112
 
DGASetViewport(
113
 
   int Index,
114
 
   int x, int y,
115
 
   int mode
116
 
); 
117
 
 
118
 
int DGAGetModes(int Index);
119
 
int DGAGetOldDGAMode(int Index);
120
 
 
121
 
int DGAGetModeInfo(int Index, XDGAModePtr mode, int num);
122
 
 
123
 
Bool DGAVTSwitch(void);
124
 
Bool DGAStealMouseEvent(int Index, xEvent *e, int dx, int dy);
125
 
Bool DGAStealKeyEvent(int Index, xEvent *e);
126
 
Bool DGAIsDgaEvent (xEvent *e);
127
 
 
128
 
Bool DGADeliverEvent (ScreenPtr pScreen, xEvent *e);
129
 
            
130
 
Bool DGAOpenFramebuffer(int Index, char **name, unsigned char **mem, 
131
 
                        int *size, int *offset, int *flags);
132
 
void DGACloseFramebuffer(int Index);
133
 
Bool DGAChangePixmapMode(int Index, int *x, int *y, int mode);
134
 
int DGACreateColormap(int Index, ClientPtr client, int id, int mode, 
135
 
                        int alloc);
136
 
 
137
 
extern unsigned char DGAReqCode;
138
 
extern int DGAErrorBase;
139
 
extern int DGAEventBase;
140
 
extern int *XDGAEventBase;
141
 
 
142
 
 
143
 
 
144
 
#endif /* __DGAPROC_H */