[PATCH 1/4] devPrivates rework (v2): add RC_PRIVATES class
Eamon Walsh
ewalsh at tycho.nsa.gov
Mon Mar 5 11:52:36 PST 2007
Patch in parent message had an old comment that slipped through, this
corrects the comment.
--
resource.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
--
diff --git a/include/resource.h b/include/resource.h
index 3231e8c..40259ac 100644
--- a/include/resource.h
+++ b/include/resource.h
@@ -66,7 +66,12 @@ typedef unsigned long RESTYPE;
* Extensions can use this too!
*/
#define RC_NEVERRETAIN ((RESTYPE)1<<29)
-#define RC_LASTPREDEF RC_NEVERRETAIN
+/* 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_ANY (~(RESTYPE)0)
/* types for Resource routines */
More information about the xorg
mailing list