Daniel Stenberg | 9f6733f | 2002-03-25 14:21:30 +0000 | [diff] [blame] | 1 | /* xscreensaver, Copyright (c) 1992-1997 Jamie Zawinski <jwz@jwz.org> |
| 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 | |
Daniel Stenberg | 9f6733f | 2002-03-25 14:21:30 +0000 | [diff] [blame] | 12 | #ifndef __SCREENHACK_H__ |
| 13 | #define __SCREENHACK_H__ |
| 14 | |
| 15 | #include <stdlib.h> |
Daniel Stenberg | 5fcce4d | 2002-10-14 08:09:29 +0000 | [diff] [blame] | 16 | #include <stdbool.h> |
Daniel Stenberg | 9f6733f | 2002-03-25 14:21:30 +0000 | [diff] [blame] | 17 | |
Björn Stenberg | 8b69504 | 2004-09-16 14:36:08 +0000 | [diff] [blame] | 18 | #include "config-x11.h" |
Daniel Stenberg | 9f6733f | 2002-03-25 14:21:30 +0000 | [diff] [blame] | 19 | |
| 20 | #ifdef __hpux |
| 21 | /* Which of the ten billion standards does values.h belong to? |
| 22 | What systems always have it? */ |
| 23 | # include <values.h> |
| 24 | #endif |
| 25 | |
| 26 | #include <stdio.h> |
| 27 | |
| 28 | #include <X11/Xlib.h> |
| 29 | #include <X11/Xresource.h> |
| 30 | #include <X11/Xos.h> |
Jens Arnold | 74b731e | 2005-03-18 23:51:52 +0000 | [diff] [blame] | 31 | #include <X11/Intrinsic.h> |
Daniel Stenberg | 9f6733f | 2002-03-25 14:21:30 +0000 | [diff] [blame] | 32 | |
Daniel Stenberg | 9f6733f | 2002-03-25 14:21:30 +0000 | [diff] [blame] | 33 | #include "resources.h" |
Daniel Stenberg | 9f6733f | 2002-03-25 14:21:30 +0000 | [diff] [blame] | 34 | #include "visual.h" |
| 35 | |
| 36 | extern Bool mono_p; |
| 37 | extern char *progname; |
| 38 | extern char *progclass; |
| 39 | extern XrmDatabase db; |
| 40 | extern XrmOptionDescRec options []; |
| 41 | extern char *defaults []; |
Jens Arnold | 74b731e | 2005-03-18 23:51:52 +0000 | [diff] [blame] | 42 | extern XtAppContext app; |
| 43 | extern Display* dpy; |
| 44 | extern Window window; |
Daniel Stenberg | 9f6733f | 2002-03-25 14:21:30 +0000 | [diff] [blame] | 45 | |
Jens Arnold | 74b731e | 2005-03-18 23:51:52 +0000 | [diff] [blame] | 46 | extern void screenhack(); |
| 47 | extern int screenhack_handle_event(XEvent*, bool *); |
| 48 | extern int screenhack_handle_events(bool *); |
Daniel Stenberg | 9f6733f | 2002-03-25 14:21:30 +0000 | [diff] [blame] | 49 | extern void screen_redraw(); |
| 50 | extern void screen_resized(); |
| 51 | |
| 52 | #endif /* __SCREENHACK_H__ */ |