From 5ee3a9a9cad4436b99b56ea6336cbfa91fe7a967 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 13 Feb 2012 19:25:03 +0100 Subject: playlist_vector: require database lock for all functions --- src/playlist_vector.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/playlist_vector.h') diff --git a/src/playlist_vector.h b/src/playlist_vector.h index ae21a051f..0af6df8b4 100644 --- a/src/playlist_vector.h +++ b/src/playlist_vector.h @@ -49,20 +49,31 @@ struct playlist_metadata { void playlist_vector_deinit(struct list_head *pv); +/** + * Caller must lock the #db_mutex. + */ struct playlist_metadata * playlist_vector_find(struct list_head *pv, const char *name); +/** + * Caller must lock the #db_mutex. + */ void playlist_vector_add(struct list_head *pv, const char *name, time_t mtime); /** + * Caller must lock the #db_mutex. + * * @return true if the vector or one of its items was modified */ bool playlist_vector_update_or_add(struct list_head *pv, const char *name, time_t mtime); +/** + * Caller must lock the #db_mutex. + */ bool playlist_vector_remove(struct list_head *pv, const char *name); -- cgit v1.2.3