diff options
author | Max Kellermann <max@duempel.org> | 2008-10-26 20:34:03 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-26 20:34:03 +0100 |
commit | 23552f89cc6fbd28ffba0c2c485a24ab6b95eaa3 (patch) | |
tree | e424c88b4c86bb59e0cc6a162b3dd0e9e657f566 | |
parent | 21b8590b53699f92802cb95121e910033cbd4f11 (diff) | |
download | mpd-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 '')
-rw-r--r-- | src/input_file.c | 32 | ||||
-rw-r--r-- | src/input_file.h | 12 |
2 files changed, 25 insertions, 19 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; } diff --git a/src/input_file.h b/src/input_file.h index 00d85a36c..e3b97db3d 100644 --- a/src/input_file.h +++ b/src/input_file.h @@ -25,16 +25,4 @@ void inputStream_initFile(void); int inputStream_fileOpen(struct input_stream *inStream, char *filename); -int inputStream_fileSeek(struct input_stream *inStream, long offset, - int whence); - -size_t inputStream_fileRead(struct input_stream *inStream, - void *ptr, size_t size); - -int inputStream_fileClose(struct input_stream *inStream); - -int inputStream_fileAtEOF(struct input_stream *inStream); - -int inputStream_fileBuffer(struct input_stream *inStream); - #endif |