aboutsummaryrefslogtreecommitdiffstats
path: root/src/MusicPipe.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/MusicPipe.hxx')
-rw-r--r--src/MusicPipe.hxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/MusicPipe.hxx b/src/MusicPipe.hxx
index f2db33cc5..4f29d0728 100644
--- a/src/MusicPipe.hxx
+++ b/src/MusicPipe.hxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2013 The Music Player Daemon Project
+ * Copyright (C) 2003-2014 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -29,19 +29,19 @@
#include <assert.h>
-struct music_chunk;
+struct MusicChunk;
class MusicBuffer;
/**
- * A queue of #music_chunk objects. One party appends chunks at the
+ * A queue of #MusicChunk objects. One party appends chunks at the
* tail, and the other consumes them from the head.
*/
class MusicPipe {
/** the first chunk */
- music_chunk *head;
+ MusicChunk *head;
/** a pointer to the tail of the chunk */
- music_chunk **tail_r;
+ MusicChunk **tail_r;
/** the current number of chunks */
unsigned size;
@@ -87,22 +87,22 @@ public:
* Checks if the specified chunk is enqueued in the music pipe.
*/
gcc_pure
- bool Contains(const music_chunk *chunk) const;
+ bool Contains(const MusicChunk *chunk) const;
#endif
/**
- * Returns the first #music_chunk from the pipe. Returns
+ * Returns the first #MusicChunk from the pipe. Returns
* nullptr if the pipe is empty.
*/
gcc_pure
- const music_chunk *Peek() const {
+ const MusicChunk *Peek() const {
return head;
}
/**
* Removes the first chunk from the head, and returns it.
*/
- music_chunk *Shift();
+ MusicChunk *Shift();
/**
* Clears the whole pipe and returns the chunks to the buffer.
@@ -114,7 +114,7 @@ public:
/**
* Pushes a chunk to the tail of the pipe.
*/
- void Push(music_chunk *chunk);
+ void Push(MusicChunk *chunk);
/**
* Returns the number of chunks currently in this pipe.