mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-11 23:43:06 +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
|
|
@ -42,8 +42,8 @@ typedef struct _ExaXorgScreenPrivRec {
|
|||
OptionInfoPtr options;
|
||||
} ExaXorgScreenPrivRec, *ExaXorgScreenPrivPtr;
|
||||
|
||||
static int exaXorgScreenPrivateKeyIndex;
|
||||
static DevPrivateKey exaXorgScreenPrivateKey = &exaXorgScreenPrivateKeyIndex;
|
||||
static DevPrivateKeyRec exaXorgScreenPrivateKeyRec;
|
||||
#define exaXorgScreenPrivateKey (&exaXorgScreenPrivateKeyRec)
|
||||
|
||||
typedef enum {
|
||||
EXAOPT_MIGRATION_HEURISTIC,
|
||||
|
|
@ -114,6 +114,9 @@ exaDDXDriverInit(ScreenPtr pScreen)
|
|||
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
|
||||
ExaXorgScreenPrivPtr pScreenPriv;
|
||||
|
||||
if (!dixRegisterPrivateKey(&exaXorgScreenPrivateKeyRec, PRIVATE_SCREEN, 0))
|
||||
return;
|
||||
|
||||
pScreenPriv = calloc(1, sizeof(ExaXorgScreenPrivRec));
|
||||
if (pScreenPriv == NULL)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue