http://se.aminet.net/pub/X11/ftp.x.org/contrib/vms/xscreensaver-124.zip
[xscreensaver] / driver / xscreensaver.h
1 /* xscreensaver, Copyright (c) 1993 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 #ifdef VMS
13 #include "config.h"
14 #endif /* VMS */
15
16 #if __STDC__
17 # include <stdlib.h>
18 # include <unistd.h>
19 #endif
20
21 #if __STDC__
22 # define P(x)x
23 #else
24 # define P(x)()
25 # ifndef const
26 #  define const /**/
27 # endif
28 #endif
29
30 #ifdef NO_MOTIF
31 # define NO_DEMO_MODE
32 # ifndef NO_LOCKING
33 #  define NO_LOCKING
34 # endif
35 #endif
36
37 extern char *progname, *progclass;
38 extern char *screensaver_version;
39
40 extern Display *dpy;
41 extern Screen *screen;
42 extern Visual *visual;
43 extern int visual_depth;
44
45 extern Bool verbose_p;
46
47 extern void initialize_screensaver_window P((void));
48 extern void raise_window P((Bool inhibit_fade, Bool between_hacks_p));
49 extern void blank_screen P((void));
50 extern void unblank_screen P((void));
51 extern void restart_process P((void));
52
53 extern void restore_real_vroot P((void));
54
55 extern void spawn_screenhack P((Bool));
56 extern void kill_screenhack P((void));
57
58 extern Colormap copy_colormap P((Display *, Colormap, Colormap));
59 extern void fade_colormap P((Display*, Colormap, Colormap, int, int, Bool));
60 extern void blacken_colormap P((Display *, Colormap));
61
62 extern int BadWindow_ehandler P((Display *dpy, XErrorEvent *error));