Files
lcdproc/server/screenlist.h
T

53 lines
1.2 KiB
C
Raw Normal View History

2008-11-30 22:31:20 +00:00
/** \file server/screenlist.h
*/
/* This file is part of LCDd, the lcdproc server.
*
2008-11-30 22:31:20 +00:00
* This file is released under the GNU General Public License.
* Refer to the COPYING file distributed with this package.
*
2011-01-05 23:34:37 +00:00
* Copyright (c) 1999, William Ferrell, Selene Scriven
* 2003, Joris Robijn
*/
1999-12-09 23:15:14 +00:00
#ifndef SCREENLIST_H
#define SCREENLIST_H
#include "screen.h"
#define AUTOROTATE_OFF 0
#define AUTOROTATE_ON 1
1999-12-09 23:15:14 +00:00
extern bool autorotate; /**< If enabled, screens will rotate */
1999-12-09 23:15:14 +00:00
2007-04-02 21:29:53 +00:00
int screenlist_init(void);
/* Initializes the screenlist. */
1999-12-09 23:15:14 +00:00
2007-04-02 21:29:53 +00:00
int screenlist_shutdown(void);
/* Shuts down the screenlist. */
1999-12-09 23:15:14 +00:00
2007-04-02 21:29:53 +00:00
int screenlist_add(Screen *s);
/* Adds a screen to the screenlist. */
1999-12-09 23:15:14 +00:00
2007-04-02 21:29:53 +00:00
int screenlist_remove(Screen *s);
/* Removes a screen from the screenlist. */
2007-04-02 21:29:53 +00:00
void screenlist_process(void);
/* Processes the screenlist. Decides if we need to switch to an other
* screen. */
2007-04-02 21:29:53 +00:00
void screenlist_switch(Screen *s);
/* Switches to an other screen in the proper way. Informs clients of
* the switch. ALWAYS USE THIS FUNCTION TO SWITCH SCREENS. */
2007-04-02 21:29:53 +00:00
Screen *screenlist_current(void);
/* Returns the currently active screen. */
2007-04-02 21:29:53 +00:00
int screenlist_goto_next(void);
/* Moves on to the next screen. */
2007-04-02 21:29:53 +00:00
int screenlist_goto_prev(void);
/* Moves on to the previous screen. */
1999-12-09 23:15:14 +00:00
#endif