neighbor/Plugin: migrate from class Error to C++ exceptions

This commit is contained in:
Max Kellermann
2016-09-05 10:53:54 +02:00
parent 135662d6b0
commit 871063dab7
8 changed files with 40 additions and 67 deletions

View File

@@ -72,7 +72,7 @@ public:
:NeighborExplorer(_listener) {}
/* virtual methods from class NeighborExplorer */
virtual bool Open(Error &error) override;
void Open() override;
virtual void Close() override;
virtual List GetList() const override;
@@ -82,12 +82,11 @@ private:
static void ThreadFunc(void *ctx);
};
bool
SmbclientNeighborExplorer::Open(gcc_unused Error &error)
void
SmbclientNeighborExplorer::Open()
{
quit = false;
thread.Start(ThreadFunc, this);
return true;
}
void
@@ -270,8 +269,7 @@ SmbclientNeighborExplorer::ThreadFunc(void *ctx)
static NeighborExplorer *
smbclient_neighbor_create(gcc_unused EventLoop &loop,
NeighborListener &listener,
gcc_unused const ConfigBlock &block,
gcc_unused Error &error)
gcc_unused const ConfigBlock &block)
{
SmbclientInit();