damageextint.h revision 45e9809aff7304721fddb95654901b32195c9c7a
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami * Copyright © 2002 Keith Packard
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami * Permission to use, copy, modify, distribute, and sell this software and its
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami * documentation for any purpose is hereby granted without fee, provided that
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami * the above copyright notice appear in all copies and that both that
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami * copyright notice and this permission notice appear in supporting
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami * documentation, and that the name of Keith Packard not be used in
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami * advertising or publicity pertaining to distribution of the software without
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami * specific, written prior permission. Keith Packard makes no
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami * representations about the suitability of this software for any purpose. It
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami * is provided "as is" without express or implied warranty.
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami * PERFORMANCE OF THIS SOFTWARE.
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahramitypedef struct _DamageClient {
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami#define GetDamageClient(pClient) ((DamageClientPtr)dixLookupPrivate(&(pClient)->devPrivates, DamageClientPrivateKey))
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahramitypedef struct _DamageExt {
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami#define VERIFY_DAMAGEEXT(pDamageExt, rid, client, mode) { \
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami int rc = dixLookupResourceByType((pointer *)&(pDamageExt), rid, \
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami return (rc == BadValue) ? DamageErrorBase + BadDamage : rc; \
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali BahramiDamageExtSetCritical (ClientPtr pClient, Bool critical);
75ce41a57ff334bd8fe2cb9ed51eea835892f944Ali Bahrami#endif /* _DAMAGEEXTINT_H_ */