archive/File, input/Plugin: return InputStreamPtr

This commit is contained in:
Max Kellermann
2017-12-26 20:05:22 +01:00
parent 49619fbd77
commit 7bce6329e3
17 changed files with 60 additions and 63 deletions

View File

@@ -20,6 +20,8 @@
#ifndef MPD_INPUT_PLUGIN_HXX
#define MPD_INPUT_PLUGIN_HXX
#include "Ptr.hxx"
struct ConfigBlock;
class Mutex;
class Cond;
@@ -48,8 +50,8 @@ struct InputPlugin {
/**
* Throws std::runtime_error on error.
*/
InputStream *(*open)(const char *uri,
Mutex &mutex, Cond &cond);
InputStreamPtr (*open)(const char *uri,
Mutex &mutex, Cond &cond);
};
#endif