diff options
author | Max Kellermann <max@duempel.org> | 2011-06-03 16:58:09 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-06-03 16:58:09 +0200 |
commit | e228caaca62c8752d36ed8425b7f52809d34d348 (patch) | |
tree | 8e4b225f005e6c4d457f52b4d2fd97fac12a99b4 /src/playlist_vector.h | |
parent | 9ac8f89b1d8a0c2b4a9ba391ce174fbb3fa816e9 (diff) | |
parent | 4b4aa64261154bcb1e521b98629c0640d6b259f7 (diff) | |
download | mpd-e228caaca62c8752d36ed8425b7f52809d34d348.tar.gz mpd-e228caaca62c8752d36ed8425b7f52809d34d348.tar.xz mpd-e228caaca62c8752d36ed8425b7f52809d34d348.zip |
Merge branch 'v0.16.x'
Conflicts:
src/decoder/ffmpeg_decoder_plugin.c
Diffstat (limited to 'src/playlist_vector.h')
-rw-r--r-- | src/playlist_vector.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/playlist_vector.h b/src/playlist_vector.h index a16ab7c5d..8aa19a4e0 100644 --- a/src/playlist_vector.h +++ b/src/playlist_vector.h @@ -51,6 +51,12 @@ playlist_vector_init(struct playlist_vector *pv) void playlist_vector_deinit(struct playlist_vector *pv); +static inline bool +playlist_vector_is_empty(const struct playlist_vector *pv) +{ + return pv->head == NULL; +} + struct playlist_metadata * playlist_vector_find(struct playlist_vector *pv, const char *name); |