summaryrefslogtreecommitdiff
path: root/content/content.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/content.c')
-rw-r--r--content/content.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/content/content.c b/content/content.c
index 9e01171ea..1a1fc9927 100644
--- a/content/content.c
+++ b/content/content.c
@@ -1302,6 +1302,23 @@ struct bitmap *content__get_bitmap(struct content *c)
}
/**
+ * Return whether a content is currently locked
+ *
+ * \param c Content to test
+ * \return true iff locked, else false
+ */
+
+bool content_is_locked(hlcache_handle *h)
+{
+ return content__is_locked(hlcache_handle_get_content(h));
+}
+
+bool content__is_locked(struct content *c)
+{
+ return c->locked;
+}
+
+/**
* Retrieve the low-level cache handle for a content
*
* \param h Content to retrieve from