mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
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:
committed by
Eamon Walsh
parent
ec7907f8fa
commit
ebea78cdba
@@ -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;
|
||||
|
||||
@@ -33,7 +33,8 @@
|
||||
#include "fboverlay.h"
|
||||
#include "shmint.h"
|
||||
|
||||
static DevPrivateKey fbOverlayScreenPrivateKey = &fbOverlayScreenPrivateKey;
|
||||
static int fbOverlayScreenPrivateKeyIndex;
|
||||
static DevPrivateKey fbOverlayScreenPrivateKey = &fbOverlayScreenPrivateKeyIndex;
|
||||
|
||||
DevPrivateKey fbOverlayGetScreenPrivateKey(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user