aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_input.cxx (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-08-15test/stdbin.h: remove obsolete headerMax Kellermann1-1/+0
2015-01-01Copyright year 2015Max Kellermann1-1/+1
2014-12-05configure.ac: require GLib 2.32 (if enabled)Max Kellermann1-12/+0
Since version 2.32, g_thread_init() is deprecated and a no-op. Let's upgrade that (optional) dependency so we can remove all those g_thread_init() calls.
2014-11-25test/run_input: make variables more localMax Kellermann1-12/+8
2014-10-07test/run_input, ...: add struct ScopeIOThreadMax Kellermann1-5/+2
Auto-stop the IO thread in all error handlers.
2014-08-07fs/output, fs/TextFile: move to fs/io/Max Kellermann1-2/+2
2014-07-30*Save, *State: use the OutputStream API instead of FILE*Max Kellermann1-0/+11
2014-05-11InputStream: add virtual destructorMax Kellermann1-1/+1
Replaces the method Close().
2014-05-11InputStream: convert to classMax Kellermann1-2/+2
2014-01-24Input*: move to input/Max Kellermann1-2/+2
2014-01-24Config*: move to config/Max Kellermann1-1/+1
2014-01-24archive/*: move to archive/plugins/Max Kellermann1-1/+1
2014-01-13copyright year 2014Max Kellermann1-1/+1
2013-12-29InputStream: add static method OpenReady()Max Kellermann1-11/+1
Merge some duplicate code.
2013-12-15test/*: use fprintf(stderr,...) and Log() instead of g_printerr()Max Kellermann1-18/+6
Avoid GLib.
2013-12-15configure.ac: add option "--disable-glib"Max Kellermann1-0/+4
Allows building without GLib. This fails to compile currently, because GLib is still used in the MPD core.
2013-10-23input_stream: rename struct to InputStreamMax Kellermann1-3/+3
2013-10-17thread/{Cond,Mutex}: use "class" instead of "typedef"Max Kellermann1-0/+1
Allows forward-declaration.
2013-10-02Log: new logging library APIMax Kellermann1-5/+6
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.
2013-09-05Tag, ...: move to libtag.aMax Kellermann1-1/+1
2013-09-05conf.h: remove obsolete headerMax Kellermann1-1/+1
Use only ConfigData.hxx in plugin sources to reduce header dependencies.
2013-09-05InputLegacy: move functions to the input_stream classMax Kellermann1-15/+13
2013-09-04util/Error: new error passing libraryMax Kellermann1-21/+16
Replaces GLib's GError.
2013-09-03IOThread: use FatalError() on g_thread_create() errorMax Kellermann1-5/+1
New GLib versions don't fail.
2013-09-03input_stream.h: rename to InputLegacy.hxxMax Kellermann1-1/+1
2013-08-04*: use gcc.h macros instead of GLibMax Kellermann1-2/+2
2013-07-30tag: convert to C++Max Kellermann1-4/+4
2013-04-17don't use g_thread_init() with GLib 2.32Max Kellermann1-0/+3
Deprecated.
2013-01-28InputStream: use std::stringMax Kellermann1-2/+2
2013-01-27DecoderControl, InputStream: use Mutex/Cond instead of GMutex/GCondMax Kellermann1-5/+2
2013-01-26input_stream: forward-declare the structMax Kellermann1-0/+1
Hide the definition from C code, to prepare the transition to C++.
2013-01-24archive/*: convert to C++Max Kellermann1-3/+1
2013-01-10io_thread: convert to C++Max Kellermann1-2/+1
2013-01-10input_stream: convert to C++ (internally)Max Kellermann1-1/+1
2013-01-07decoder_api.h, ...: add "extern C"Max Kellermann1-3/+3
2013-01-05test: revert debug program renamesMax Kellermann1-0/+0
2013-01-02db_save, state_file: convert to C++Max Kellermann1-3/+6
2012-08-08tag_pool: use GStaticMutexMax Kellermann1-3/+1
Eliminates explicit global initialisation.
2012-03-19test/run_input: use input_stream_*lock()Max Kellermann1-4/+4
2011-09-16input_stream: non-blocking I/OMax Kellermann1-12/+18
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.
2011-09-16input_plugin: add method check()Max Kellermann1-0/+6
To check for errors without reading. The decoder thread wants to do that, before it passes the input stream to the plugin.
2011-08-24input/soup: new input plugin based on libsoupMax Kellermann1-0/+11
To demonstrate the new I/O thread. libsoup is well-integrated into the GLib main loop, which made this plugin pretty easy to write. As a side effect, we have to initialize the I/O thread in all debug programs that use the input API.
2011-01-29copyright year 2011Max Kellermann1-1/+1
2010-05-20test: enable binary mode on stdin/stdoutMax Kellermann1-0/+1
Declaring the global variable _CRT_fmode is a documented hack. What an ugly platform!
2010-01-01input_stream: return allocated input_stream objectsMax Kellermann1-4/+5
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).
2009-12-31Update copyright notices.Avuton Olrich1-1/+1
2009-12-15input_stream: return errors with GErrorMax Kellermann1-6/+21
2009-12-15test/run_input: deinitialize everything after open() errorMax Kellermann1-40/+50
This enables valgrind debugging after an error occurred.
2009-12-15test/run_input: initialize archive pluginsMax Kellermann1-0/+15
Enable archive plugin debugging.
2009-12-14input_plugin: method init() returns errors with GErrorMax Kellermann1-1/+7
Not used by any plugin currently, but this eliminates the g_error() call in input_plugin_config(), so it's worth it.