29
29
#ifdef FB_SCREEN_PRIVATE
30
static int fbScreenPrivateKeyIndex;
31
static DevPrivateKey fbScreenPrivateKey = &fbScreenPrivateKeyIndex;
32
DevPrivateKey fbGetScreenPrivateKey(void)
34
return fbScreenPrivateKey;
30
static DevPrivateKeyRec fbScreenPrivateKeyRec;
32
fbGetScreenPrivateKey(void) { return &fbScreenPrivateKeyRec; }
38
static int fbGCPrivateKeyIndex;
39
static DevPrivateKey fbGCPrivateKey = &fbGCPrivateKeyIndex;
40
DevPrivateKey fbGetGCPrivateKey(void)
42
return fbGCPrivateKey;
35
static DevPrivateKeyRec fbGCPrivateKeyRec;
37
fbGetGCPrivateKey (void) { return &fbGCPrivateKeyRec; }
45
static int fbWinPrivateKeyIndex;
46
static DevPrivateKey fbWinPrivateKey = &fbWinPrivateKeyIndex;
47
DevPrivateKey fbGetWinPrivateKey(void)
49
return fbWinPrivateKey;
39
static DevPrivateKeyRec fbWinPrivateKeyRec;
41
fbGetWinPrivateKey (void) { return &fbWinPrivateKeyRec; }
53
44
fbAllocatePrivates(ScreenPtr pScreen, DevPrivateKey *pGCKey)
56
*pGCKey = fbGCPrivateKey;
47
*pGCKey = &fbGCPrivateKeyRec;
58
if (!dixRequestPrivate(fbGCPrivateKey, sizeof(FbGCPrivRec)))
49
if (!dixRegisterPrivateKey(&fbGCPrivateKeyRec, PRIVATE_GC, sizeof(FbGCPrivRec)))
60
51
#ifdef FB_SCREEN_PRIVATE
62
FbScreenPrivPtr pScreenPriv;
52
if (!dixRegisterPrivateKey(&fbScreenPrivateKeyRec, PRIVATE_SCREEN, sizeof (FbScreenPrivRec)))
55
if (!dixRegisterPrivateKey(&fbWinPrivateKeyRec, PRIVATE_WINDOW, 0))
64
pScreenPriv = (FbScreenPrivPtr) xalloc (sizeof (FbScreenPrivRec));
67
dixSetPrivate(&pScreen->devPrivates, fbScreenPrivateKey, pScreenPriv);