SoundBand/sync/config.h

30 lines
937 B
C
Raw Normal View History

2017-11-09 23:09:59 +03:00
#ifndef CONFIG_H
#define CONFIG_H
2018-01-09 17:59:15 +03:00
// general otions
2017-11-09 23:09:59 +03:00
// LIB VERSION
#define MAJOR_VERSION 0
2017-11-26 19:19:43 +03:00
#define MINOR_VERSION 1
2018-01-09 17:59:15 +03:00
#define REVISION_VERSION 1
2017-11-09 23:09:59 +03:00
// sqlite config
#define DATABASE_NAME "songdata.dat"
2017-12-13 22:40:29 +03:00
#define BUFFER_NAME "buffer"
2017-11-09 23:09:59 +03:00
// network config
#define DEFAULT_ADRESS "DEFAULT_ADRESS"
#define DEFAULT_NRTWORK 0 // the network number from which the address will be taken.
#define LOCAL_HOST "127.0.0.1"
2017-11-29 21:36:29 +03:00
#define DEFAULT_PORT 1994
2018-01-14 15:29:42 +03:00
#define RESYNC_TIME 1000 // 1 sec on millisec
#define MAX_RESYNC_COUNT 3
2017-12-09 21:55:37 +03:00
#define SYNC_TIME 5 * 1000 // 5 sec on millisec
2018-01-14 15:49:26 +03:00
#define DEEP_SCANER_INTERVAL 1000 // 1 sec
#define CHECK_PING_INTERVAL 5 * 60 *1000 // 5 minutes
2017-11-09 23:09:59 +03:00
2017-12-09 21:55:37 +03:00
// sync
2017-12-17 01:23:38 +03:00
#define MIN_DIFFERENCE 10 // millisec
2017-12-09 21:55:37 +03:00
2017-11-09 23:09:59 +03:00
#endif // CONFIG_H