1 /* $Xorg: dsimple.h,v 1.4 2001/02/09 02:05:56 xorgcvs Exp $ */
2 /*
3 
4 Copyright 1993, 1998  The Open Group
5 
6 Permission to use, copy, modify, distribute, and sell this software and its
7 documentation for any purpose is hereby granted without fee, provided that
8 the above copyright notice appear in all copies and that both that
9 copyright notice and this permission notice appear in supporting
10 documentation.
11 
12 The above copyright notice and this permission notice shall be included
13 in all copies or substantial portions of the Software.
14 
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
19 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21 OTHER DEALINGS IN THE SOFTWARE.
22 
23 Except as contained in this notice, the name of The Open Group shall
24 not be used in advertising or otherwise to promote the sale, use or
25 other dealings in this Software without prior written authorization
26 from The Open Group.
27 
28 */
29 
30 /*
31  * Just_display.h: This file contains the definitions needed to use the
32  *                 functions in just_display.c.  It also declares the global
33  *                 variables dpy, screen, and program_name which are needed to
34  *                 use just_display.c.
35  *
36  * Written by Mark Lillibridge.   Last updated 7/1/87
37  *
38  * Send bugs, etc. to chariot@athena.mit.edu.
39  */
40 
41     /* Global variables used by routines in just_display.c */
42 
43 char *program_name = "unknown_program";       /* Name of this program */
44 Display *dpy;                                 /* The current display */
45 int screen;                                   /* The current screen */
46 
47 #define INIT_NAME program_name=argv[0]        /* use this in main to setup
48                                                  program_name */
49 
50     /* Declaritions for functions in just_display.c */
51 
52 void Fatal_Error();
53 char *Malloc();
54 char *Realloc();
55 char *Get_Display_Name();
56 Display *Open_Display();
57 void Setup_Display_And_Screen();
58 XFontStruct *Open_Font();
59 void Beep();
60 Pixmap ReadBitmapFile();
61 void WriteBitmapFile();
62 Window Select_Window_Args();
63 
64 #define X_USAGE "[host:display]"              /* X arguments handled by
65 						 Get_Display_Name */
66 #define SELECT_USAGE "[{-root|-id <id>|-font <font>|-name <name>}]"
67 
68 /*
69  * Other_stuff.h: Definitions of routines in other_stuff.
70  *
71  * Written by Mark Lillibridge.   Last updated 7/1/87
72  *
73  * Send bugs, etc. to chariot@athena.mit.edu.
74  */
75 
76 unsigned long Resolve_Color();
77 Pixmap Bitmap_To_Pixmap();
78 Window Select_Window();
79 void out();
80 void blip();
81 Window Window_With_Name();
82