diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2010-01-25 13:59:38 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2010-01-25 13:59:38 +0800 |
commit | 4e01951add9f78ed8bc4f6c12340ef3b53a57d11 (patch) | |
tree | 02945597b79290826153b6b6400a23bd2e9b4e12 | |
parent | 029481d3453f0581cc8aba7503a5d004fc2a3f14 (diff) |
Forgot to add resource type when simplifying {lock,unlock}_resource.
-rw-r--r-- | st_api.h | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -202,8 +202,10 @@ struct st_context * This gives access to the underlying data structure of a state tracker * context resource. */ - void *(*lock_resource)(struct st_context *stctx, void *res); - void (*unlock_resource)(struct st_context *stctx, void *res); + void *(*lock_resource)(struct st_context *stctx, + enum st_context_resource_type type, void *res); + void (*unlock_resource)(struct st_context *stctx, + enum st_context_resource_type type, void *res); /** * Invalidate the current textures that was taken from a framebuffer. @@ -315,8 +317,10 @@ struct st_manager * This gives access to the underlying data structure of a state tracker * manager resource. */ - void *(*lock_resource)(const struct st_manager *smapi, void *res); - void (*unlock_resource)(const struct st_manager *smapi, void *res); + void *(*lock_resource)(const struct st_manager *smapi, + enum st_manager_resource_type type, void *res); + void (*unlock_resource)(const struct st_manager *smapi, + enum st_manager_resource_type type, void *res); }; /** |