Added support for DE200C VFD
[lcdproc-de200c.git] / server / screenlist.h
blob73a2c7d6c03a1e4cec05875c3b7fb19195e64122
1 /*
2 * screenlist.h
3 * This file is part of LCDd, the lcdproc server.
5 * This file is released under the GNU General Public License. Refer to the
6 * COPYING file distributed with this package.
8 * Copyright (c) 1999, William Ferrell, Scott Scriven
9 * 2003, Joris Robijn
13 #ifndef SCREENLIST_H
14 #define SCREENLIST_H
16 #include "screen.h"
18 #define SCR_HOLD 1
19 #define SCR_SKIP 2
20 #define SCR_BACK 3
21 #define RENDER_HOLD 11
22 #define RENDER_SKIP 12
23 #define RENDER_BACK 13
25 /*extern int screenlist_action;*/
26 extern bool autorotate;
28 int screenlist_init(void);
29 /* Initializes the screenlist. */
31 int screenlist_shutdown(void);
32 /* Shuts down the screenlist. */
34 int screenlist_add(Screen *s);
35 /* Adds a screen to the screenlist. */
37 int screenlist_remove(Screen *s);
38 /* Removes a screen from the screenlist. */
40 void screenlist_process(void);
41 /* Processes the screenlist. Decides if we need to switch to an other
42 * screen. */
44 void screenlist_switch(Screen *s);
45 /* Switches to an other screen in the proper way. Informs clients of
46 * the switch. ALWAYS USE THIS FUNCTION TO SWITCH SCREENS. */
48 Screen *screenlist_current(void);
49 /* Returns the currently active screen. */
51 int screenlist_goto_next(void);
52 /* Moves on to the next screen. */
54 int screenlist_goto_prev(void);
55 /* Moves on to the previous screen. */
57 #endif