mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-27 21:22:26 +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
|
|
@ -78,21 +78,21 @@ winAllocatePrivates (ScreenPtr pScreen)
|
|||
winSetScreenPriv (pScreen, pScreenPriv);
|
||||
|
||||
/* Reserve GC memory for our privates */
|
||||
if (!dixRequestPrivate(g_iGCPrivateKey, sizeof (winPrivGCRec)))
|
||||
if (!dixRequestPrivateKey(g_iGCPrivateKey, PRIVATE_GC, sizeof (winPrivGCRec)))
|
||||
{
|
||||
ErrorF ("winAllocatePrivates - AllocateGCPrivate () failed\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* Reserve Pixmap memory for our privates */
|
||||
if (!dixRequestPrivate(g_iPixmapPrivateKey, sizeof (winPrivPixmapRec)))
|
||||
if (!dixRequestPrivateKey(g_iPixmapPrivateKey, PRIVATE_PIXMAP, sizeof (winPrivPixmapRec)))
|
||||
{
|
||||
ErrorF ("winAllocatePrivates - AllocatePixmapPrivates () failed\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* Reserve Window memory for our privates */
|
||||
if (!dixRequestPrivate(g_iWindowPrivateKey, sizeof (winPrivWinRec)))
|
||||
if (!dixRequestPrivateKey(g_iWindowPrivateKey, PRIVATE_WINDOW, sizeof (winPrivWinRec)))
|
||||
{
|
||||
ErrorF ("winAllocatePrivates () - AllocateWindowPrivates () failed\n");
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue