Prepare for array-index based devPrivates.

TODO: static indices can be made just an int; some indices
can be combined.
This commit is contained in:
Tomas Carnecky
2008-08-28 18:05:40 -04:00
committed by Eamon Walsh
parent ec7907f8fa
commit ebea78cdba
78 changed files with 287 additions and 146 deletions

View File

@@ -27,18 +27,23 @@
#include "fb.h"
#ifdef FB_SCREEN_PRIVATE
static DevPrivateKey fbScreenPrivateKey = &fbScreenPrivateKey;
static int fbScreenPrivateKeyIndex;
static DevPrivateKey fbScreenPrivateKey = &fbScreenPrivateKeyIndex;
DevPrivateKey fbGetScreenPrivateKey(void)
{
return fbScreenPrivateKey;
}
#endif
static DevPrivateKey fbGCPrivateKey = &fbGCPrivateKey;
static int fbGCPrivateKeyIndex;
static DevPrivateKey fbGCPrivateKey = &fbGCPrivateKeyIndex;
DevPrivateKey fbGetGCPrivateKey(void)
{
return fbGCPrivateKey;
}
static DevPrivateKey fbWinPrivateKey = &fbWinPrivateKey;
static int fbWinPrivateKeyIndex;
static DevPrivateKey fbWinPrivateKey = &fbWinPrivateKeyIndex;
DevPrivateKey fbGetWinPrivateKey(void)
{
return fbWinPrivateKey;

View File

@@ -33,7 +33,8 @@
#include "fboverlay.h"
#include "shmint.h"
static DevPrivateKey fbOverlayScreenPrivateKey = &fbOverlayScreenPrivateKey;
static int fbOverlayScreenPrivateKeyIndex;
static DevPrivateKey fbOverlayScreenPrivateKey = &fbOverlayScreenPrivateKeyIndex;
DevPrivateKey fbOverlayGetScreenPrivateKey(void)
{