ftp://ftp.zenez.com/pub/SCO/Skunk96/UnixWare/FreeBird/x11/utils/xscreensaver-1.18...
[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 # ifndef const
22 #  define const /**/
23 # endif
24 #endif
25
26 #ifdef NO_MOTIF
27 # define NO_DEMO_MODE
28 # ifndef NO_LOCKING
29 #  define NO_LOCKING
30 # endif
31 #endif
32
33 extern char *progname, *progclass;
34 extern char *screensaver_version;
35
36 extern Display *dpy;
37 extern Screen *screen;
38 extern Visual *visual;
39 extern int visual_depth;
40
41 extern Bool verbose_p;
42
43 extern void initialize_screensaver_window P(());
44 extern void raise_window P((Bool inhibit_fade, Bool between_hacks_p));
45 extern void blank_screen P(());
46 extern void unblank_screen P((void));
47 extern void restart_process P((void));
48
49 extern void restore_real_vroot P((void));
50
51 extern void spawn_screenhack P((Bool));
52 extern void kill_screenhack P((void));
53
54 extern Colormap copy_colormap P((Display *, Colormap, Colormap));
55 extern void fade_colormap P((Display*, Colormap, Colormap, int, int, Bool));
56 extern void blacken_colormap P((Display *, Colormap));
57
58 extern int BadWindow_ehandler P((Display *dpy, XErrorEvent *error));