aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-08-06 09:49:00 +0200
committerMax Kellermann <max@duempel.org>2015-08-06 09:49:00 +0200
commit7dfe8418766626c6d6fa0c7c148e8aae4964bc5f (patch)
treeb1f0d1d9c139406880b4c8841fd9bbc545874ff7 /src/output
parent34db35c36d8bb32b2c41640432474f52889cce08 (diff)
downloadmpd-7dfe8418766626c6d6fa0c7c148e8aae4964bc5f.tar.gz
mpd-7dfe8418766626c6d6fa0c7c148e8aae4964bc5f.tar.xz
mpd-7dfe8418766626c6d6fa0c7c148e8aae4964bc5f.zip
output/fifo: rename Open(), Close() to OpenFifo(), CloseFifo()
Diffstat (limited to 'src/output')
-rw-r--r--src/output/plugins/FifoOutputPlugin.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/output/plugins/FifoOutputPlugin.cxx b/src/output/plugins/FifoOutputPlugin.cxx
index 6611a83c4..b8887e6e2 100644
--- a/src/output/plugins/FifoOutputPlugin.cxx
+++ b/src/output/plugins/FifoOutputPlugin.cxx
@@ -54,7 +54,7 @@ struct FifoOutput {
created(false) {}
~FifoOutput() {
- Close();
+ CloseFifo();
}
bool Initialize(const ConfigBlock &block, Error &error) {
@@ -67,8 +67,8 @@ struct FifoOutput {
bool Check(Error &error);
void Delete();
- bool Open(Error &error);
- void Close();
+ bool OpenFifo(Error &error);
+ void CloseFifo();
unsigned Delay() const;
size_t Play(const void *chunk, size_t size, Error &error);
@@ -94,7 +94,7 @@ FifoOutput::Delete()
}
void
-FifoOutput::Close()
+FifoOutput::CloseFifo()
{
if (input >= 0) {
close(input);
@@ -150,7 +150,7 @@ FifoOutput::Check(Error &error)
}
inline bool
-FifoOutput::Open(Error &error)
+FifoOutput::OpenFifo(Error &error)
{
if (!Check(error))
return false;
@@ -159,7 +159,7 @@ FifoOutput::Open(Error &error)
if (input < 0) {
error.FormatErrno("Could not open FIFO \"%s\" for reading",
path_utf8.c_str());
- Close();
+ CloseFifo();
return false;
}
@@ -167,7 +167,7 @@ FifoOutput::Open(Error &error)
if (output < 0) {
error.FormatErrno("Could not open FIFO \"%s\" for writing",
path_utf8.c_str());
- Close();
+ CloseFifo();
return false;
}
@@ -196,7 +196,7 @@ FifoOutput::Create(const ConfigBlock &block, Error &error)
return nullptr;
}
- if (!fd->Open(error)) {
+ if (!fd->OpenFifo(error)) {
delete fd;
return nullptr;
}