Skip to content

Commit 365d657

Browse files
committed
event: rename Features.h to config.h
1 parent 505cbe4 commit 365d657

8 files changed

Lines changed: 9 additions & 16 deletions

File tree

src/event/Backend.hxx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22
// Copyright The Music Player Daemon Project
33

4-
#ifndef EVENT_BACKEND_HXX
5-
#define EVENT_BACKEND_HXX
4+
#pragma once
65

7-
#include "event/Features.h"
6+
#include "event/config.h"
87

98
#ifdef _WIN32
109

@@ -22,5 +21,3 @@ using EventPollBackend = EpollBackend;
2221
using EventPollBackend = PollBackend;
2322

2423
#endif
25-
26-
#endif

src/event/BackendEvents.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#pragma once
44

5-
#include "event/Features.h"
5+
#include "event/config.h" // for USE_EPOLL
66

77
#ifdef _WIN32
88

src/event/Loop.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
#include "Chrono.hxx"
88
#include "TimerWheel.hxx"
99
#include "Backend.hxx"
10-
#include "event/Features.h"
1110
#include "time/ClockCache.hxx"
1211
#include "util/IntrusiveList.hxx"
12+
#include "event/config.h"
1313

1414
#ifndef NO_FINE_TIMER_EVENT
1515
#include "TimerList.hxx"

src/event/SignalMonitor.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Copyright The Music Player Daemon Project
33

44
#include "SignalMonitor.hxx"
5-
#include "event/Features.h"
5+
#include "event/config.h"
66

77
#ifndef _WIN32
88

src/event/SocketEvent.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
#include "SocketEvent.hxx"
55
#include "Loop.hxx"
6-
#include "event/Features.h"
76

87
#include <cassert>
98
#include <utility>

src/event/SocketEvent.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#pragma once
55

66
#include "BackendEvents.hxx"
7-
#include "event/Features.h" // for USE_EPOLL
7+
#include "event/config.h" // for USE_EPOLL
88
#include "net/SocketDescriptor.hxx"
99
#include "util/BindMethod.hxx"
1010
#include "util/IntrusiveList.hxx"

src/event/WakeFD.hxx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22
// Copyright The Music Player Daemon Project
33

4-
#ifndef MPD_WAKE_FD_HXX
5-
#define MPD_WAKE_FD_HXX
4+
#pragma once
65

76
#include "net/SocketDescriptor.hxx"
8-
#include "event/Features.h"
7+
#include "event/config.h"
98

109
#ifdef USE_EVENTFD
1110
#include "system/EventFD.hxx"
@@ -37,5 +36,3 @@ public:
3736
fd.Write();
3837
}
3938
};
40-
41-
#endif

src/event/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ event_features.set('USE_EVENTFD', is_linux and get_option('eventfd'))
33
event_features.set('USE_SIGNALFD', is_linux and get_option('signalfd'))
44
event_features.set('USE_EPOLL', is_linux and get_option('epoll'))
55
event_features.set('NO_FINE_TIMER_EVENT', true)
6-
configure_file(output: 'Features.h', configuration: event_features)
6+
configure_file(output: 'config.h', configuration: event_features)
77

88
event_sources = []
99

0 commit comments

Comments
 (0)