You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
495 B
C++
27 lines
495 B
C++
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
// Copyright The Music Player Daemon Project
|
|
|
|
#ifndef MPD_SIGNAL_HANDLERS_HXX
|
|
#define MPD_SIGNAL_HANDLERS_HXX
|
|
|
|
struct Instance;
|
|
|
|
void
|
|
SignalHandlersInit(Instance &instance, bool daemon);
|
|
|
|
void
|
|
SignalHandlersFinish() noexcept;
|
|
|
|
class ScopeSignalHandlersInit {
|
|
public:
|
|
ScopeSignalHandlersInit(Instance &instance, bool daemon) {
|
|
SignalHandlersInit(instance, daemon);
|
|
}
|
|
|
|
~ScopeSignalHandlersInit() noexcept {
|
|
SignalHandlersFinish();
|
|
}
|
|
};
|
|
|
|
#endif
|