blob: 5c2e5321accb3a72e1effff0a543f4a629ecfe98 [file] [log] [blame]
Daniel Stenberg9f6733f2002-03-25 14:21:30 +00001/* 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 Stenberg9f6733f2002-03-25 14:21:30 +000012#ifndef __SCREENHACK_H__
13#define __SCREENHACK_H__
14
15#include <stdlib.h>
Daniel Stenberg5fcce4d2002-10-14 08:09:29 +000016#include <stdbool.h>
Daniel Stenberg9f6733f2002-03-25 14:21:30 +000017
Björn Stenberg8b695042004-09-16 14:36:08 +000018#include "config-x11.h"
Daniel Stenberg9f6733f2002-03-25 14:21:30 +000019
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 Arnold74b731e2005-03-18 23:51:52 +000031#include <X11/Intrinsic.h>
Daniel Stenberg9f6733f2002-03-25 14:21:30 +000032
Daniel Stenberg9f6733f2002-03-25 14:21:30 +000033#include "resources.h"
Daniel Stenberg9f6733f2002-03-25 14:21:30 +000034#include "visual.h"
35
36extern Bool mono_p;
37extern char *progname;
38extern char *progclass;
39extern XrmDatabase db;
40extern XrmOptionDescRec options [];
41extern char *defaults [];
Jens Arnold74b731e2005-03-18 23:51:52 +000042extern XtAppContext app;
43extern Display* dpy;
44extern Window window;
Daniel Stenberg9f6733f2002-03-25 14:21:30 +000045
Jens Arnold74b731e2005-03-18 23:51:52 +000046extern void screenhack();
47extern int screenhack_handle_event(XEvent*, bool *);
48extern int screenhack_handle_events(bool *);
Daniel Stenberg9f6733f2002-03-25 14:21:30 +000049extern void screen_redraw();
50extern void screen_resized();
51
52#endif /* __SCREENHACK_H__ */