event/Chrono, ...: relicense to BSD-2

This commit is contained in:
Max Kellermann 2023-03-12 19:57:20 +01:00
parent 08dbb4a69a
commit cf01db4d08
12 changed files with 26 additions and 54 deletions

View File

@ -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"

View File

@ -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 */

View File

@ -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 */

View File

@ -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"

View File

@ -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

View File

@ -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

View File

@ -1,4 +0,0 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright The Music Player Daemon Project
#include "IdleEvent.hxx"

View File

@ -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

View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -31,7 +31,6 @@ event = static_library(
'TimerList.cxx',
'CoarseTimerEvent.cxx',
'FineTimerEvent.cxx',
'IdleEvent.cxx',
'InjectEvent.cxx',
'DeferEvent.cxx',
'MaskMonitor.cxx',