Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | input/zzip: add constructor/destructor | Max Kellermann | 2013-01-28 | 1 | -22/+31 | |
| | ||||||
* | input/zzip: rename the classes | Max Kellermann | 2013-01-28 | 1 | -15/+14 | |
| | ||||||
* | input/bzip2: add constructor/destructor | Max Kellermann | 2013-01-28 | 1 | -37/+39 | |
| | ||||||
* | archive/bzip2: rename the classes | Max Kellermann | 2013-01-28 | 1 | -16/+16 | |
| | ||||||
* | DatabaseLock, input/bzip2: remove obsolete Glib/gcc workaround | Max Kellermann | 2013-01-28 | 1 | -5/+0 | |
| | ||||||
* | DecoderControl, InputStream: use Mutex/Cond instead of GMutex/GCond | Max Kellermann | 2013-01-27 | 3 | -7/+6 | |
| | ||||||
* | input_stream: forward-declare the struct | Max Kellermann | 2013-01-26 | 3 | -0/+3 | |
| | | | | Hide the definition from C code, to prepare the transition to C++. | |||||
* | input_{internal,plugin}: convert to C++ | Max Kellermann | 2013-01-25 | 3 | -6/+6 | |
| | ||||||
* | archive/*: convert to C++ | Max Kellermann | 2013-01-24 | 6 | -91/+136 | |
| | ||||||
* | db_lock, archive/bz2, ...: workaround for G_STATIC_MUTEX_INIT warning | Max Kellermann | 2012-04-04 | 1 | -0/+5 | |
| | ||||||
* | input_stream: non-blocking I/O | Max Kellermann | 2011-09-16 | 3 | -8/+20 | |
| | | | | | | | | | Add GMutex, GCond attributes which will be used by callers to conditionally wait on the stream. Remove the (now-useless) plugin method buffer(), wait on GCond instead. Lock the input_stream before each method call. Do the same with the playlist plugins. | |||||
* | input_stream: move input_stream_init(), _deinit() to _internal.c | Max Kellermann | 2011-09-14 | 3 | -0/+3 | |
| | ||||||
* | copyright year 2011 | Max Kellermann | 2011-01-29 | 6 | -6/+6 | |
| | ||||||
* | input_stream: added attribute "uri" | Max Kellermann | 2010-01-18 | 3 | -5/+4 | |
| | ||||||
* | input_stream: added function input_stream_deinit() | Max Kellermann | 2010-01-18 | 3 | -0/+6 | |
| | | | | All close() implementations must call this method. | |||||
* | input_stream: return allocated input_stream objects | Max Kellermann | 2010-01-01 | 3 | -47/+44 | |
| | | | | | | | | Major API redesign: don't let the caller allocate the input_stream object. Let each input plugin allocate its own (derived/extended) input_stream pointer. The "data" attribute can now be removed, and all input plugins simply cast the input_stream pointer to their own structure (with an "struct input_stream base" as the first attribute). | |||||
* | Update copyright notices. | Avuton Olrich | 2009-12-31 | 6 | -6/+6 | |
| | ||||||
* | archive: use reference counting for archive+input | Max Kellermann | 2009-12-31 | 3 | -1/+31 | |
| | | | | | | | Make the input_stream implementation hold a reference on the archive_file object. Allow the caller to "close" the archive_file object immediately, no matter if the open_stream() method has succeeded or not. | |||||
* | input/archive: don't initialize input_stream.ready | Max Kellermann | 2009-12-31 | 3 | -0/+3 | |
| | | | | The archive plugin should decide this. | |||||
* | archive/bz2: allocate buffer statically | Max Kellermann | 2009-12-31 | 1 | -7/+3 | |
| | | | | Reduce the number of malloc()/free() calls. | |||||
* | archive/bz2: added struct bz2_input_stream | Max Kellermann | 2009-12-31 | 1 | -21/+32 | |
| | | | | Don't use the bz2_archive_file object for the input_stream. | |||||
* | archive/iso9660: added struct iso9660_input_stream | Max Kellermann | 2009-12-31 | 1 | -20/+32 | |
| | | | | Don't use the iso9660_archive_file object for the input_stream. | |||||
* | archive/iso9660: set input_stream.{size,offset} | Max Kellermann | 2009-12-31 | 1 | -8/+8 | |
| | ||||||
* | archive/zzip: added struct zzip_input_stream | Max Kellermann | 2009-12-31 | 1 | -19/+33 | |
| | | | | Don't use the zzip_archive object for the input_stream. | |||||
* | archive/zzip: set input_stream.{size,offset} | Max Kellermann | 2009-12-31 | 1 | -3/+5 | |
| | ||||||
* | archive_plugin: use GError in the open() method | Max Kellermann | 2009-12-16 | 3 | -7/+8 | |
| | ||||||
* | archive_plugin: wrap method calls | Max Kellermann | 2009-12-16 | 3 | -3/+14 | |
| | | | | | Make archive_file a "real" struct, extended by all plugins. Add the plugin pointer to it. Wrap all method calls in functions. | |||||
* | archive_plugin: pass const string to method open() | Max Kellermann | 2009-12-16 | 3 | -3/+3 | |
| | ||||||
* | archive: added a C header for each plugin | Max Kellermann | 2009-12-16 | 6 | -0/+78 | |
| | | | | | Moved the archive plugin "extern" declarations into each plugin header. | |||||
* | archive/bz2: removed the bz2_context typedef | Max Kellermann | 2009-12-16 | 1 | -13/+13 | |
| | | | | Use the raw struct name instead. | |||||
* | archive/bz2: renamed archive sources and plugin variables | Max Kellermann | 2009-12-16 | 1 | -1/+1 | |
| | ||||||
* | archive/iso: renamed plugin to "iso9660" | Max Kellermann | 2009-12-16 | 1 | -34/+44 | |
| | | | | Based on libiso9660. | |||||
* | archive/bz2: use g_path_get_basename() | Max Kellermann | 2009-12-16 | 1 | -10/+1 | |
| | | | | | Use g_path_get_basename() instead of manually filtering the path name. Big advantage: g_path_get_basename() cannot fail. | |||||
* | input_stream: return errors with GError | Max Kellermann | 2009-12-15 | 3 | -26/+56 | |
| | ||||||
* | archive/bz2: simplified error handling, short read | Max Kellermann | 2009-12-15 | 1 | -34/+23 | |
| | | | | | Don't attempt to fill the whole buffer in the read() method, return whatever libbz2 provides with the first successful BZ2_bzDecompress(). | |||||
* | archive/bz2: no CamelCase | Max Kellermann | 2009-12-15 | 1 | -11/+10 | |
| | ||||||
* | archive/zzip: removed the "zip_context" typedef | Max Kellermann | 2009-12-15 | 1 | -11/+11 | |
| | | | | Use the raw struct name. | |||||
* | archive/zip: renamed plugin to "zzip" | Max Kellermann | 2009-12-15 | 1 | -28/+28 | |
| | | | | This plugin is based on libzzip. | |||||
* | Merge branch 'v0.15.x' | Max Kellermann | 2009-12-15 | 3 | -4/+11 | |
|\ | | | | | | | | | | | | | | | Conflicts: src/archive/bz2_plugin.c src/archive_api.h src/input/file_input_plugin.c test/run_input.c | |||||
| * | iso, zip: fixed memory leak in destructor | Max Kellermann | 2009-12-15 | 2 | -2/+4 | |
| | | | | | | | | Free the "context" pointer in the method archive_plugin.close(). | |||||
| * | archive: close archive when stream is closed | Max Kellermann | 2009-12-15 | 3 | -0/+6 | |
| | | | | | | | | | | | | | | | | Fixes a memory leak: the "archive" input plugin opens the archive, but never closes it. This patch moves the responsibility for doing that to archive_plugin.open_stream(). This is an slight internal API change, but it is the simplest and least intrusive fix for the memory leak. | |||||
| * | archive/bz2: removed NULL check before g_free() | Max Kellermann | 2009-12-15 | 1 | -2/+2 | |
| | | | | | | | | g_free(NULL) is allowed. | |||||
* | | archive/bz2: bz2_fillbuffer() returns bool | Max Kellermann | 2009-12-15 | 1 | -5/+6 | |
| | | ||||||
* | | archive/bz2: fixed indentation | Max Kellermann | 2009-12-15 | 1 | -15/+22 | |
| | | ||||||
* | | archive/bz2: g_malloc() cannot fail | Max Kellermann | 2009-12-15 | 1 | -4/+2 | |
| | | ||||||
* | | include config.h in all sources | Max Kellermann | 2009-11-12 | 3 | -1/+3 | |
| | | | | | | | | | | | | After we've been hit by Large File Support problems several times in the past week (which only occur on 32 bit platforms, which I don't have), this is yet another attempt to fix the issue. | |||||
* | | input_stream: use "goffset" instead of "off_t" | Max Kellermann | 2009-10-11 | 1 | -1/+1 | |
|/ | | | | | | | | | | | | The "off_t" type may change when you enable or disable large file support on 32 bit platforms. This caused severe ABI problems within MPD when we enabled LFS for the first time: two sources included config.h and sys/types.h in different order, and had different off_t sizes - leading to memory corruption because of ABI incompatibility. This patch attempts to get rid of all public "off_t" uses: it removes "off_t" from the input_stream ABI/API, and switches to GLib's 64 bit "goffset" type. This may hurt 32 bit embedded platforms a tiny bit, but that's not even measurable. | |||||
* | archive/zip: pass NULL instead of 0 to zzip_dir_open() | Max Kellermann | 2009-05-04 | 1 | -2/+2 | |
| | | | | | The second parameter of zzip_dir_open() is a pointer. Pass the NULL pointer instead of 0 (with implicit conversion at compile time). | |||||
* | all: Update copyright header. | Avuton Olrich | 2009-03-13 | 3 | -18/+21 | |
| | | | | | | | | This updates the copyright header to all be the same, which is pretty much an update of where to mail request for a copy of the GPL and the years of the MPD project. This also puts all committers under 'The Music Player Project' umbrella. These entries should go individually in the AUTHORS file, for consistancy. | |||||
* | input_stream: moved struct input_plugin to input_plugin.h | Max Kellermann | 2009-03-02 | 3 | -3/+3 | |
| | | | | Start to separate private from public input_stream API. |