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

This commit is contained in:
Max Kellermann
2016-09-05 12:05:54 +02:00
parent a73688a2be
commit 6ed77f2a27
15 changed files with 55 additions and 99 deletions

View File

@@ -68,8 +68,8 @@ public:
*
*/
static InputPlugin::InitResult
input_smbclient_init(gcc_unused const ConfigBlock &block, gcc_unused Error &error)
static void
input_smbclient_init(gcc_unused const ConfigBlock &block)
{
try {
SmbclientInit();
@@ -81,8 +81,6 @@ input_smbclient_init(gcc_unused const ConfigBlock &block, gcc_unused Error &erro
// TODO: create one global SMBCCTX here?
// TODO: evaluate ConfigBlock, call smbc_setOption*()
return InputPlugin::InitResult::SUCCESS;
}
static InputStream *