VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/7.0/xorg/shadowfb.h@ 18709

Last change on this file since 18709 was 17236, checked in by vboxsync, 16 years ago

Additions/x11/x11include: blast! Reverted r43555 and r43556

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1/* $XFree86: xc/programs/Xserver/hw/xfree86/shadowfb/shadowfb.h,v 1.3 2002/10/16 22:12:54 alanh Exp $ */
2
3#ifndef _SHADOWFB_H
4#define _SHADOWFB_H
5
6#include "xf86str.h"
7
8/*
9 * User defined callback function. Passed a pointer to the ScrnInfo struct,
10 * the number of dirty rectangles, and a pointer to the first dirty rectangle
11 * in the array.
12 */
13typedef void (*RefreshAreaFuncPtr)(ScrnInfoPtr, int, BoxPtr);
14
15/*
16 * ShadowFBInit initializes the shadowfb subsystem. refreshArea is a pointer
17 * to a user supplied callback function. This function will be called after
18 * any operation that modifies the framebuffer. The newly dirtied rectangles
19 * are passed to the callback.
20 *
21 * Returns FALSE in the event of an error.
22 */
23Bool
24ShadowFBInit (
25 ScreenPtr pScreen,
26 RefreshAreaFuncPtr refreshArea
27);
28
29/*
30 * ShadowFBInit2 is a more featureful refinement of the original shadowfb.
31 * ShadowFBInit2 allows you to specify two callbacks, one to be called
32 * immediately before an operation that modifies the framebuffer, and another
33 * to be called immediately after.
34 *
35 * Returns FALSE in the event of an error
36 */
37Bool
38ShadowFBInit2 (
39 ScreenPtr pScreen,
40 RefreshAreaFuncPtr preRefreshArea,
41 RefreshAreaFuncPtr postRefreshArea
42);
43
44#endif /* _SHADOWFB_H */
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