[go: up one dir, main page]

Menu

[8a2cb6]: / config.h  Maximize  Restore  History

Download this file

57 lines (45 with data), 1.8 kB

 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
/* Contest Arbitrator v0.3.2 by Dmitry Gorokh, UR4MCK
This program is freeware!
Configuration file
Changes:
11.03.2015: DEFAULT_REPORT_DIR was changed to 'reports'
*/
#ifndef CONFIG_H
#define CONFIG_H
/* This is only needed on Win32 platform. On native Linux missing functions are in Libc */
#ifdef __WIN32__
#include "missing.h"
#endif
//#define _DEBUG_ /* Uncomment to enable debug */
#define VERSION "0.3.2" /* Program version */
/* Contests identifiers */
#define CONTEST_ID_NONE 0
#define CONTEST_ID_RUQRP_WAKEUP 1
/* TODO: add other contests */
#define CONTEST_ID_GENERAL 128
#define CONTEST_ID_UNDEFINED -1
#define CONTEST_NAME_UNDEFINED "Unknown contest"
#define MAX_STR 256 /* Maximum string length */
#define MAX_BANDS 32 /* Maximum possible bands in the list */
#define MAX_MODES 32 /* Maximum possible operating modes in the list */
#define LIST_DELIMITER "," /* Separates values in the contest configuration strings */
#define CONFIG_FILE_COMMENT_CHAR '#' /* Commentary character in configuration file */
/* Contest defaults */
#define DEFAULT_CONFIG_FILE "contest.conf" /* Default configuration file */
#define DEFAULT_CONTEST_ID (CONTEST_ID_UNDEFINED)
#define DEFAULT_CONTEST_NAME (CONTEST_NAME_UNDEFINED)
#define DEFAULT_CONTEST_DURATION (24 * 60 * 60) /* 24 hours */
#define DEFAULT_TIME_DIFFERENCE (3 * 60) /* 3 minutes */
#define DEFAULT_BAND_LIST "160M,80M,40M,20M,15M,10M"
#define DEFAULT_MODE_LIST "SSB,CW"
#define DEFAULT_CFM_UNRESOLVED 2
#define DEFAULT_REPORT_DIR "reports"
#define DEFAULT_UBN_DIR "ubn"
#define GENERAL_XCHECK_TIME_DIFFERENCE (2 * DEFAULT_TIME_DIFFERENCE)
/* For debug output */
#ifdef _DEBUG_
#define DEBUG printf
#else
#define DEBUG
#endif
#endif