Files
mpd/src/lib/avahi/ErrorHandler.hxx
2023-03-06 14:59:48 +01:00

23 lines
396 B
C++

// SPDX-License-Identifier: BSD-2-Clause
// Copyright CM4all GmbH
// author: Max Kellermann <mk@cm4all.com>
#pragma once
#include <exception>
struct AvahiClient;
namespace Avahi {
class ErrorHandler {
public:
/**
* @return true to keep retrying, false if the failed object
* has been disposed
*/
virtual bool OnAvahiError(std::exception_ptr e) noexcept = 0;
};
} // namespace Avahi