1999-12-09 23:15:14 +00:00
|
|
|
#ifndef SCREEN_H
|
|
|
|
|
#define SCREEN_H
|
|
|
|
|
|
2001-05-25 03:14:27 +00:00
|
|
|
#include "shared/LL.h"
|
1999-12-09 23:15:14 +00:00
|
|
|
#include "clients.h"
|
|
|
|
|
|
2000-03-30 20:20:41 +00:00
|
|
|
typedef struct screen {
|
2000-04-03 22:13:57 +00:00
|
|
|
char *id;
|
|
|
|
|
char *name;
|
|
|
|
|
int wid, hgt;
|
|
|
|
|
int priority;
|
|
|
|
|
int duration;
|
|
|
|
|
int heartbeat;
|
2001-11-12 17:35:43 +00:00
|
|
|
int timeout;
|
2001-11-14 13:57:25 +00:00
|
|
|
int backlight_state;
|
2001-05-25 03:14:27 +00:00
|
|
|
char *keys;
|
2001-10-26 16:29:12 +00:00
|
|
|
LinkedList *widgets;
|
2000-04-03 22:13:57 +00:00
|
|
|
client *parent;
|
1999-12-09 23:15:14 +00:00
|
|
|
} screen;
|
|
|
|
|
|
2001-07-18 22:30:12 +00:00
|
|
|
extern int default_duration ;
|
|
|
|
|
extern int default_priority ;
|
|
|
|
|
|
2000-03-30 20:20:41 +00:00
|
|
|
screen *screen_create ();
|
|
|
|
|
int screen_destroy (screen * s);
|
1999-12-09 23:15:14 +00:00
|
|
|
|
2000-03-30 20:20:41 +00:00
|
|
|
screen *screen_find (client * c, char *id);
|
1999-12-09 23:15:14 +00:00
|
|
|
|
2000-03-30 20:20:41 +00:00
|
|
|
int screen_add (client * c, char *id);
|
|
|
|
|
int screen_remove (client * c, char *id);
|
1999-12-09 23:15:14 +00:00
|
|
|
|
|
|
|
|
#endif
|