VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.5.3/dri2.h@ 71717

Last change on this file since 71717 was 17471, checked in by vboxsync, 16 years ago

export to OSE

  • Property svn:eol-style set to native
File size: 2.9 KB
Line 
1/*
2 * Copyright © 2007 Red Hat, Inc.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Soft-
6 * ware"), to deal in the Software without restriction, including without
7 * limitation the rights to use, copy, modify, merge, publish, distribute,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, provided that the above copyright
10 * notice(s) and this permission notice appear in all copies of the Soft-
11 * ware and that both the above copyright notice(s) and this permission
12 * notice appear in supporting documentation.
13 *
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
16 * ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY
17 * RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN
18 * THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSE-
19 * QUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFOR-
22 * MANCE OF THIS SOFTWARE.
23 *
24 * Except as contained in this notice, the name of a copyright holder shall
25 * not be used in advertising or otherwise to promote the sale, use or
26 * other dealings in this Software without prior written authorization of
27 * the copyright holder.
28 *
29 * Authors:
30 * Kristian Høgsberg ([email protected])
31 */
32
33#ifndef _DRI2_H_
34#define _DRI2_H_
35
36typedef unsigned int (*DRI2GetPixmapHandleProcPtr)(PixmapPtr p,
37 unsigned int *flags);
38typedef void (*DRI2BeginClipNotifyProcPtr)(ScreenPtr pScreen);
39typedef void (*DRI2EndClipNotifyProcPtr)(ScreenPtr pScreen);
40
41typedef struct {
42 unsigned int version; /* Version of this struct */
43 int fd;
44 size_t driverSareaSize;
45 const char *driverName;
46 DRI2GetPixmapHandleProcPtr getPixmapHandle;
47 DRI2BeginClipNotifyProcPtr beginClipNotify;
48 DRI2EndClipNotifyProcPtr endClipNotify;
49} DRI2InfoRec, *DRI2InfoPtr;
50
51void *DRI2ScreenInit(ScreenPtr pScreen,
52 DRI2InfoPtr info);
53
54void DRI2CloseScreen(ScreenPtr pScreen);
55
56Bool DRI2Connect(ScreenPtr pScreen,
57 int *fd,
58 const char **driverName,
59 unsigned int *sareaHandle);
60
61Bool DRI2AuthConnection(ScreenPtr pScreen, drm_magic_t magic);
62
63unsigned int DRI2GetPixmapHandle(PixmapPtr pPixmap,
64 unsigned int *flags);
65
66void DRI2Lock(ScreenPtr pScreen);
67void DRI2Unlock(ScreenPtr pScreen);
68
69Bool DRI2CreateDrawable(DrawablePtr pDraw,
70 unsigned int *handle,
71 unsigned int *head);
72
73void DRI2DestroyDrawable(DrawablePtr pDraw);
74
75void DRI2ReemitDrawableInfo(DrawablePtr pDraw,
76 unsigned int *head);
77
78Bool DRI2PostDamage(DrawablePtr pDrawable,
79 struct drm_clip_rect *rects, int numRects);
80
81#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette