mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-18 19:52:21 +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
|
|
@ -389,8 +389,8 @@ ddxProcessArgument(int argc, char *argv[], int i)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int cmapScrPrivateKeyIndex;
|
||||
static DevPrivateKey cmapScrPrivateKey = &cmapScrPrivateKeyIndex;
|
||||
static DevPrivateKeyRec cmapScrPrivateKeyRec;
|
||||
#define cmapScrPrivateKey (&cmapScrPrivateKeyRec)
|
||||
|
||||
#define GetInstalledColormap(s) ((ColormapPtr) dixLookupPrivate(&(s)->devPrivates, cmapScrPrivateKey))
|
||||
#define SetInstalledColormap(s,c) (dixSetPrivate(&(s)->devPrivates, cmapScrPrivateKey, c))
|
||||
|
|
@ -811,6 +811,9 @@ vfbScreenInit(int index, ScreenPtr pScreen, int argc, char **argv)
|
|||
int ret;
|
||||
char *pbits;
|
||||
|
||||
if (!dixRegisterPrivateKey(&cmapScrPrivateKeyRec, PRIVATE_SCREEN, 0))
|
||||
return FALSE;
|
||||
|
||||
if (dpix == 0)
|
||||
dpix = 100;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue