summaryrefslogtreecommitdiff
path: root/src/pipe.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-02 16:56:09 +0100
committerMax Kellermann <max@duempel.org>2008-11-02 16:56:09 +0100
commite9e9d2bc2d9a144a09eb9954dd7857381e77a78a (patch)
tree1f31154bd41e939917a05e48e1a4c664f678bc65 /src/pipe.h
parentd430b1dc542c4a8954eaaaf1c165c40216e32f26 (diff)
music_pipe: renamed "ob" to "music_pipe"
Last music_pipe rename patch: renamed the global variable (singleton).
Diffstat (limited to 'src/pipe.h')
-rw-r--r--src/pipe.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pipe.h b/src/pipe.h
index 3af0bbd16..ae5fa64d5 100644
--- a/src/pipe.h
+++ b/src/pipe.h
@@ -57,7 +57,7 @@ struct music_pipe {
struct notify *notify;
};
-extern struct music_pipe ob;
+extern struct music_pipe music_pipe;
void
music_pipe_init(unsigned int size, struct notify *notify);
@@ -79,25 +79,25 @@ void music_pipe_set_lazy(bool lazy);
static inline unsigned
music_pipe_size(void)
{
- return ob.size;
+ return music_pipe.size;
}
/** is the buffer empty? */
static inline bool music_pipe_is_empty(void)
{
- return ob.begin == ob.end;
+ return music_pipe.begin == music_pipe.end;
}
static inline bool
music_pipe_head_is(unsigned i)
{
- return !music_pipe_is_empty() && ob.begin == i;
+ return !music_pipe_is_empty() && music_pipe.begin == i;
}
static inline unsigned
music_pipe_tail_index(void)
{
- return ob.end;
+ return music_pipe.end;
}
void music_pipe_shift(void);
@@ -126,7 +126,7 @@ music_pipe_peek(void)
if (music_pipe_is_empty())
return NULL;
- return music_pipe_get_chunk(ob.begin);
+ return music_pipe_get_chunk(music_pipe.begin);
}
/**