ftp://ftp.uni-heidelberg.de/pub/X11/contrib/applications/xscreensaver-1.25.tar.Z
[xscreensaver] / driver / xscreensaver.h
1 /* xscreensaver, Copyright (c) 1993, 1995 Jamie Zawinski <jwz@mcom.com>
2  *
3  * Permission to use, copy, modify, distribute, and sell this software and its
4  * documentation for any purpose is hereby granted without fee, provided that
5  * the above copyright notice appear in all copies and that both that
6  * copyright notice and this permission notice appear in supporting
7  * documentation.  No representations are made about the suitability of this
8  * software for any purpose.  It is provided "as is" without express or 
9  * implied warranty.
10  */
11
12 #if __STDC__
13 # include <stdlib.h>
14 # include <unistd.h>
15 #endif
16
17 #include <stdio.h>
18
19 #if __STDC__
20 # define P(x)x
21 #else
22 # define P(x)()
23 # ifndef const
24 #  define const /**/
25 # endif
26 #endif
27
28 #ifdef NO_MOTIF
29 # define NO_DEMO_MODE
30 # ifndef NO_LOCKING
31 #  define NO_LOCKING
32 # endif
33 #endif
34
35 extern char *progname, *progclass;
36 extern char *screensaver_version;
37
38 extern Display *dpy;
39 extern Screen *screen;
40 extern Visual *visual;
41 extern int visual_depth;
42
43 extern Bool verbose_p;
44
45 extern FILE *real_stderr;
46 extern FILE *real_stdout;
47
48 extern void initialize_screensaver_window P((void));
49 extern void raise_window P((Bool inhibit_fade, Bool between_hacks_p));
50 extern void blank_screen P((void));
51 extern void unblank_screen P((void));
52 extern void restart_process P((void));
53
54 extern void restore_real_vroot P((void));
55
56 extern void spawn_screenhack P((Bool));
57 extern void kill_screenhack P((void));
58
59 extern Colormap copy_colormap P((Display *, Colormap, Colormap));
60 extern void fade_colormap P((Display*, Colormap, Colormap, int, int, Bool));
61 extern void blacken_colormap P((Display *, Colormap));
62
63 extern int BadWindow_ehandler P((Display *dpy, XErrorEvent *error));
64
65 extern char *timestring P((void));
66 extern Bool window_exists_p P((Display *dpy, Window window));