From 816d87e1d38dc0fecbe1fa47794b2d7a18d2e321 Mon Sep 17 00:00:00 2001 From: waker Date: Thu, 17 May 2012 20:50:47 +0200 Subject: fixed many calls to pl_find_meta[_raw] being called without pl_lock; added debug pl_ensure_lock function which asserts when pl_lock is not set when it is required; added new API functions for thread-safe metadata access --- playlist.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'playlist.h') diff --git a/playlist.h b/playlist.h index fefb3943..06966bde 100644 --- a/playlist.h +++ b/playlist.h @@ -454,4 +454,19 @@ plt_set_fast_mode (playlist_t *plt, int fast); int plt_is_fast_mode (playlist_t *plt); +void +pl_ensure_lock (void); + +int +pl_get_meta (playItem_t *it, const char *key, char *val, int size); + +int +pl_get_meta_raw (playItem_t *it, const char *key, char *val, int size); + +int +pl_meta_exists (playItem_t *it, const char *key); + +int +plt_get_meta (playlist_t *handle, const char *key, char *val, int size); + #endif // __PLAYLIST_H -- cgit v1.2.3