input/Plugin: migrate open() from class Error to C++ exceptions

This commit is contained in:
Max Kellermann
2016-09-09 15:37:06 +02:00
parent 63ab7767a3
commit fc7d3f64c0
44 changed files with 359 additions and 461 deletions

View File

@@ -26,13 +26,14 @@
class Path;
class Mutex;
class Cond;
class Error;
/**
* Open a "local" file. This is a wrapper for the input plugins
* "file" and "archive".
*
* Throws std::runtime_error on error.
*/
InputStreamPtr
OpenLocalInputStream(Path path, Mutex &mutex, Cond &cond, Error &error);
OpenLocalInputStream(Path path, Mutex &mutex, Cond &cond);
#endif