mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-12-22 18:34:25 +01:00
c058e1e4d0
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
55 lines
2.1 KiB
C
55 lines
2.1 KiB
C
#ifndef CONFIG_H
|
|
#define CONFIG_H
|
|
|
|
#cmakedefine USE_COLORIZED_LOGS
|
|
|
|
#define DOORLOCK_VERSION_MAJOR "@DOORLOCK_VERSION_MAJOR@"
|
|
#define DOORLOCK_VERSION_MINOR "@DOORLOCK_VERSION_MINOR@"
|
|
#define DOORLOCK_VERSION_PATCH "@DOORLOCK_VERSION_PATCH@"
|
|
#define DOORLOCK_VERSION "@DOORLOCK_VERSION@"
|
|
|
|
#define DOORLOCK_GIT_BRANCH @GIT_BRANCH@
|
|
#define DOORLOCK_GIT_COMMIT_HASH @GIT_COMMIT_HASH@
|
|
|
|
#ifdef DEBUG
|
|
#define DEFAULT_LOG_LEVEL LogLevel::debug2
|
|
#else
|
|
#define DEFAULT_LOG_LEVEL LogLevel::info
|
|
#endif
|
|
|
|
#define DEFAULT_TOKEN_TIMEOUT (60*5)
|
|
#define DEFAULT_PORT 5555
|
|
#define DEFAULT_WEB_PREFIX "https://lock.binary.kitchen/"
|
|
#define DEFAULT_LDAP_URI "ldaps://ldap1.binary.kitchen/ ldaps://ldap2.binary.kitchen/ ldaps://ldapm.binary.kitchen/"
|
|
#define DEFAULT_BINDDN "cn=%s,ou=people,dc=binary-kitchen,dc=de"
|
|
#define DEFAULT_TOKEN_LENGTH 6
|
|
#define DEFAULT_LOG_DIR "/var/log/"
|
|
#define DEFAULT_SERIAL_DEVICE "/dev/ttyAMA0"
|
|
#define DEFAULT_SERIAL_BAUDRATE 9600UL
|
|
|
|
#define LOG_FILENAME "doorlockd.log"
|
|
#define LOG_SCRIPTS_FILENAME "doorlockd-scripts.log"
|
|
|
|
#define SHARED_LOCATION "@CMAKE_INSTALL_PREFIX@/share/doorlockd/"
|
|
|
|
#define IMAGE_LOCATION SHARED_LOCATION "images/"
|
|
#define IMAGE_LED_GREEN IMAGE_LOCATION "led-green.png"
|
|
#define IMAGE_LED_RED IMAGE_LOCATION "led-red.png"
|
|
|
|
|
|
#define SOUNDS_LOCATION SHARED_LOCATION "sounds/"
|
|
#define SOUND_LOCK SOUNDS_LOCATION "lock.wav"
|
|
#define SOUND_UNLOCK SOUNDS_LOCATION "unlock.wav"
|
|
#define SOUND_EMERGENCY_UNLOCK SOUNDS_LOCATION "emergency_unlock.wav"
|
|
#define SOUND_ZONK SOUNDS_LOCATION "zonk.wav"
|
|
#define SOUND_LOCK_BUTTON SOUNDS_LOCATION "lock_button.wav"
|
|
#define SOUND_UNLOCK_BUTTON SOUNDS_LOCATION "unlock_button.wav"
|
|
|
|
#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"
|
|
#define EMERGENCY_UNLOCK_SCRIPT "@CMAKE_INSTALL_PREFIX@/etc/doorlockd/emergency_unlock"
|
|
|
|
#endif
|