-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h.in
48 lines (36 loc) · 890 Bytes
/
config.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* config.h
*
* Created on: Feb 6, 2020
* Author: tomer
*/
#ifndef LIB_CONFIG_H_
#define LIB_CONFIG_H_
#define LIBAEL_VERSION_MAJOR @libael_VERSION_MAJOR@
#define LIBAEL_VERSION_MINOR @libael_VERSION_MINOR@
#define LIBAEL_VERSION_PATCH @libael_VERSION_PATCH@
#cmakedefine HAVE_UNISTD_H
#cmakedefine HAVE_SYS_SOCKET_H
#cmakedefine HAVE_SYS_TYPES_H
#cmakedefine HAVE_ARPA_INET_H
#cmakedefine HAVE_SYS_EPOLL_H
#cmakedefine HAVE_SYS_EVENTFD_H
#cmakedefine HAVE_SYS_TIMERFD_H
#cmakedefine HAVE_ACCEPT4
#include <cstdint>
namespace ael {
#define GLOBAL_CONFIG Config::_config
class Config {
public:
virtual ~Config();
int listen_backlog_;
int listen_starvation_limit_;
int read_starvation_limit_;
int write_starvation_limit_;
std::uint32_t interval_occurrences_limit_;
static Config _config;
private:
Config();
};
} /* namespace ael */
#endif /* LIB_CONFIG_H_ */