1 | /*
|
---|
2 | * $Id: damagewire.h 43555 2009-03-02 10:37:38Z michael $
|
---|
3 | *
|
---|
4 | * Copyright © 2003 Keith Packard
|
---|
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, and that the name of Keith Packard not be used in
|
---|
11 | * advertising or publicity pertaining to distribution of the software without
|
---|
12 | * specific, written prior permission. Keith Packard makes no
|
---|
13 | * representations about the suitability of this software for any purpose. It
|
---|
14 | * is provided "as is" without express or implied warranty.
|
---|
15 | *
|
---|
16 | * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
---|
17 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
---|
18 | * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
---|
19 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
---|
20 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
---|
21 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
---|
22 | * PERFORMANCE OF THIS SOFTWARE.
|
---|
23 | */
|
---|
24 |
|
---|
25 | #ifndef _DAMAGEWIRE_H_
|
---|
26 | #define _DAMAGEWIRE_H_
|
---|
27 |
|
---|
28 | #define DAMAGE_NAME "DAMAGE"
|
---|
29 | #define DAMAGE_MAJOR 1
|
---|
30 | #define DAMAGE_MINOR 0
|
---|
31 |
|
---|
32 | /************* Version 1 ****************/
|
---|
33 |
|
---|
34 | /* Constants */
|
---|
35 | #define XDamageReportRawRectangles 0
|
---|
36 | #define XDamageReportDeltaRectangles 1
|
---|
37 | #define XDamageReportBoundingBox 2
|
---|
38 | #define XDamageReportNonEmpty 3
|
---|
39 |
|
---|
40 | /* Requests */
|
---|
41 | #define X_DamageQueryVersion 0
|
---|
42 | #define X_DamageCreate 1
|
---|
43 | #define X_DamageDestroy 2
|
---|
44 | #define X_DamageSubtract 3
|
---|
45 |
|
---|
46 | #define XDamageNumberRequests (X_DamageSubtract + 1)
|
---|
47 |
|
---|
48 | /* Events */
|
---|
49 | #define XDamageNotify 0
|
---|
50 |
|
---|
51 | #define XDamageNumberEvents (XDamageNotify + 1)
|
---|
52 |
|
---|
53 | /* Errors */
|
---|
54 | #define BadDamage 0
|
---|
55 | #define XDamageNumberErrors (BadDamage + 1)
|
---|
56 |
|
---|
57 | #endif /* _DAMAGEWIRE_H_ */
|
---|