summaryrefslogtreecommitdiff
path: root/main/bucket.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/bucket.c')
-rw-r--r--main/bucket.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/bucket.c b/main/bucket.c
index afb017574..f7845c8c0 100644
--- a/main/bucket.c
+++ b/main/bucket.c
@@ -362,6 +362,12 @@ struct ast_bucket_metadata *ast_bucket_file_metadata_get(struct ast_bucket_file
return ao2_find(file->metadata, name, OBJ_KEY);
}
+void ast_bucket_file_metadata_callback(struct ast_bucket_file *file, ao2_callback_fn cb, void *arg)
+{
+ ao2_callback(file->metadata, 0, cb, arg);
+}
+
+
/*! \brief Destructor for buckets */
static void bucket_destroy(void *obj)
{