mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
xfree86: shadowfb: move public SDK headers into include/
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
dda087c554
commit
3bd7f343c1
@@ -498,6 +498,7 @@ if build_xorg
|
||||
'scrnintstr.h',
|
||||
'servermd.h',
|
||||
'shadow.h',
|
||||
'shadowfb.h',
|
||||
'syncsdk.h',
|
||||
'validate.h',
|
||||
'displaymode.h',
|
||||
|
||||
39
include/shadowfb.h
Normal file
39
include/shadowfb.h
Normal file
@@ -0,0 +1,39 @@
|
||||
|
||||
#ifndef _SHADOWFB_H
|
||||
#define _SHADOWFB_H
|
||||
|
||||
#include "xf86str.h"
|
||||
|
||||
/*
|
||||
* User defined callback function. Passed a pointer to the ScrnInfo struct,
|
||||
* the number of dirty rectangles, and a pointer to the first dirty rectangle
|
||||
* in the array.
|
||||
*/
|
||||
typedef void (*RefreshAreaFuncPtr) (ScrnInfoPtr, int, BoxPtr);
|
||||
|
||||
/*
|
||||
* ShadowFBInit initializes the shadowfb subsystem. refreshArea is a pointer
|
||||
* to a user supplied callback function. This function will be called after
|
||||
* any operation that modifies the framebuffer. The newly dirtied rectangles
|
||||
* are passed to the callback.
|
||||
*
|
||||
* Returns FALSE in the event of an error.
|
||||
*/
|
||||
extern _X_EXPORT Bool
|
||||
ShadowFBInit(ScreenPtr pScreen, RefreshAreaFuncPtr refreshArea);
|
||||
|
||||
/*
|
||||
* ShadowFBInit2 is a more featureful refinement of the original shadowfb.
|
||||
* ShadowFBInit2 allows you to specify two callbacks, one to be called
|
||||
* immediately before an operation that modifies the framebuffer, and another
|
||||
* to be called immediately after.
|
||||
*
|
||||
* Returns FALSE in the event of an error
|
||||
*/
|
||||
extern _X_EXPORT Bool
|
||||
|
||||
ShadowFBInit2(ScreenPtr pScreen,
|
||||
RefreshAreaFuncPtr preRefreshArea,
|
||||
RefreshAreaFuncPtr postRefreshArea);
|
||||
|
||||
#endif /* _SHADOWFB_H */
|
||||
Reference in New Issue
Block a user