aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist_vector.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-02-13 19:25:03 +0100
committerMax Kellermann <max@duempel.org>2012-02-13 19:26:04 +0100
commit5ee3a9a9cad4436b99b56ea6336cbfa91fe7a967 (patch)
treeefe0b9748ae98f73474024b8e2100c98e2c870b4 /src/playlist_vector.h
parentdd26fa67f2c7189636e867710d3c94f93296557f (diff)
downloadmpd-5ee3a9a9cad4436b99b56ea6336cbfa91fe7a967.tar.gz
mpd-5ee3a9a9cad4436b99b56ea6336cbfa91fe7a967.tar.xz
mpd-5ee3a9a9cad4436b99b56ea6336cbfa91fe7a967.zip
playlist_vector: require database lock for all functions
Diffstat (limited to 'src/playlist_vector.h')
-rw-r--r--src/playlist_vector.h11
1 files changed, 11 insertions, 0 deletions
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);