event/Chrono, ...: relicense to BSD-2
This commit is contained in:
parent
08dbb4a69a
commit
cf01db4d08
|
@ -1,5 +1,5 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
// Copyright The Music Player Daemon Project
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
// author: Max Kellermann <max.kellermann@gmail.com>
|
||||
|
||||
#include "Call.hxx"
|
||||
#include "Loop.hxx"
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
// Copyright The Music Player Daemon Project
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
// author: Max Kellermann <max.kellermann@gmail.com>
|
||||
|
||||
#ifndef MPD_EVENT_CALL_HXX
|
||||
#define MPD_EVENT_CALL_HXX
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
|
||||
|
@ -16,5 +15,3 @@ class EventLoop;
|
|||
*/
|
||||
void
|
||||
BlockingCall(EventLoop &loop, std::function<void()> &&f);
|
||||
|
||||
#endif /* MAIN_NOTIFY_H */
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
// Copyright The Music Player Daemon Project
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
// author: Max Kellermann <max.kellermann@gmail.com>
|
||||
|
||||
#ifndef MPD_EVENT_CHRONO_HXX
|
||||
#define MPD_EVENT_CHRONO_HXX
|
||||
#pragma once
|
||||
|
||||
#include <chrono>
|
||||
|
||||
|
@ -17,5 +16,3 @@ using Duration = Clock::duration;
|
|||
using TimePoint = Clock::time_point;
|
||||
|
||||
} // namespace Event
|
||||
|
||||
#endif /* MAIN_NOTIFY_H */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
// Copyright The Music Player Daemon Project
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
// author: Max Kellermann <max.kellermann@gmail.com>
|
||||
|
||||
#include "DeferEvent.hxx"
|
||||
#include "Loop.hxx"
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
// Copyright The Music Player Daemon Project
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
// author: Max Kellermann <max.kellermann@gmail.com>
|
||||
|
||||
#ifndef MPD_DEFER_EVENT_HXX
|
||||
#define MPD_DEFER_EVENT_HXX
|
||||
#pragma once
|
||||
|
||||
#include "util/BindMethod.hxx"
|
||||
#include "util/IntrusiveList.hxx"
|
||||
|
@ -60,5 +59,3 @@ private:
|
|||
callback();
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
// Copyright The Music Player Daemon Project
|
||||
|
||||
#ifndef EVENT_EPOLL_BACKEND_HXX
|
||||
#define EVENT_EPOLL_BACKEND_HXX
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
// author: Max Kellermann <max.kellermann@gmail.com>
|
||||
|
||||
#include "system/EpollFD.hxx"
|
||||
|
||||
|
@ -65,5 +62,3 @@ public:
|
|||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
// Copyright The Music Player Daemon Project
|
||||
|
||||
#include "IdleEvent.hxx"
|
|
@ -1,8 +1,7 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
// Copyright The Music Player Daemon Project
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
// author: Max Kellermann <max.kellermann@gmail.com>
|
||||
|
||||
#ifndef MPD_SOCKET_IDLE_EVENT_HXX
|
||||
#define MPD_SOCKET_IDLE_EVENT_HXX
|
||||
#pragma once
|
||||
|
||||
#include "DeferEvent.hxx"
|
||||
|
||||
|
@ -41,5 +40,3 @@ public:
|
|||
event.Cancel();
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
// Copyright The Music Player Daemon Project
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
// author: Max Kellermann <max.kellermann@gmail.com>
|
||||
|
||||
#ifndef MPD_INJECT_EVENT_HXX
|
||||
#define MPD_INJECT_EVENT_HXX
|
||||
#pragma once
|
||||
|
||||
#include "util/BindMethod.hxx"
|
||||
#include "util/IntrusiveList.hxx"
|
||||
|
@ -47,5 +46,3 @@ private:
|
|||
callback();
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
// Copyright The Music Player Daemon Project
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
// author: Max Kellermann <max.kellermann@gmail.com>
|
||||
|
||||
#include "SocketEvent.hxx"
|
||||
#include "Loop.hxx"
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
// Copyright The Music Player Daemon Project
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
// author: Max Kellermann <max.kellermann@gmail.com>
|
||||
|
||||
#ifndef MPD_SOCKET_EVENT_HXX
|
||||
#define MPD_SOCKET_EVENT_HXX
|
||||
#pragma once
|
||||
|
||||
#include "BackendEvents.hxx"
|
||||
#include "net/SocketDescriptor.hxx"
|
||||
|
@ -162,5 +161,3 @@ private:
|
|||
*/
|
||||
void Dispatch() noexcept;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -31,7 +31,6 @@ event = static_library(
|
|||
'TimerList.cxx',
|
||||
'CoarseTimerEvent.cxx',
|
||||
'FineTimerEvent.cxx',
|
||||
'IdleEvent.cxx',
|
||||
'InjectEvent.cxx',
|
||||
'DeferEvent.cxx',
|
||||
'MaskMonitor.cxx',
|
||||
|
|
Loading…
Reference in New Issue