forked from CESNET/netopeer2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.h.in
85 lines (69 loc) · 2.56 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/**
* @file config.h
* @author Michal Vasko <[email protected]>
* @brief Various configuration constants for netopeer2-server
*
* @copyright
* Copyright (c) 2019 - 2021 Deutsche Telekom AG.
* Copyright (c) 2017 - 2021 CESNET, z.s.p.o.
*
* This source code is licensed under BSD 3-Clause License (the "License").
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/BSD-3-Clause
*/
#ifndef NP2SRV_CONFIG_H_
#define NP2SRV_CONFIG_H_
/** @brief Netopeer2 Server version */
#define NP2SRV_VERSION "@NP2SRV_VERSION@"
/** @brief Netopeer2 Server PID file path
* The default path /var/run/netopeer2-server.pid follows
* the Filesystem Hierarchy Standard
*/
#define NP2SRV_PID_FILE_PATH "@PIDFILE_PREFIX@/netopeer2-server.pid"
/** @brief Netopeer2 Server UNIX socket file path
* The default path /var/run/netopeer2-server.sock follows
* the Filesystem Hierarchy Standard
*/
#define NP2SRV_UNIX_SOCK_PATH "@PIDFILE_PREFIX@/netopeer2-server.sock"
/** @brief Maximum number of threads handling session requests
*/
#ifndef NP2SRV_THREAD_COUNT
# define NP2SRV_THREAD_COUNT @THREAD_COUNT@
#endif
/** @brief NACM recovery session UID
*/
#define NP2SRV_NACM_RECOVERY_UID @NACM_RECOVERY_UID@
/** @brief Timeout for nc_ps_poll() call
*/
#define NP2SRV_POLL_IO_TIMEOUT @POLL_IO_TIMEOUT@
/** @brief Starting allocated length for a message
*/
#define NP2SRV_MSG_LEN_START 128
/** @brief Timeout for sending notifications (ms)
* Should never be needed to be increased, libnetconf2
* handles concurrency well.
*/
#define NP2SRV_NOTIF_SEND_TIMEOUT 1000
/** @brief Timeout for PS structure accessing in
* case there is too much contention (ms).
*/
#define NP2SRV_PS_BACKOFF_SLEEP 200
/** @brief Sleep time when terminating sub-ntf subscriptions
* to give a chance for another threads to wake up (ms).
*/
#define NP2SRV_SUB_NTF_TERMINATE_YIELD_SLEEP 50
/** @brief URL capability support
*/
#cmakedefine NP2SRV_URL_CAPAB
/** @brief Whether libsystemd is installed, decides general support for systemd
*/
#cmakedefine NP2SRV_HAVE_SYSTEMD
/** @brief printf-like pattern for path to the authorized_keys file */
#define NP2SRV_SSH_AUTHORIZED_KEYS_PATTERN "@NP2SRV_SSH_AUTHORIZED_KEYS_PATTERN@"
/** @brief Replace %s in NP2SRV_SSH_AUTHORIZED_KEYS_PATTERN by username (1), or by the home dir (0) */
#cmakedefine01 NP2SRV_SSH_AUTHORIZED_KEYS_ARG_IS_USERNAME
/** @brief directory for server files (only confirmed-commit backups at the moment) */
#define SERVER_DIR "@SERVER_DIR@"
#endif /* NP2SRV_CONFIG_H_ */