Commit 4c5e9a29 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mihai Moldovan

Lift dbe to xorg-xserver-7.1/1.1.0 state - non-functional changes only

parent c529873d
...@@ -100,10 +100,7 @@ static Bool firstRegistrationPass = TRUE; ...@@ -100,10 +100,7 @@ static Bool firstRegistrationPass = TRUE;
*****************************************************************************/ *****************************************************************************/
void void
DbeValidateBuffer(pWin, drawID, dstbuf) DbeValidateBuffer(WindowPtr pWin, XID drawID, Bool dstbuf)
WindowPtr pWin;
XID drawID;
Bool dstbuf;
{ {
DbeScreenPrivPtr pDbeScreenPriv = DBE_SCREEN_PRIV_FROM_WINDOW(pWin); DbeScreenPrivPtr pDbeScreenPriv = DBE_SCREEN_PRIV_FROM_WINDOW(pWin);
if (pDbeScreenPriv->ValidateBuffer) if (pDbeScreenPriv->ValidateBuffer)
...@@ -122,9 +119,7 @@ DbeValidateBuffer(pWin, drawID, dstbuf) ...@@ -122,9 +119,7 @@ DbeValidateBuffer(pWin, drawID, dstbuf)
*****************************************************************************/ *****************************************************************************/
void void
DbeRegisterFunction(pScreen, funct) DbeRegisterFunction(ScreenPtr pScreen, Bool (*funct) (/* ??? */))
ScreenPtr pScreen;
Bool (*funct)();
{ {
int i; int i;
...@@ -158,8 +153,7 @@ DbeRegisterFunction(pScreen, funct) ...@@ -158,8 +153,7 @@ DbeRegisterFunction(pScreen, funct)
* *
*****************************************************************************/ *****************************************************************************/
static DbeWindowPrivPtr static DbeWindowPrivPtr
DbeAllocWinPriv(pScreen) DbeAllocWinPriv(ScreenPtr pScreen)
ScreenPtr pScreen;
{ {
DbeWindowPrivPtr pDbeWindowPriv; DbeWindowPrivPtr pDbeWindowPriv;
DbeScreenPrivPtr pDbeScreenPriv; DbeScreenPrivPtr pDbeScreenPriv;
...@@ -248,10 +242,7 @@ DbeAllocWinPrivPrivIndex(void) ...@@ -248,10 +242,7 @@ DbeAllocWinPrivPrivIndex(void)
*****************************************************************************/ *****************************************************************************/
static Bool static Bool
DbeAllocWinPrivPriv(pScreen, index, amount) DbeAllocWinPrivPriv(register ScreenPtr pScreen, int index, unsigned int amount)
register ScreenPtr pScreen;
int index;
unsigned int amount;
{ {
DbeScreenPrivPtr pDbeScreenPriv; DbeScreenPrivPtr pDbeScreenPriv;
unsigned int oldamount; unsigned int oldamount;
...@@ -302,9 +293,7 @@ DbeAllocWinPrivPriv(pScreen, index, amount) ...@@ -302,9 +293,7 @@ DbeAllocWinPrivPriv(pScreen, index, amount)
*****************************************************************************/ *****************************************************************************/
static void static void
DbeStubScreen(pDbeScreenPriv, nStubbedScreens) DbeStubScreen(DbeScreenPrivPtr pDbeScreenPriv, int *nStubbedScreens)
DbeScreenPrivPtr pDbeScreenPriv;
int *nStubbedScreens;
{ {
/* Stub DIX. */ /* Stub DIX. */
pDbeScreenPriv->SetupBackgroundPainter = NULL; pDbeScreenPriv->SetupBackgroundPainter = NULL;
...@@ -351,8 +340,7 @@ DbeStubScreen(pDbeScreenPriv, nStubbedScreens) ...@@ -351,8 +340,7 @@ DbeStubScreen(pDbeScreenPriv, nStubbedScreens)
*****************************************************************************/ *****************************************************************************/
static int static int
ProcDbeGetVersion(client) ProcDbeGetVersion(ClientPtr client)
ClientPtr client;
{ {
/* REQUEST(xDbeGetVersionReq); */ /* REQUEST(xDbeGetVersionReq); */
xDbeGetVersionReply rep; xDbeGetVersionReply rep;
...@@ -401,8 +389,7 @@ ProcDbeGetVersion(client) ...@@ -401,8 +389,7 @@ ProcDbeGetVersion(client)
*****************************************************************************/ *****************************************************************************/
static int static int
ProcDbeAllocateBackBufferName(client) ProcDbeAllocateBackBufferName(ClientPtr client)
ClientPtr client;
{ {
REQUEST(xDbeAllocateBackBufferNameReq); REQUEST(xDbeAllocateBackBufferNameReq);
WindowPtr pWin; WindowPtr pWin;
...@@ -636,8 +623,7 @@ ProcDbeAllocateBackBufferName(client) ...@@ -636,8 +623,7 @@ ProcDbeAllocateBackBufferName(client)
*****************************************************************************/ *****************************************************************************/
static int static int
ProcDbeDeallocateBackBufferName(client) ProcDbeDeallocateBackBufferName(ClientPtr client)
ClientPtr client;
{ {
REQUEST(xDbeDeallocateBackBufferNameReq); REQUEST(xDbeDeallocateBackBufferNameReq);
DbeWindowPrivPtr pDbeWindowPriv; DbeWindowPrivPtr pDbeWindowPriv;
...@@ -708,8 +694,7 @@ ProcDbeDeallocateBackBufferName(client) ...@@ -708,8 +694,7 @@ ProcDbeDeallocateBackBufferName(client)
*****************************************************************************/ *****************************************************************************/
static int static int
ProcDbeSwapBuffers(client) ProcDbeSwapBuffers(ClientPtr client)
ClientPtr client;
{ {
REQUEST(xDbeSwapBuffersReq); REQUEST(xDbeSwapBuffersReq);
WindowPtr pWin; WindowPtr pWin;
...@@ -839,8 +824,7 @@ ProcDbeSwapBuffers(client) ...@@ -839,8 +824,7 @@ ProcDbeSwapBuffers(client)
*****************************************************************************/ *****************************************************************************/
static int static int
ProcDbeBeginIdiom(client) ProcDbeBeginIdiom(ClientPtr client)
ClientPtr client;
{ {
/* REQUEST(xDbeBeginIdiomReq); */ /* REQUEST(xDbeBeginIdiomReq); */
DbeScreenPrivPtr pDbeScreenPriv; DbeScreenPrivPtr pDbeScreenPriv;
...@@ -883,8 +867,7 @@ ProcDbeBeginIdiom(client) ...@@ -883,8 +867,7 @@ ProcDbeBeginIdiom(client)
*****************************************************************************/ *****************************************************************************/
static int static int
ProcDbeGetVisualInfo(client) ProcDbeGetVisualInfo(ClientPtr client)
ClientPtr client;
{ {
REQUEST(xDbeGetVisualInfoReq); REQUEST(xDbeGetVisualInfoReq);
DbeScreenPrivPtr pDbeScreenPriv; DbeScreenPrivPtr pDbeScreenPriv;
...@@ -1062,8 +1045,7 @@ ProcDbeGetVisualInfo(client) ...@@ -1062,8 +1045,7 @@ ProcDbeGetVisualInfo(client)
*****************************************************************************/ *****************************************************************************/
static int static int
ProcDbeGetBackBufferAttributes(client) ProcDbeGetBackBufferAttributes(ClientPtr client)
ClientPtr client;
{ {
REQUEST(xDbeGetBackBufferAttributesReq); REQUEST(xDbeGetBackBufferAttributesReq);
xDbeGetBackBufferAttributesReply rep; xDbeGetBackBufferAttributesReply rep;
...@@ -1110,8 +1092,7 @@ ProcDbeGetBackBufferAttributes(client) ...@@ -1110,8 +1092,7 @@ ProcDbeGetBackBufferAttributes(client)
*****************************************************************************/ *****************************************************************************/
static int static int
ProcDbeDispatch(client) ProcDbeDispatch(ClientPtr client)
ClientPtr client;
{ {
REQUEST(xReq); REQUEST(xReq);
...@@ -1166,8 +1147,7 @@ ProcDbeDispatch(client) ...@@ -1166,8 +1147,7 @@ ProcDbeDispatch(client)
*****************************************************************************/ *****************************************************************************/
static int static int
SProcDbeGetVersion(client) SProcDbeGetVersion(ClientPtr client)
ClientPtr client;
{ {
REQUEST(xDbeGetVersionReq); REQUEST(xDbeGetVersionReq);
...@@ -1201,8 +1181,7 @@ SProcDbeGetVersion(client) ...@@ -1201,8 +1181,7 @@ SProcDbeGetVersion(client)
*****************************************************************************/ *****************************************************************************/
static int static int
SProcDbeAllocateBackBufferName(client) SProcDbeAllocateBackBufferName(ClientPtr client)
ClientPtr client;
{ {
REQUEST(xDbeAllocateBackBufferNameReq); REQUEST(xDbeAllocateBackBufferNameReq);
...@@ -1236,8 +1215,7 @@ SProcDbeAllocateBackBufferName(client) ...@@ -1236,8 +1215,7 @@ SProcDbeAllocateBackBufferName(client)
*****************************************************************************/ *****************************************************************************/
static int static int
SProcDbeDeallocateBackBufferName(client) SProcDbeDeallocateBackBufferName(ClientPtr client)
ClientPtr client;
{ {
REQUEST (xDbeDeallocateBackBufferNameReq); REQUEST (xDbeDeallocateBackBufferNameReq);
...@@ -1273,8 +1251,7 @@ SProcDbeDeallocateBackBufferName(client) ...@@ -1273,8 +1251,7 @@ SProcDbeDeallocateBackBufferName(client)
*****************************************************************************/ *****************************************************************************/
static int static int
SProcDbeSwapBuffers(client) SProcDbeSwapBuffers(ClientPtr client)
ClientPtr client;
{ {
REQUEST(xDbeSwapBuffersReq); REQUEST(xDbeSwapBuffersReq);
unsigned int i; unsigned int i;
...@@ -1325,8 +1302,7 @@ SProcDbeSwapBuffers(client) ...@@ -1325,8 +1302,7 @@ SProcDbeSwapBuffers(client)
*****************************************************************************/ *****************************************************************************/
static int static int
SProcDbeBeginIdiom(client) SProcDbeBeginIdiom(ClientPtr client)
ClientPtr client;
{ {
REQUEST(xDbeBeginIdiomReq); REQUEST(xDbeBeginIdiomReq);
...@@ -1354,8 +1330,7 @@ SProcDbeBeginIdiom(client) ...@@ -1354,8 +1330,7 @@ SProcDbeBeginIdiom(client)
*****************************************************************************/ *****************************************************************************/
static int static int
SProcDbeGetVisualInfo(client) SProcDbeGetVisualInfo(ClientPtr client)
ClientPtr client;
{ {
REQUEST(xDbeGetVisualInfoReq); REQUEST(xDbeGetVisualInfoReq);
...@@ -1387,8 +1362,7 @@ SProcDbeGetVisualInfo(client) ...@@ -1387,8 +1362,7 @@ SProcDbeGetVisualInfo(client)
*****************************************************************************/ *****************************************************************************/
static int static int
SProcDbeGetBackBufferAttributes(client) SProcDbeGetBackBufferAttributes(ClientPtr client)
ClientPtr client;
{ {
REQUEST (xDbeGetBackBufferAttributesReq); REQUEST (xDbeGetBackBufferAttributesReq);
...@@ -1413,8 +1387,7 @@ SProcDbeGetBackBufferAttributes(client) ...@@ -1413,8 +1387,7 @@ SProcDbeGetBackBufferAttributes(client)
*****************************************************************************/ *****************************************************************************/
static int static int
SProcDbeDispatch(client) SProcDbeDispatch(ClientPtr client)
ClientPtr client;
{ {
REQUEST(xReq); REQUEST(xReq);
...@@ -1468,9 +1441,7 @@ SProcDbeDispatch(client) ...@@ -1468,9 +1441,7 @@ SProcDbeDispatch(client)
*****************************************************************************/ *****************************************************************************/
static Bool static Bool
DbeSetupBackgroundPainter(pWin, pGC) DbeSetupBackgroundPainter(WindowPtr pWin, GCPtr pGC)
WindowPtr pWin;
GCPtr pGC;
{ {
void *gcvalues[4]; void *gcvalues[4];
int ts_x_origin, ts_y_origin; int ts_x_origin, ts_y_origin;
...@@ -1543,9 +1514,7 @@ DbeSetupBackgroundPainter(pWin, pGC) ...@@ -1543,9 +1514,7 @@ DbeSetupBackgroundPainter(pWin, pGC)
* *
*****************************************************************************/ *****************************************************************************/
static int static int
DbeDrawableDelete(pDrawable, id) DbeDrawableDelete(void * pDrawable, XID id)
void *pDrawable;
XID id;
{ {
return(Success); return(Success);
...@@ -1564,9 +1533,7 @@ DbeDrawableDelete(pDrawable, id) ...@@ -1564,9 +1533,7 @@ DbeDrawableDelete(pDrawable, id)
* *
*****************************************************************************/ *****************************************************************************/
static int static int
DbeWindowPrivDelete(pDbeWinPriv, id) DbeWindowPrivDelete(void * pDbeWinPriv, XID id)
void *pDbeWinPriv;
XID id;
{ {
DbeScreenPrivPtr pDbeScreenPriv; DbeScreenPrivPtr pDbeScreenPriv;
DbeWindowPrivPtr pDbeWindowPriv = (DbeWindowPrivPtr)pDbeWinPriv; DbeWindowPrivPtr pDbeWindowPriv = (DbeWindowPrivPtr)pDbeWinPriv;
...@@ -1673,8 +1640,7 @@ DbeWindowPrivDelete(pDbeWinPriv, id) ...@@ -1673,8 +1640,7 @@ DbeWindowPrivDelete(pDbeWinPriv, id)
* *
*****************************************************************************/ *****************************************************************************/
static void static void
DbeResetProc(extEntry) DbeResetProc(ExtensionEntry *extEntry)
ExtensionEntry *extEntry;
{ {
int i; int i;
ScreenPtr pScreen; ScreenPtr pScreen;
...@@ -1729,8 +1695,7 @@ DbeResetProc(extEntry) ...@@ -1729,8 +1695,7 @@ DbeResetProc(extEntry)
*****************************************************************************/ *****************************************************************************/
static Bool static Bool
DbeDestroyWindow(pWin) DbeDestroyWindow(WindowPtr pWin)
WindowPtr pWin;
{ {
DbeScreenPrivPtr pDbeScreenPriv; DbeScreenPrivPtr pDbeScreenPriv;
DbeWindowPrivPtr pDbeWindowPriv; DbeWindowPrivPtr pDbeWindowPriv;
......
...@@ -91,9 +91,7 @@ int dbeWindowPrivIndex = -1; ...@@ -91,9 +91,7 @@ int dbeWindowPrivIndex = -1;
*****************************************************************************/ *****************************************************************************/
static Bool static Bool
miDbeGetVisualInfo(pScreen, pScrVisInfo) miDbeGetVisualInfo(ScreenPtr pScreen, XdbeScreenVisualInfo *pScrVisInfo)
ScreenPtr pScreen;
XdbeScreenVisualInfo *pScrVisInfo;
{ {
register int i, j, k; register int i, j, k;
register int count; register int count;
...@@ -155,10 +153,7 @@ miDbeGetVisualInfo(pScreen, pScrVisInfo) ...@@ -155,10 +153,7 @@ miDbeGetVisualInfo(pScreen, pScrVisInfo)
*****************************************************************************/ *****************************************************************************/
static int static int
miDbeAllocBackBufferName(pWin, bufId, swapAction) miDbeAllocBackBufferName(WindowPtr pWin, XID bufId, int swapAction)
WindowPtr pWin;
XID bufId;
int swapAction;
{ {
ScreenPtr pScreen; ScreenPtr pScreen;
DbeWindowPrivPtr pDbeWindowPriv; DbeWindowPrivPtr pDbeWindowPriv;
...@@ -269,8 +264,7 @@ miDbeAllocBackBufferName(pWin, bufId, swapAction) ...@@ -269,8 +264,7 @@ miDbeAllocBackBufferName(pWin, bufId, swapAction)
*****************************************************************************/ *****************************************************************************/
static void static void
miDbeAliasBuffers(pDbeWindowPriv) miDbeAliasBuffers(DbeWindowPrivPtr pDbeWindowPriv)
DbeWindowPrivPtr pDbeWindowPriv;
{ {
int i; int i;
MiDbeWindowPrivPrivPtr pDbeWindowPrivPriv = MiDbeWindowPrivPrivPtr pDbeWindowPrivPriv =
...@@ -296,10 +290,7 @@ miDbeAliasBuffers(pDbeWindowPriv) ...@@ -296,10 +290,7 @@ miDbeAliasBuffers(pDbeWindowPriv)
*****************************************************************************/ *****************************************************************************/
static int static int
miDbeSwapBuffers(client, pNumWindows, swapInfo) miDbeSwapBuffers(ClientPtr client, int *pNumWindows, DbeSwapInfoPtr swapInfo)
ClientPtr client;
int *pNumWindows;
DbeSwapInfoPtr swapInfo;
{ {
DbeScreenPrivPtr pDbeScreenPriv; DbeScreenPrivPtr pDbeScreenPriv;
GCPtr pGC; GCPtr pGC;
...@@ -478,9 +469,7 @@ miDbeSwapBuffers(client, pNumWindows, swapInfo) ...@@ -478,9 +469,7 @@ miDbeSwapBuffers(client, pNumWindows, swapInfo)
*****************************************************************************/ *****************************************************************************/
static void static void
miDbeWinPrivDelete(pDbeWindowPriv, bufId) miDbeWinPrivDelete(DbeWindowPrivPtr pDbeWindowPriv, XID bufId)
DbeWindowPrivPtr pDbeWindowPriv;
XID bufId;
{ {
MiDbeWindowPrivPrivPtr pDbeWindowPrivPriv; MiDbeWindowPrivPrivPtr pDbeWindowPrivPriv;
...@@ -527,10 +516,7 @@ miDbeWinPrivDelete(pDbeWindowPriv, bufId) ...@@ -527,10 +516,7 @@ miDbeWinPrivDelete(pDbeWindowPriv, bufId)
*****************************************************************************/ *****************************************************************************/
static Bool static Bool
miDbePositionWindow(pWin, x, y) miDbePositionWindow(WindowPtr pWin, int x, int y)
WindowPtr pWin;
int x;
int y;
{ {
ScreenPtr pScreen; ScreenPtr pScreen;
DbeScreenPrivPtr pDbeScreenPriv; DbeScreenPrivPtr pDbeScreenPriv;
...@@ -768,8 +754,7 @@ miDbePositionWindow(pWin, x, y) ...@@ -768,8 +754,7 @@ miDbePositionWindow(pWin, x, y)
*****************************************************************************/ *****************************************************************************/
static void static void
miDbeResetProc(pScreen) miDbeResetProc(ScreenPtr pScreen)
ScreenPtr pScreen;
{ {
DbeScreenPrivPtr pDbeScreenPriv; DbeScreenPrivPtr pDbeScreenPriv;
...@@ -798,9 +783,7 @@ miDbeNopValidateBuffer(WindowPtr pWin, XID bufId, Bool dstbuffer) ...@@ -798,9 +783,7 @@ miDbeNopValidateBuffer(WindowPtr pWin, XID bufId, Bool dstbuffer)
*****************************************************************************/ *****************************************************************************/
Bool Bool
miDbeInit(pScreen, pDbeScreenPriv) miDbeInit(ScreenPtr pScreen, DbeScreenPrivPtr pDbeScreenPriv)
ScreenPtr pScreen;
DbeScreenPrivPtr pDbeScreenPriv;
{ {
/* Copy resource types created by DIX */ /* Copy resource types created by DIX */
dbeDrawableResType = pDbeScreenPriv->dbeDrawableResType; dbeDrawableResType = pDbeScreenPriv->dbeDrawableResType;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment