mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-22 20:35:43 +00:00
devPrivates rework: redo field offset registration, drop RC_PRIVATES class.
This commit is contained in:
parent
947f8d249b
commit
2fcb45eb5d
3 changed files with 14 additions and 14 deletions
|
|
@ -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);
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue