devPrivates rework: redo field offset registration, drop RC_PRIVATES class.

This commit is contained in:
Eamon Walsh 2007-03-08 12:13:36 -05:00 committed by Eamon Walsh
commit 2fcb45eb5d
3 changed files with 14 additions and 14 deletions

View file

@ -142,9 +142,10 @@ dixResetPrivates(void);
*/
/*
* Looks up the offset where the devPrivates field is located by type.
* Looks up the offset where the devPrivates field is located.
* Returns -1 if no offset has been registered for the resource type.
*/
extern unsigned
extern int
dixLookupPrivateOffset(RESTYPE type);
/*

View file

@ -66,12 +66,7 @@ typedef unsigned long RESTYPE;
* Extensions can use this too!
*/
#define RC_NEVERRETAIN ((RESTYPE)1<<29)
/* Use class RC_PRIVATES for resources that support extra private data.
* Resources having this class must provide a field of type PrivateRec *.
* Refer to the X server documentation on devPrivates for the details.
*/
#define RC_PRIVATES ((RESTYPE)1<<28)
#define RC_LASTPREDEF RC_PRIVATES
#define RC_LASTPREDEF RC_NEVERRETAIN
#define RC_ANY (~(RESTYPE)0)
/* types for Resource routines */