2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: dtscreen.h /main/5 1996/05/13 16:54:19 rswiston $ */
27 * (c) Copyright 1993, 1994 Hewlett-Packard Company *
28 * (c) Copyright 1993, 1994 International Business Machines Corp. *
29 * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
30 * (c) Copyright 1993, 1994 Novell, Inc. *
34 * xlock.h - external interfaces for new modes and SYSV OS defines.
36 * Copyright (c) 1991 by Patrick J. Naughton.
41 #include <X11/Xutil.h>
49 int npixels; /* number of valid entries in pixels */
50 u_long pixels[NUMCOLORS]; /* pixel values in the colormap */
54 Window w; /* window id */
55 GC gc; /* graphics context for animation */
56 perscreen *perscreen; /* screen info for this window */
57 void *data; /* mode data */
62 extern char *ProgramName;
65 extern float saturation;
68 extern int batchcount;
69 extern int reinittime;
73 extern void (*callback) ();
74 extern void (*init) ();
76 extern void GetResources();
77 extern void hsbramp();
79 extern long seconds();
81 extern void hide_hft_ring();
82 extern void unhide_hft_ring();
85 /* System V Release 4 redefinitions of BSD functions and structures */
87 #if defined (SYSV) || defined (SVR4)
91 #define pw_passwd sp_pwdp
92 #if defined(AIXV3) || defined(hpux)
109 #define getpwnam getspnam
111 #if !(defined(_AIX) || defined(hpux))
112 # define srandom srand
114 # define MAXRAND (32767.0)
116 # define MAXRAND (2147483648.0)
121 #define MAXRAND (2147483648.0)