File: screen.h

package info (click to toggle)
lcdproc 0.4.5-1.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 2,092 kB
  • ctags: 2,047
  • sloc: ansic: 23,436; sh: 3,236; perl: 730; makefile: 118
file content (43 lines) | stat: -rw-r--r-- 801 bytes parent folder | download | duplicates (3)
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
/*
 * screen.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
 *
 */

#ifndef SCREEN_H
#define SCREEN_H

#include "shared/LL.h"
#include "clients.h"

typedef struct screen {
	char *id;
	char *name;
	int wid, hgt;
	int priority;
	int duration;
	int heartbeat;
	int timeout;
	int backlight_state;
	char *keys;
	LinkedList *widgets;
	client *parent;
} screen;

extern int  default_duration ;
extern int  default_priority ;

screen *screen_create ();
int screen_destroy (screen * s);

screen *screen_find (client * c, char *id);

int screen_add (client * c, char *id);
int screen_remove (client * c, char *id);

#endif