Fix exa_priv.h declarations of privates
exa_priv.h exposes the privates to the rest of the exa code, and yet the declarations of the privates wasn't fixed when the exa.c versions were. Reviewed-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
6b306f4338
commit
6bd5f0d75b
|
@ -37,12 +37,9 @@
|
|||
#include "exa_priv.h"
|
||||
#include "exa.h"
|
||||
|
||||
static DevPrivateKeyRec exaScreenPrivateKeyRec;
|
||||
#define exaScreenPrivateKey (&exaScreenPrivateKeyRec)
|
||||
static DevPrivateKeyRec exaPixmapPrivateKeyRec;
|
||||
#define exaPixmapPrivateKey (&exaPixmapPrivateKeyRec)
|
||||
static DevPrivateKeyRec exaGCPrivateKeyRec;
|
||||
#define exaGCPrivateKey (&exaGCPrivateKeyRec)
|
||||
DevPrivateKeyRec exaScreenPrivateKeyRec;
|
||||
DevPrivateKeyRec exaPixmapPrivateKeyRec;
|
||||
DevPrivateKeyRec exaGCPrivateKeyRec;
|
||||
|
||||
#ifdef MITSHM
|
||||
static ShmFuncs exaShmFuncs = { NULL, NULL };
|
||||
|
|
|
@ -221,9 +221,13 @@ typedef struct {
|
|||
(PixmapWidthPaddingInfo[d].padRoundUp+1)))
|
||||
#endif
|
||||
|
||||
extern DevPrivateKey exaScreenPrivateKey;
|
||||
extern DevPrivateKey exaPixmapPrivateKey;
|
||||
extern DevPrivateKey exaGCPrivateKey;
|
||||
extern DevPrivateKeyRec exaScreenPrivateKeyRec;
|
||||
#define exaScreenPrivateKey (&exaScreenPrivateKeyRec)
|
||||
extern DevPrivateKeyRec exaPixmapPrivateKeyRec;
|
||||
#define exaPixmapPrivateKey (&exaPixmapPrivateKeyRec)
|
||||
extern DevPrivateKeyRec exaGCPrivateKeyRec;
|
||||
#define exaGCPrivateKey (&exaGCPrivateKeyRec)
|
||||
|
||||
#define ExaGetScreenPriv(s) ((ExaScreenPrivPtr)dixLookupPrivate(&(s)->devPrivates, exaScreenPrivateKey))
|
||||
#define ExaScreenPriv(s) ExaScreenPrivPtr pExaScr = ExaGetScreenPriv(s)
|
||||
|
||||
|
|
Loading…
Reference in New Issue