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
|
|
|
|
2001-10-04 21:05:15 +00:00
|
|
|
#include "render.h"
|
|
|
|
|
|
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;
|
|
|
|
|
|
2000-03-30 20:20:41 +00:00
|
|
|
void exit_program (int val);
|
1999-12-09 23:15:14 +00:00
|
|
|
|
2001-12-30 00:15:25 +00:00
|
|
|
/* 1/8th second is a single time unit...*/
|
1999-12-09 23:15:14 +00:00
|
|
|
#define TIME_UNIT 125000
|
2001-12-30 00:15:25 +00:00
|
|
|
/* But I plan to double the framerate soon, or make it variable...*/
|
|
|
|
|
/*#define TIME_UNIT (125000/2)*/
|
1999-12-09 23:15:14 +00:00
|
|
|
|
2000-03-30 20:20:41 +00:00
|
|
|
typedef struct screen_size {
|
2000-04-03 22:13:57 +00:00
|
|
|
char *size;
|
|
|
|
|
int wid, hgt;
|
1999-12-09 23:15:14 +00:00
|
|
|
} screen_size;
|
|
|
|
|
|
2001-09-21 21:08:10 +00:00
|
|
|
#define DEFAULT_SCREEN_PRIORITY 128
|
|
|
|
|
#define DEFAULT_SCREEN_DURATION 32
|
2001-10-04 21:05:15 +00:00
|
|
|
#define DEFAULT_HEARTBEAT HEARTBEAT_ON
|
2001-09-28 14:23:41 +00:00
|
|
|
#define DEFAULT_ADDR "127.0.0.1"
|
1999-12-09 23:15:14 +00:00
|
|
|
|
|
|
|
|
#endif
|