3 Copyright 1993, 1998 The Open Group
5 Permission to use, copy, modify, distribute, and sell this software and its
6 documentation for any purpose is hereby granted without fee, provided that
7 the above copyright notice appear in all copies and that both that
8 copyright notice and this permission notice appear in supporting
11 The above copyright notice and this permission notice shall be included
12 in all copies or substantial portions of the Software.
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17 IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
18 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 OTHER DEALINGS IN THE SOFTWARE.
22 Except as contained in this notice, the name of The Open Group shall
23 not be used in advertising or otherwise to promote the sale, use or
24 other dealings in this Software without prior written authorization
30 * Just_display.h: This file contains the definitions needed to use the
31 * functions in just_display.c. It also declares the global
32 * variables dpy, screen, and program_name which are needed to
35 * Written by Mark Lillibridge. Last updated 7/1/87
37 * Send bugs, etc. to chariot@athena.mit.edu.
40 #include <X11/Xfuncproto.h>
42 /* Simple helper macros */
44 #define MAX(a,b) (((a)>(b))?(a):(b))
47 #define MIN(a,b) (((a)<(b))?(a):(b))
50 /* Global variables used by routines in just_display.c */
52 extern char *program_name; /* Name of this program */
53 extern Display *dpy; /* The current display */
54 extern int screen; /* The current screen */
56 #define INIT_NAME program_name=argv[0] /* use this in main to setup
59 /* Declarations for functions in just_display.c */
61 char *Get_Display_Name(int *, char **);
62 Display *Open_Display(const char *);
63 void Setup_Display_And_Screen(int *, char **);
64 void Close_Display(void);
65 XFontStruct *Open_Font(const char *);
66 Window Select_Window_Args(int *, char **);
69 #define X_USAGE "[host:display]" /* X arguments handled by
73 * Other_stuff.h: Definitions of routines in other_stuff.
75 * Written by Mark Lillibridge. Last updated 7/1/87
77 * Send bugs, etc. to chariot@athena.mit.edu.
80 Window Select_Window(Display *, int descend);
81 Window Window_With_Name(Display *, Window, const char *);
83 void Fatal_Error(char *, ...) _X_NORETURN;