1f33d31a3Smrg/*
2f33d31a3Smrg
3f33d31a3SmrgCopyright 1993, 1998  The Open Group
4f33d31a3Smrg
5f33d31a3SmrgPermission to use, copy, modify, distribute, and sell this software and its
6f33d31a3Smrgdocumentation for any purpose is hereby granted without fee, provided that
7f33d31a3Smrgthe above copyright notice appear in all copies and that both that
8f33d31a3Smrgcopyright notice and this permission notice appear in supporting
9f33d31a3Smrgdocumentation.
10f33d31a3Smrg
11f33d31a3SmrgThe above copyright notice and this permission notice shall be included
12f33d31a3Smrgin all copies or substantial portions of the Software.
13f33d31a3Smrg
14f33d31a3SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
15f33d31a3SmrgOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16f33d31a3SmrgMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17f33d31a3SmrgIN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
18f33d31a3SmrgOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19f33d31a3SmrgARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20f33d31a3SmrgOTHER DEALINGS IN THE SOFTWARE.
21f33d31a3Smrg
22f33d31a3SmrgExcept as contained in this notice, the name of The Open Group shall
23f33d31a3Smrgnot be used in advertising or otherwise to promote the sale, use or
24f33d31a3Smrgother dealings in this Software without prior written authorization
25f33d31a3Smrgfrom The Open Group.
26f33d31a3Smrg
27f33d31a3Smrg*/
28f33d31a3Smrg
29f33d31a3Smrg/*
30f33d31a3Smrg * Just_display.h: This file contains the definitions needed to use the
31f33d31a3Smrg *                 functions in just_display.c.  It also declares the global
32f33d31a3Smrg *                 variables dpy, screen, and program_name which are needed to
33f33d31a3Smrg *                 use just_display.c.
34f33d31a3Smrg *
35f33d31a3Smrg * Written by Mark Lillibridge.   Last updated 7/1/87
36f33d31a3Smrg *
37f33d31a3Smrg * Send bugs, etc. to chariot@athena.mit.edu.
38f33d31a3Smrg */
39f33d31a3Smrg
40f33d31a3Smrg#include <X11/Xfuncproto.h>
41f33d31a3Smrg
42f33d31a3Smrgextern const char *program_name;             /* Name of this program */
43f33d31a3Smrgextern Display *dpy;                         /* The current display */
44f33d31a3Smrgextern int screen;                           /* The current screen */
45f33d31a3Smrg
46f33d31a3Smrg#define INIT_NAME program_name=argv[0]        /* use this in main to setup
47f33d31a3Smrg                                                 program_name */
48f33d31a3Smrg
49f33d31a3Smrgvoid Setup_Display_And_Screen (int *, char **);
50f33d31a3Smrgvoid Usage (void) _X_NORETURN;
51f33d31a3Smrg
52f33d31a3Smrg#define X_USAGE "[host:display]"              /* X arguments handled by
53f33d31a3Smrg						 Get_Display_Name */
54f33d31a3Smrg
55f33d31a3Smrg/*
56f33d31a3Smrg * Other_stuff.h: Definitions of routines in other_stuff.
57f33d31a3Smrg *
58f33d31a3Smrg * Written by Mark Lillibridge.   Last updated 7/1/87
59f33d31a3Smrg *
60f33d31a3Smrg * Send bugs, etc. to chariot@athena.mit.edu.
61f33d31a3Smrg */
62f33d31a3Smrg
638b5ec993SmrgWindow Select_Window (Display *, int descend);
648b5ec993SmrgWindow Get_Window_Under_Cursor (Display *, int descend); /*added by Daniel Forchheimer for transset-df*/
65f33d31a3SmrgWindow Window_With_Name (Display *, Window, char *);
668b5ec993SmrgWindow Window_With_Name_Regex (Display *, Window, const char *); /*added by Daniel Forchheimer for transset-df*/
67f33d31a3Smrgvoid Fatal_Error (const char *, ...) _X_NORETURN _X_ATTRIBUTE_PRINTF(1,2);
68