const SignalHandler& handler,
void* data) noexcept;
int unsubscribeSignal(int subscriberId) noexcept;
+ int getMaintenanceMode();
template<typename Type, typename... Args>
Type methodCall(const std::string& method, Args&&... args)
{
- if (!maintenanceMode) {
+ if (!getMaintenanceMode()) {
errno = EPROTONOSUPPORT;
return Type();
}
}
private:
- int maintenanceMode;
std::string clientAddress;
std::unique_ptr<ScopedGMainLoop> mainloop;
};