mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-27 21:22:26 +00:00
devPrivates rework: since API is already broken, switch everything
over to new system. Need to update documentation and address some remaining vestiges of old system such as CursorRec structure, fb "offman" structure, and FontRec privates.
This commit is contained in:
parent
8554707326
commit
4017d31902
261 changed files with 1642 additions and 3957 deletions
|
|
@ -27,13 +27,6 @@ typedef struct _Private {
|
|||
struct _Private *next;
|
||||
} PrivateRec;
|
||||
|
||||
/*
|
||||
* Backwards compatibility macro. Use to get the proper PrivateRec
|
||||
* reference from any of the structure types that supported the old
|
||||
* devPrivates mechanism.
|
||||
*/
|
||||
#define DEVPRIV_PTR(foo) ((PrivateRec **)(&(foo)->devPrivates[0].ptr))
|
||||
|
||||
/*
|
||||
* Request pre-allocated private space for your driver/module.
|
||||
* Calling this is not necessary if only a pointer by itself is needed.
|
||||
|
|
@ -154,7 +147,4 @@ dixLookupPrivateOffset(RESTYPE type);
|
|||
extern int
|
||||
dixRegisterPrivateOffset(RESTYPE type, unsigned offset);
|
||||
|
||||
/* Used by the legacy support, don't rely on this being here */
|
||||
#define PadToLong(w) ((((w) + sizeof(long)-1) / sizeof(long)) * sizeof(long))
|
||||
|
||||
#endif /* PRIVATES_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue