File: main.h

package info (click to toggle)
lcdproc 0.5.9-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 5,064 kB
  • sloc: ansic: 59,645; sh: 1,740; perl: 681; makefile: 417
file content (63 lines) | stat: -rw-r--r-- 1,740 bytes parent folder | download
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
57
58
59
60
61
62
63
/** \file server/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, Selene Scriven
 *		 2001, Joris Robijn
 */

#ifndef MAIN_H
#define MAIN_H

#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

/*
  contains a few things that other parts of the program might want
  to know about...
 */

extern char *version;
extern char *protocol_version;
extern char *build_date;

/* You should be able to modify the following freqencies... */
#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. */

extern long timer;
/* 32 bits at 8Hz will overflow in 2 ^ 29 = 5e8 seconds = 17 years.
 * If you get an overflow, please mail us and we will fix this personally
 * for you ! */

/**** Configuration variables ****/
/* Only configuration items that are settable from the command line should
 * be mentioned here. See main.c.
 */

extern unsigned int bind_port;
extern char bind_addr[];	/* Do not preinit these strings as they will occupy */
extern char configfile[];	/* a lot of space in the executable. */
extern char user[];		/* The values will be overwritten anyway... */

extern int frame_interval;	/* Not a command line option, but could be */

/* The drivers and their driver parameters */
extern char *drivernames[];
extern int num_drivers;

/* End of configuration variables */

/* Defines for having 'unset' values*/
#define UNSET_INT	-1
#define UNSET_STR	"\01"

#endif