diff options
author | Erkki Seppälä <erkki.seppala@vincit.fi> | 2010-12-08 17:09:30 +0200 |
---|---|---|
committer | Erkki Seppälä <erkki.seppala@vincit.fi> | 2012-04-18 12:49:11 +0300 |
commit | 233eab4d05cae1fdb4129a2e9905961b78693f74 (patch) | |
tree | 337499ce8916b94049618f0c91d481b03a03a9e1 /include/resource.h | |
parent | ccb3e78124fb05defd0c9b438746b79d84dfc3ae (diff) |
dix: add reference count of the resource to ResourceSizeRec
The ResourceSizeRec now contains the number of references to the
resource. For example a Pixmap knows this value and it can be useful
for determining the "weight" of the resource. Typically this value
is 1.
Reviewed-by: Rami Ylimäki <rami.ylimaki@vincit.fi>
Signed-off-by: Erkki Seppälä <erkki.seppala@vincit.fi>
Diffstat (limited to 'include/resource.h')
-rw-r--r-- | include/resource.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/resource.h b/include/resource.h index ae5dd51e7..19f46d108 100644 --- a/include/resource.h +++ b/include/resource.h @@ -162,6 +162,8 @@ typedef struct { unsigned long resourceSize; /* Size attributed to pixmap references from the resource. */ unsigned long pixmapRefSize; + /* Number of references to this resource; typically 1 */ + unsigned long refCnt; } ResourceSizeRec, *ResourceSizePtr; typedef void (*SizeType)(pointer /*value*/, |