blob: da109a1d5ddce1f5e9b5cbaa8b0c97cff05d83c8 [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001/*
2 * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Sun designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Sun in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22 * CA 95054 USA or visit www.sun.com if you need additional information or
23 * have any questions.
24 */
25
26/* platform-dependent definitions */
27
28#ifndef SPLASHSCREEN_CONFIG_H
29#define SPLASHSCREEN_CONFIG_H
30
31#include <X11/Xlib.h>
32#include <X11/Xutil.h>
33#include <X11/extensions/shape.h>
34#include <sys/types.h>
35#include <sys/unistd.h>
36#include <pthread.h>
37#include <signal.h>
38#include <inttypes.h>
39#include <stdlib.h>
40#include <string.h>
41#include <stdio.h>
42
43typedef uint32_t rgbquad_t;
44typedef uint16_t word_t;
45typedef uint8_t byte_t;
46typedef XRectangle RECT_T;
47
48#define RECT_EQ_X(r1,r2) ((r1).x==(r2).x && (r1).width==(r2).width)
49#define RECT_SET(r,xx,yy,ww,hh) (r).x=(xx), (r).y=(yy); (r).width=(ww); \
50 (r).height=(hh);
51#define RECT_INC_HEIGHT(r) (r).height++;
52
53#define SPLASHCTL_QUIT 'Q'
54#define SPLASHCTL_UPDATE 'U'
55#define SPLASHCTL_RECONFIGURE 'R'
56
57#define INLINE static
58
59#define SPLASHEXPORT
60
61#endif