summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2010-02-01 22:11:12 +0800
committerChia-I Wu <olvaffe@gmail.com>2010-02-01 22:11:46 +0800
commitd5f016da4ef56592ad3ab9af64a72f94b6012f97 (patch)
tree9b67ad5e30aa5882ec59ffd5b6e3c3f859a4be80
parent849877dc93587e2114731997357b9076e020a354 (diff)
Pass the st context to st_manager->{lock,unlock}_resource.
The st manager might be interested in which context is using the resource.
-rw-r--r--st_api.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/st_api.h b/st_api.h
index 091d078..496c5c3 100644
--- a/st_api.h
+++ b/st_api.h
@@ -309,9 +309,9 @@ struct st_manager
* can lengthen the lifetime of the data structure, it is valid only until
* unlocked.
*/
- void *(*lock_resource)(struct st_manager *smapi,
+ void *(*lock_resource)(struct st_manager *smapi, struct st_context *stctx,
enum st_manager_resource_type type, void *res);
- void (*unlock_resource)(struct st_manager *smapi,
+ void (*unlock_resource)(struct st_manager *smapi, struct st_context *stctx,
enum st_manager_resource_type type, void *res);
};