diff options
author | Max Kellermann <max@duempel.org> | 2011-07-20 21:46:05 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-07-20 21:46:05 +0200 |
commit | 0ea4c970d794d535ae6efb4d0ae2d3fe37980ae3 (patch) | |
tree | d08d18c852febad9d6da94dfbe31545dcf93b5d0 /src/pipe.h | |
parent | 57936a13741c09fa54a33a53ed05ac0d996e4807 (diff) | |
parent | 838f7cd210dbd3f071d48d54c168c123c3d20c58 (diff) | |
download | mpd-0ea4c970d794d535ae6efb4d0ae2d3fe37980ae3.tar.gz mpd-0ea4c970d794d535ae6efb4d0ae2d3fe37980ae3.tar.xz mpd-0ea4c970d794d535ae6efb4d0ae2d3fe37980ae3.zip |
Merge branch 'v0.16.x'
Conflicts:
src/player_thread.c
src/playlist_control.c
Diffstat (limited to 'src/pipe.h')
-rw-r--r-- | src/pipe.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pipe.h b/src/pipe.h index 785c1b943..84b9869e0 100644 --- a/src/pipe.h +++ b/src/pipe.h @@ -20,6 +20,7 @@ #ifndef MPD_PIPE_H #define MPD_PIPE_H +#include <glib.h> #include <stdbool.h> #ifndef NDEBUG @@ -38,6 +39,7 @@ struct music_pipe; /** * Creates a new #music_pipe object. It is empty. */ +G_GNUC_MALLOC struct music_pipe * music_pipe_new(void); @@ -70,6 +72,7 @@ music_pipe_contains(const struct music_pipe *mp, * Returns the first #music_chunk from the pipe. Returns NULL if the * pipe is empty. */ +G_GNUC_PURE const struct music_chunk * music_pipe_peek(const struct music_pipe *mp); @@ -96,9 +99,11 @@ music_pipe_push(struct music_pipe *mp, struct music_chunk *chunk); /** * Returns the number of chunks currently in this pipe. */ +G_GNUC_PURE unsigned music_pipe_size(const struct music_pipe *mp); +G_GNUC_PURE static inline bool music_pipe_empty(const struct music_pipe *mp) { |