2001-12-27 23:30:36 +00:00
|
|
|
/*
|
|
|
|
|
* main.h
|
|
|
|
|
* This file is part of LCDd, the lcdproc server.
|
|
|
|
|
*
|
|
|
|
|
* This file is released under the GNU General Public License. Refer to the
|
|
|
|
|
* COPYING file distributed with this package.
|
|
|
|
|
*
|
|
|
|
|
* Copyright (c) 1999, William Ferrell, Scott Scriven
|
|
|
|
|
* 2001, Joris Robijn
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
1999-12-09 23:15:14 +00:00
|
|
|
#ifndef MAIN_H
|
|
|
|
|
#define MAIN_H
|
|
|
|
|
|
1999-12-11 19:21:29 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
|
#include "config.h"
|
2000-03-30 20:20:41 +00:00
|
|
|
#endif
|
1999-12-11 19:21:29 +00:00
|
|
|
|
1999-12-09 23:15:14 +00:00
|
|
|
/*
|
|
|
|
|
contains a few things that other parts of the program might want
|
|
|
|
|
to know about...
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
extern char *version;
|
2000-01-05 00:03:25 +00:00
|
|
|
extern char *protocol_version;
|
1999-12-09 23:15:14 +00:00
|
|
|
extern char *build_date;
|
|
|
|
|
|
2002-08-04 20:58:51 +00:00
|
|
|
/* You should be able to modify the following freqencies... */
|
|
|
|
|
#define RENDER_FREQ 8
|
|
|
|
|
/* We want 8 frames per second */
|
|
|
|
|
#define PROCESS_FREQ 32
|
|
|
|
|
/* And 32 times per second processing of messages and keypresses. */
|
|
|
|
|
#define MAX_RENDER_LAG_FRAMES 16
|
|
|
|
|
/* Allow the rendering strokes to lag behind this many frames.
|
|
|
|
|
* More lag will not be corrected, but will cause slow-down. */
|
|
|
|
|
#define TIME_UNIT (1e6/RENDER_FREQ)
|
|
|
|
|
/* Variable from stone age, still used a lot. */
|
1999-12-09 23:15:14 +00:00
|
|
|
|
2002-08-04 20:58:51 +00:00
|
|
|
extern long int timer;
|
|
|
|
|
/* 32 bits at 8Hz will overflow in 2 ^ 29 = 5e8 seconds = 17 years.
|
2003-02-27 21:20:20 +00:00
|
|
|
* If you get an overflow, please mail us and we will fix this personally
|
|
|
|
|
* for you ! */
|
1999-12-09 23:15:14 +00:00
|
|
|
|
|
|
|
|
#endif
|