[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg
Subject: [PATCH 1/4] devPrivates rework (v2): add RC_PRIVATES class
From: ewalsh () tycho ! nsa ! gov (Eamon Walsh)
Date: 2007-03-05 11:54:08
Message-ID: 45EC7504.7020406 () tycho ! nsa ! gov
[Download RAW message or body]
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 */
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic