mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +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:
@@ -51,6 +51,7 @@ SOFTWARE.
|
||||
#include "misc.h"
|
||||
#include "screenint.h"
|
||||
#include "window.h"
|
||||
#include "privates.h"
|
||||
|
||||
#define NullCursor ((CursorPtr)NULL)
|
||||
|
||||
@@ -62,7 +63,7 @@ struct _DeviceIntRec;
|
||||
typedef struct _Cursor *CursorPtr;
|
||||
typedef struct _CursorMetric *CursorMetricPtr;
|
||||
|
||||
extern _X_EXPORT int cursorScreenDevPriv[MAXSCREENS];
|
||||
extern _X_EXPORT DevPrivateKeyRec cursorScreenDevPriv[MAXSCREENS];
|
||||
#define CursorScreenKey(pScreen) (cursorScreenDevPriv + (pScreen)->myNum)
|
||||
|
||||
extern _X_EXPORT CursorPtr rootCursor;
|
||||
|
||||
Reference in New Issue
Block a user