117ca54c3Smrg/* 217ca54c3Smrg * Copyright © 2003 Keith Packard 317ca54c3Smrg * 417ca54c3Smrg * Permission to use, copy, modify, distribute, and sell this software and its 517ca54c3Smrg * documentation for any purpose is hereby granted without fee, provided that 617ca54c3Smrg * the above copyright notice appear in all copies and that both that 717ca54c3Smrg * copyright notice and this permission notice appear in supporting 817ca54c3Smrg * documentation, and that the name of Keith Packard not be used in 917ca54c3Smrg * advertising or publicity pertaining to distribution of the software without 1017ca54c3Smrg * specific, written prior permission. Keith Packard makes no 1117ca54c3Smrg * representations about the suitability of this software for any purpose. It 1217ca54c3Smrg * is provided "as is" without express or implied warranty. 1317ca54c3Smrg * 1417ca54c3Smrg * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 1517ca54c3Smrg * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 1617ca54c3Smrg * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 1717ca54c3Smrg * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 1817ca54c3Smrg * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 1917ca54c3Smrg * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 2017ca54c3Smrg * PERFORMANCE OF THIS SOFTWARE. 2117ca54c3Smrg */ 2217ca54c3Smrg 2317ca54c3Smrg#ifndef _DAMAGEWIRE_H_ 2417ca54c3Smrg#define _DAMAGEWIRE_H_ 2517ca54c3Smrg 2617ca54c3Smrg#define DAMAGE_NAME "DAMAGE" 2717ca54c3Smrg#define DAMAGE_MAJOR 1 2817ca54c3Smrg#define DAMAGE_MINOR 1 2917ca54c3Smrg 3017ca54c3Smrg/************* Version 1 ****************/ 3117ca54c3Smrg 3217ca54c3Smrg/* Constants */ 3317ca54c3Smrg#define XDamageReportRawRectangles 0 3417ca54c3Smrg#define XDamageReportDeltaRectangles 1 3517ca54c3Smrg#define XDamageReportBoundingBox 2 3617ca54c3Smrg#define XDamageReportNonEmpty 3 3717ca54c3Smrg 3817ca54c3Smrg/* Requests */ 3917ca54c3Smrg#define X_DamageQueryVersion 0 4017ca54c3Smrg#define X_DamageCreate 1 4117ca54c3Smrg#define X_DamageDestroy 2 4217ca54c3Smrg#define X_DamageSubtract 3 4317ca54c3Smrg#define X_DamageAdd 4 4417ca54c3Smrg 4517ca54c3Smrg#define XDamageNumberRequests (X_DamageAdd + 1) 4617ca54c3Smrg 4717ca54c3Smrg/* Events */ 4817ca54c3Smrg#define XDamageNotify 0 4917ca54c3Smrg 5017ca54c3Smrg#define XDamageNumberEvents (XDamageNotify + 1) 5117ca54c3Smrg 5217ca54c3Smrg/* Errors */ 5317ca54c3Smrg#define BadDamage 0 5417ca54c3Smrg#define XDamageNumberErrors (BadDamage + 1) 5517ca54c3Smrg 5617ca54c3Smrg#endif /* _DAMAGEWIRE_H_ */ 57