| 1 |
michael |
5052 |
#ifndef OPTIONS_H |
| 2 |
|
|
#define OPTIONS_H |
| 3 |
|
|
|
| 4 |
|
|
/* The default name for conf, log, pid files */ |
| 5 |
michael |
5057 |
#define DEFAULTNAME "hopm" |
| 6 |
michael |
5052 |
|
| 7 |
|
|
/* file extensions */ |
| 8 |
|
|
/* config */ |
| 9 |
|
|
#define CONFEXT "conf" |
| 10 |
|
|
|
| 11 |
|
|
/* log file */ |
| 12 |
|
|
#define LOGEXT "log" |
| 13 |
|
|
|
| 14 |
|
|
/* PID file */ |
| 15 |
|
|
#define PIDEXT "pid" |
| 16 |
|
|
|
| 17 |
|
|
/* Maximum commands to queue */ |
| 18 |
|
|
#define COMMANDMAX 64 |
| 19 |
|
|
|
| 20 |
|
|
/* Interval (in seconds) to check command queue for timed out commands */ |
| 21 |
|
|
#define COMMANDINTERVAL 10 |
| 22 |
|
|
|
| 23 |
|
|
/* Timeout of commands (in seconds) */ |
| 24 |
|
|
#define COMMANDTIMEOUT 180 |
| 25 |
|
|
#endif /* OPTIONS_H */ |