| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Create a sub directory for input plugins.
|
|
|
|
| |
Start to separate private from public input_stream API.
|
|
|
|
| |
Define G_LOG_DOMAIN.
|
|
|
|
|
|
| |
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).
|
|
|
|
| |
This way, plugins can manipulate the plugin pointer during open().
|
| |
|
|
|
|
|
| |
Don't allow users to open a file which is non-regular (e.g. pipes,
devices).
|
| |
|
| |
|
|
|
|
|
| |
Yet another superfluous buffering layer. input_file was using FILE*,
but we're better off with unbuffered I/O using open(), read(), ...
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Don't attempt to open a HTTP URL as a local file, and don't send a
local path to libcurl.
|
|
|
|
|
| |
For boolean values and success flags, use bool instead of integer (1/0
for true/false, 0/-1 for success/failure).
|
|
|
|
| |
close() shouldn't fail with read-only streams.
|
|
|
|
|
|
|
| |
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".
|
|
|
|
| |
Renamed all functions and variables.
|
|
|
|
| |
The global constructor is empty, and can be removed.
|
|
|
|
|
| |
The methods are only used in inputStream_fileOpen(), and should not be
exported.
|
|
Renamed inputStream.c and inputStream_file.c.
|