summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/hlcache.c6
-rw-r--r--content/hlcache.h10
2 files changed, 16 insertions, 0 deletions
diff --git a/content/hlcache.c b/content/hlcache.c
index d1da79509..a53db5d9f 100644
--- a/content/hlcache.c
+++ b/content/hlcache.c
@@ -370,6 +370,12 @@ nserror hlcache_handle_replace_callback(hlcache_handle *handle,
return NSERROR_OK;
}
+nserror hlcache_handle_clone(hlcache_handle *handle, hlcache_handle **result)
+{
+ *result = NULL;
+ return NSERROR_CLONE_FAILED;
+}
+
/******************************************************************************
* High-level cache internals *
******************************************************************************/
diff --git a/content/hlcache.h b/content/hlcache.h
index 3006b9e4d..c4e10915a 100644
--- a/content/hlcache.h
+++ b/content/hlcache.h
@@ -165,4 +165,14 @@ nserror hlcache_handle_replace_callback(hlcache_handle *handle,
*/
struct content *hlcache_handle_get_content(const hlcache_handle *handle);
+/**
+ * Clone a high level cache handle.
+ *
+ * \param handle The handle to clone.
+ * \param result The cloned handle.
+ * \return NSERROR_OK on success, appropriate error otherwise
+ *
+ */
+nserror hlcache_handle_clone(hlcache_handle *handle, hlcache_handle **result);
+
#endif