aboutsummaryrefslogtreecommitdiffstats
path: root/src/input_file.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-26 20:34:03 +0100
committerMax Kellermann <max@duempel.org>2008-10-26 20:34:03 +0100
commit23552f89cc6fbd28ffba0c2c485a24ab6b95eaa3 (patch)
treee424c88b4c86bb59e0cc6a162b3dd0e9e657f566 /src/input_file.c
parent21b8590b53699f92802cb95121e910033cbd4f11 (diff)
downloadmpd-23552f89cc6fbd28ffba0c2c485a24ab6b95eaa3.tar.gz
mpd-23552f89cc6fbd28ffba0c2c485a24ab6b95eaa3.tar.xz
mpd-23552f89cc6fbd28ffba0c2c485a24ab6b95eaa3.zip
input_file: don't export internal methods
The methods are only used in inputStream_fileOpen(), and should not be exported.
Diffstat (limited to 'src/input_file.c')
-rw-r--r--src/input_file.c32
1 files changed, 25 insertions, 7 deletions
diff --git a/src/input_file.c b/src/input_file.c
index de7d0b5a3..db09b0570 100644
--- a/src/input_file.c
+++ b/src/input_file.c
@@ -25,6 +25,21 @@ void inputStream_initFile(void)
{
}
+static int
+inputStream_fileSeek(struct input_stream *is, long offset, int whence);
+
+static size_t
+inputStream_fileRead(struct input_stream *is, void *ptr, size_t size);
+
+static int
+inputStream_fileClose(struct input_stream *is);
+
+static int
+inputStream_fileAtEOF(struct input_stream *is);
+
+static int
+inputStream_fileBuffer(struct input_stream *is);
+
int inputStream_fileOpen(struct input_stream *inStream, char *filename)
{
FILE *fp;
@@ -57,8 +72,8 @@ int inputStream_fileOpen(struct input_stream *inStream, char *filename)
return 0;
}
-int inputStream_fileSeek(struct input_stream *inStream, long offset,
- int whence)
+static int
+inputStream_fileSeek(struct input_stream *inStream, long offset, int whence)
{
if (fseek((FILE *) inStream->data, offset, whence) == 0) {
inStream->offset = ftell((FILE *) inStream->data);
@@ -70,8 +85,8 @@ int inputStream_fileSeek(struct input_stream *inStream, long offset,
return 0;
}
-size_t inputStream_fileRead(struct input_stream *inStream,
- void *ptr, size_t size)
+static size_t
+inputStream_fileRead(struct input_stream *inStream, void *ptr, size_t size)
{
size_t readSize;
@@ -87,7 +102,8 @@ size_t inputStream_fileRead(struct input_stream *inStream,
return readSize;
}
-int inputStream_fileClose(struct input_stream *inStream)
+static int
+inputStream_fileClose(struct input_stream *inStream)
{
if (fclose((FILE *) inStream->data) < 0) {
inStream->error = errno;
@@ -97,7 +113,8 @@ int inputStream_fileClose(struct input_stream *inStream)
return 0;
}
-int inputStream_fileAtEOF(struct input_stream *inStream)
+static int
+inputStream_fileAtEOF(struct input_stream *inStream)
{
if (feof((FILE *) inStream->data))
return 1;
@@ -109,7 +126,8 @@ int inputStream_fileAtEOF(struct input_stream *inStream)
return 0;
}
-int inputStream_fileBuffer(mpd_unused struct input_stream *inStream)
+static int
+inputStream_fileBuffer(mpd_unused struct input_stream *inStream)
{
return 0;
}