e03198972c
Add XSERV_t, TRANS_SERVER, TRANS_REOPEN to quash warnings. Add #include <dix-config.h> or <xorg-config.h>, as appropriate, to all source files in the xserver/xorg tree, predicated on defines of HAVE_{DIX,XORG}_CONFIG_H. Change all Xfont includes to <X11/fonts/foo.h>.
49 lines
1.3 KiB
C
49 lines
1.3 KiB
C
/* $XFree86: xc/programs/Xserver/hw/xfree86/shadowfb/shadowfb.h,v 1.3 2002/10/16 22:12:54 alanh Exp $ */
|
|
|
|
#ifdef HAVE_XORG_CONFIG_H
|
|
#include <xorg-config.h>
|
|
#endif
|
|
|
|
#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.
|
|
*/
|
|
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
|
|
*/
|
|
Bool
|
|
ShadowFBInit2 (
|
|
ScreenPtr pScreen,
|
|
RefreshAreaFuncPtr preRefreshArea,
|
|
RefreshAreaFuncPtr postRefreshArea
|
|
);
|
|
|
|
#endif /* _SHADOWFB_H */
|