ftp://ftp.ntnu.no/old/pub/X11/R5contrib/xscreensaver-1.17.tar.gz
[xscreensaver] / driver / xscreensaver.h
1 /* xscreensaver, Copyright (c) 1993 Jamie Zawinski <jwz@lucid.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 #if __STDC__
18 # define P(x)x
19 #else
20 # define P(x)()
21 #endif
22
23 #ifdef NO_MOTIF
24 # define NO_DEMO_MODE
25 # ifndef NO_LOCKING
26 #  define NO_LOCKING
27 # endif
28 #endif
29
30 extern char *progname, *progclass;
31 extern char *screensaver_version;
32
33 extern Display *dpy;
34 extern Screen *screen;
35 extern Visual *visual;
36 extern int visual_depth;
37
38 extern Bool verbose_p;
39
40 extern void initialize_screensaver_window P(());
41 extern void raise_window P((Bool inhibit_fade, Bool between_hacks_p));
42 extern void blank_screen P(());
43 extern void unblank_screen P((void));
44 extern void restart_process P((void));
45
46 extern void restore_real_vroot P((void));
47
48 extern void spawn_screenhack P((Bool));
49 extern void kill_screenhack P((void));
50
51 extern Colormap copy_colormap P((Display *, Colormap, Colormap));
52 extern void fade_colormap P((Display*, Colormap, Colormap, int, int, Bool));
53 extern void blacken_colormap P((Display *, Colormap));
54
55 extern int BadWindow_ehandler P((Display *dpy, XErrorEvent *error));