diff options
author | waker <wakeroid@gmail.com> | 2012-05-17 20:50:47 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2012-05-17 20:50:47 +0200 |
commit | 816d87e1d38dc0fecbe1fa47794b2d7a18d2e321 (patch) | |
tree | 6753620029a94976bf27d474156723dd2f403813 /playlist.h | |
parent | af55e42f2422f8734bc80fb8a58eba80b29937ef (diff) |
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
Diffstat (limited to 'playlist.h')
-rw-r--r-- | playlist.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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 |