Base: LCDproc 0.5.2
[lcdproc-de200c.git] / server / main.h
blobb4f2de718ad75e35fa99f79a4fc6b907b61ecaae
1 /*
2 * main.h
3 * This file is part of LCDd, the lcdproc server.
5 * This file is released under the GNU General Public License. Refer to the
6 * COPYING file distributed with this package.
8 * Copyright (c) 1999, William Ferrell, Scott Scriven
9 * 2001, Joris Robijn
13 #ifndef MAIN_H
14 #define MAIN_H
16 #ifdef HAVE_CONFIG_H
17 # include "config.h"
18 #endif
21 contains a few things that other parts of the program might want
22 to know about...
25 extern char *version;
26 extern char *protocol_version;
27 extern char *build_date;
29 /* You should be able to modify the following freqencies... */
30 #define RENDER_FREQ 8
31 /* We want 8 frames per second */
32 #define PROCESS_FREQ 32
33 /* And 32 times per second processing of messages and keypresses. */
34 #define MAX_RENDER_LAG_FRAMES 16
35 /* Allow the rendering strokes to lag behind this many frames.
36 * More lag will not be corrected, but will cause slow-down. */
37 #define TIME_UNIT (1e6/RENDER_FREQ)
38 /* Variable from stone age, still used a lot. */
40 extern long int timer;
41 /* 32 bits at 8Hz will overflow in 2 ^ 29 = 5e8 seconds = 17 years.
42 * If you get an overflow, please mail us and we will fix this personally
43 * for you ! */
45 /**** Configuration variables ****/
46 /* Only configuration items that are settable from the command line should
47 * be mentioned here. See main.c.
50 extern unsigned int bind_port;
51 extern char bind_addr[]; /* Do not preinit these strings as they will occupy */
52 extern char configfile[]; /* a lot of space in the executable. */
53 extern char user[]; /* The values will be overwritten anyway... */
55 /* The drivers and their driver parameters */
56 extern char *drivernames[];
57 extern int num_drivers;
59 /* End of configuration variables */
61 /* Defines for having 'unset' values*/
62 #define UNSET_INT -1
63 #define UNSET_STR "\01"
65 #endif