|
Packit |
1f38fa |
/*
|
|
Packit |
1f38fa |
* Copyright © 2003 Keith Packard
|
|
Packit |
1f38fa |
*
|
|
Packit |
1f38fa |
* Permission to use, copy, modify, distribute, and sell this software and its
|
|
Packit |
1f38fa |
* documentation for any purpose is hereby granted without fee, provided that
|
|
Packit |
1f38fa |
* the above copyright notice appear in all copies and that both that
|
|
Packit |
1f38fa |
* copyright notice and this permission notice appear in supporting
|
|
Packit |
1f38fa |
* documentation, and that the name of Keith Packard not be used in
|
|
Packit |
1f38fa |
* advertising or publicity pertaining to distribution of the software without
|
|
Packit |
1f38fa |
* specific, written prior permission. Keith Packard makes no
|
|
Packit |
1f38fa |
* representations about the suitability of this software for any purpose. It
|
|
Packit |
1f38fa |
* is provided "as is" without express or implied warranty.
|
|
Packit |
1f38fa |
*
|
|
Packit |
1f38fa |
* KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
|
Packit |
1f38fa |
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
|
Packit |
1f38fa |
* EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
|
Packit |
1f38fa |
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
|
Packit |
1f38fa |
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
Packit |
1f38fa |
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
Packit |
1f38fa |
* PERFORMANCE OF THIS SOFTWARE.
|
|
Packit |
1f38fa |
*/
|
|
Packit |
1f38fa |
|
|
Packit |
1f38fa |
#ifndef _XDAMAGEINT_H_
|
|
Packit |
1f38fa |
#define _XDAMAGEINT_H_
|
|
Packit |
1f38fa |
|
|
Packit |
1f38fa |
#include <stdio.h>
|
|
Packit |
1f38fa |
#include <X11/Xlib.h>
|
|
Packit |
1f38fa |
#include <X11/Xlibint.h>
|
|
Packit |
1f38fa |
#include <X11/Xutil.h>
|
|
Packit |
1f38fa |
#include <X11/extensions/damageproto.h>
|
|
Packit |
1f38fa |
#include "Xdamage.h"
|
|
Packit |
1f38fa |
|
|
Packit |
1f38fa |
typedef struct _XDamageExtDisplayInfo {
|
|
Packit |
1f38fa |
struct _XDamageExtDisplayInfo *next; /* keep a linked list */
|
|
Packit |
1f38fa |
Display *display; /* which display this is */
|
|
Packit |
1f38fa |
XExtCodes *codes; /* the extension protocol codes */
|
|
Packit |
1f38fa |
int major_version; /* -1 means we don't know */
|
|
Packit |
1f38fa |
int minor_version; /* -1 means we don't know */
|
|
Packit |
1f38fa |
} XDamageExtDisplayInfo;
|
|
Packit |
1f38fa |
|
|
Packit |
1f38fa |
/* replaces XExtensionInfo */
|
|
Packit |
1f38fa |
typedef struct _XDamageExtInfo {
|
|
Packit |
1f38fa |
XDamageExtDisplayInfo *head; /* start of the list */
|
|
Packit |
1f38fa |
XDamageExtDisplayInfo *cur; /* most recently used */
|
|
Packit |
1f38fa |
int ndisplays; /* number of displays */
|
|
Packit |
1f38fa |
} XDamageExtInfo;
|
|
Packit |
1f38fa |
|
|
Packit |
1f38fa |
extern XDamageExtInfo XDamageExtensionInfo;
|
|
Packit |
1f38fa |
extern const char XDamageExtensionName[];
|
|
Packit |
1f38fa |
|
|
Packit |
1f38fa |
XDamageExtDisplayInfo *
|
|
Packit |
1f38fa |
XDamageFindDisplay (Display *dpy);
|
|
Packit |
1f38fa |
|
|
Packit |
1f38fa |
#define XDamageHasExtension(i) ((i) && ((i)->codes))
|
|
Packit |
1f38fa |
|
|
Packit |
1f38fa |
#define XDamageCheckExtension(dpy,i,val) \
|
|
Packit |
1f38fa |
if (!XDamageHasExtension(i)) { return val; }
|
|
Packit |
1f38fa |
|
|
Packit |
1f38fa |
#define XDamageSimpleCheckExtension(dpy,i) \
|
|
Packit |
1f38fa |
if (!XDamageHasExtension(i)) { return; }
|
|
Packit |
1f38fa |
|
|
Packit |
1f38fa |
#endif /* _XDAMAGEINT_H_ */
|