mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-24 20:55:49 +00:00
Change the devPrivates API to require dixRegisterPrivateKey
This patch only changes the API, not the implementation of the devPrivates infrastructure. This will permit a new devPrivates implementation to be layed into the server without requiring simultaneous changes in every devPrivates user. Signed-off-by: Keith Packard <keithp@keithp.com> Tested-by: Tiago Vignatti <tiago.vignatti@nokia.com>
This commit is contained in:
parent
c865a24401
commit
faeebead7b
139 changed files with 1105 additions and 711 deletions
22
dbe/midbe.c
22
dbe/midbe.c
|
|
@ -58,14 +58,8 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
static int miDbeWindowPrivPrivKeyIndex;
|
||||
static DevPrivateKey miDbeWindowPrivPrivKey = &miDbeWindowPrivPrivKeyIndex;
|
||||
static RESTYPE dbeDrawableResType;
|
||||
static RESTYPE dbeWindowPrivResType;
|
||||
static int dbeScreenPrivKeyIndex;
|
||||
static DevPrivateKey dbeScreenPrivKey = &dbeScreenPrivKeyIndex;
|
||||
static int dbeWindowPrivKeyIndex;
|
||||
static DevPrivateKey dbeWindowPrivKey = &dbeWindowPrivKeyIndex;
|
||||
static DevPrivateKeyRec miDbeWindowPrivPrivKeyRec;
|
||||
#define miDbeWindowPrivPrivKey (&miDbeWindowPrivPrivKeyRec)
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
|
|
@ -787,16 +781,8 @@ miDbeResetProc(ScreenPtr pScreen)
|
|||
Bool
|
||||
miDbeInit(ScreenPtr pScreen, DbeScreenPrivPtr pDbeScreenPriv)
|
||||
{
|
||||
/* Copy resource types created by DIX */
|
||||
dbeDrawableResType = pDbeScreenPriv->dbeDrawableResType;
|
||||
dbeWindowPrivResType = pDbeScreenPriv->dbeWindowPrivResType;
|
||||
|
||||
/* Copy private indices created by DIX */
|
||||
dbeScreenPrivKey = pDbeScreenPriv->dbeScreenPrivKey;
|
||||
dbeWindowPrivKey = pDbeScreenPriv->dbeWindowPrivKey;
|
||||
|
||||
if (!dixRequestPrivate(miDbeWindowPrivPrivKey,
|
||||
sizeof(MiDbeWindowPrivPrivRec)))
|
||||
if (!dixRegisterPrivateKey(&miDbeWindowPrivPrivKeyRec, PRIVATE_DBE_WINDOW,
|
||||
sizeof(MiDbeWindowPrivPrivRec)))
|
||||
return(FALSE);
|
||||
|
||||
/* Wrap functions. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue