1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-22 18:34:25 +01:00
doorlockd-mirror/doorlockd/config.h.in

38 lines
1.4 KiB
C
Raw Normal View History

2015-05-11 00:18:22 +02:00
#ifndef CONFIG_H
#define CONFIG_H
#cmakedefine USE_COLORIZED_LOGS
2015-09-23 15:47:52 +02:00
#define DOORLOCKD_VERSION_MAJOR "@DOORLOCKD_VERSION_MAJOR@"
#define DOORLOCKD_VERSION_MINOR "@DOORLOCKD_VERSION_MINOR@"
#define DOORLOCKD_VERSION_PATCH "@DOORLOCKD_VERSION_PATCH@"
2015-09-23 15:50:26 +02:00
#define DOORLOCKD_VERSION "@DOORLOCKD_VERSION@"
2015-09-23 15:47:52 +02:00
#define DOORLOCKD_GIT_BRANCH @GIT_BRANCH@
#define DOORLOCKD_GIT_COMMIT_HASH @GIT_COMMIT_HASH@
2015-05-11 00:18:22 +02:00
#ifdef DEBUG
#define DEFAULT_LOG_LEVEL LogLevel::debug2
#else
#define DEFAULT_LOG_LEVEL LogLevel::info
#endif
2015-05-13 16:50:44 +02:00
#define DEFAULT_TOKEN_TIMEOUT (60*5)
2015-05-13 16:20:12 +02:00
#define DEFAULT_PORT 5555
2015-05-13 16:40:30 +02:00
#define DEFAULT_WEB_PREFIX "https://lock.binary.kitchen/"
2015-05-24 19:15:47 +02:00
#define DEFAULT_LDAP_URI "ldaps://ldap1.binary.kitchen/ ldaps://ldap2.binary.kitchen/ ldaps://ldapm.binary.kitchen/"
2015-05-13 16:40:30 +02:00
#define DEFAULT_BINDDN "cn=%s,ou=Users,dc=binary-kitchen,dc=de"
2015-05-14 15:33:40 +02:00
#define DEFAULT_LOG_FILE "/var/log/doorlockd.log"
2015-09-23 15:29:05 +02:00
#define DEFAULT_SERIAL_DEVICE "/dev/ttyAMA0"
2015-09-23 15:33:27 +02:00
#define DEFAULT_SERIAL_BAUDRATE 9600UL
2015-05-12 01:28:02 +02:00
2015-05-21 13:56:20 +02:00
#define TEMPLATE_LOCATION "@CMAKE_INSTALL_PREFIX@/share/doorlockd/template.png"
2015-05-25 15:47:44 +02:00
#define PRE_LOCK_SCRIPT "@CMAKE_INSTALL_PREFIX@/etc/doorlockd/pre_lock &"
#define POST_LOCK_SCRIPT "@CMAKE_INSTALL_PREFIX@/etc/doorlockd/post_lock &"
#define PRE_UNLOCK_SCRIPT "@CMAKE_INSTALL_PREFIX@/etc/doorlockd/pre_unlock &"
#define POST_UNLOCK_SCRIPT "@CMAKE_INSTALL_PREFIX@/etc/doorlockd/post_unlock &"
2015-09-17 15:14:27 +02:00
#define EMERGENCY_UNLOCK_SCRIPT "@CMAKE_INSTALL_PREFIX@/etc/doorlockd/emergency_unlock &"
2015-05-25 15:47:44 +02:00
2015-05-11 00:18:22 +02:00
#endif