File: screenlist.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 (55 lines) | stat: -rw-r--r-- 1,332 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
/** \file server/screenlist.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
 *		 2003, Joris Robijn
 */

#ifndef SCREENLIST_H
#define SCREENLIST_H

#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "shared/defines.h"

#define AUTOROTATE_OFF		0
#define AUTOROTATE_ON		1

extern int autorotate;		/**< If enabled, screens will rotate */

int screenlist_init(void);
	/* Initializes the screenlist. */

int screenlist_shutdown(void);
	/* Shuts down the screenlist. */

int screenlist_add(Screen *s);
	/* Adds a screen to the screenlist. */

int screenlist_remove(Screen *s);
	/* Removes a screen from the screenlist. */

void screenlist_process(void);
	/* Processes the screenlist. Decides if we need to switch to an other
	 * screen. */

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. */

Screen *screenlist_current(void);
	/* Returns the currently active screen. */

int screenlist_goto_next(void);
	/* Moves on to the next screen. */

int screenlist_goto_prev(void);
	/* Moves on to the previous screen. */

#endif