aboutsummaryrefslogtreecommitdiffstats
path: root/src/input_file.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* input_stream: make seek(), buffer() optionalMax Kellermann2009-01-301-7/+0
| | | | | | Make those two methods optional to implement, and let input_stream.c provide fallbacks. The buffer() method will be removed one day, and there is now only one implementation left (input_curl.c).
* input_stream: let the implementation assign is->pluginMax Kellermann2009-01-301-0/+1
| | | | This way, plugins can manipulate the plugin pointer during open().
* input_file.c: replaced mpd_unused by G_GNUC_UNUSEDThomas Jansen2008-11-241-2/+1
|
* input_file: refuse to open non-regular filesMax Kellermann2008-10-291-0/+7
| | | | | Don't allow users to open a file which is non-regular (e.g. pipes, devices).
* input_file: check fstat() failureMax Kellermann2008-10-291-0/+6
|
* input_file: use GLib for loggingMax Kellermann2008-10-291-3/+3
|
* input_file: don't use buffered I/OMax Kellermann2008-10-281-28/+31
| | | | | Yet another superfluous buffering layer. input_file was using FILE*, but we're better off with unbuffered I/O using open(), read(), ...
* input_stream: convert offset and size to the off_t data typeMax Kellermann2008-10-281-1/+1
| | | | | | size_t and long aren't 64 bit safe (i.e. files larger than 2 GB on a 32 bit OS). Use off_t instead, which is a 64 bit integer if compiled with large file support.
* input_file, input_curl: check URL type before attempting to openMax Kellermann2008-10-271-0/+3
| | | | | Don't attempt to open a HTTP URL as a local file, and don't send a local path to libcurl.
* input_stream: use "bool" instead of "int"Max Kellermann2008-10-261-6/+6
| | | | | For boolean values and success flags, use bool instead of integer (1/0 for true/false, 0/-1 for success/failure).
* input_stream: input_stream_close() returns voidMax Kellermann2008-10-261-7/+2
| | | | close() shouldn't fail with read-only streams.
* input_stream: added struct input_pluginMax Kellermann2008-10-261-25/+13
| | | | | | | Instead of managing a set of method pointers in each input_stream struct, move these into the new input_plugin struct. Each input_stream has only a pointer to the plugin struct. Pointers to all implementations are kept in the array "input_plugins".
* input_stream: no CamelCaseMax Kellermann2008-10-261-35/+36
| | | | Renamed all functions and variables.
* input_file: removed global constructorMax Kellermann2008-10-261-4/+0
| | | | The global constructor is empty, and can be removed.
* input_file: don't export internal methodsMax Kellermann2008-10-261-7/+25
| | | | | The methods are only used in inputStream_fileOpen(), and should not be exported.
* input_stream: renamed sources, no CamelCaseMax Kellermann2008-10-261-0/+115
Renamed inputStream.c and inputStream_file.c.