icinga2/lib/remote/configstageshandler.hpp
Johannes Schmidt 749a4b0c89 Remove extra parameters from HTTP handler signature
These parameters are no longer needed since they were only used
by EventsHandler which was refactored in the other commit.
2025-07-14 10:36:59 +02:00

35 lines
739 B
C++

/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
#ifndef CONFIGSTAGESHANDLER_H
#define CONFIGSTAGESHANDLER_H
#include "remote/httphandler.hpp"
#include <atomic>
namespace icinga
{
class ConfigStagesHandler final : public HttpHandler
{
public:
DECLARE_PTR_TYPEDEFS(ConfigStagesHandler);
bool HandleRequest(
const WaitGroup::Ptr& waitGroup,
HttpRequest& request,
HttpResponse& response,
boost::asio::yield_context& yc
) override;
private:
void HandleGet(HttpRequest& request, HttpResponse& response);
void HandlePost(HttpRequest& request, HttpResponse& response);
void HandleDelete(HttpRequest& request, HttpResponse& response);
static std::atomic<bool> m_RunningPackageUpdates;
};
}
#endif /* CONFIGSTAGESHANDLER_H */