14456fccdSmrg/* 24456fccdSmrg * 34456fccdSmrg * Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc. 44456fccdSmrg * 54456fccdSmrg * Permission to use, copy, modify, distribute, and sell this software and its 64456fccdSmrg * documentation for any purpose is hereby granted without fee, provided that 74456fccdSmrg * the above copyright notice appear in all copies and that both that 84456fccdSmrg * copyright notice and this permission notice appear in supporting 94456fccdSmrg * documentation, and that the name of Keith Packard not be used in 104456fccdSmrg * advertising or publicity pertaining to distribution of the software without 114456fccdSmrg * specific, written prior permission. Keith Packard makes no 124456fccdSmrg * representations about the suitability of this software for any purpose. It 134456fccdSmrg * is provided "as is" without express or implied warranty. 144456fccdSmrg * 154456fccdSmrg * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 164456fccdSmrg * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 174456fccdSmrg * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 184456fccdSmrg * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 194456fccdSmrg * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 204456fccdSmrg * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 214456fccdSmrg * PERFORMANCE OF THIS SOFTWARE. 224456fccdSmrg */ 234456fccdSmrg 244456fccdSmrg#ifndef _XFIXESINT_H_ 254456fccdSmrg#define _XFIXESINT_H_ 264456fccdSmrg 274456fccdSmrg#include <stdio.h> 284456fccdSmrg#include <X11/Xlib.h> 294456fccdSmrg#include <X11/Xlibint.h> 304456fccdSmrg#include <X11/Xutil.h> 314456fccdSmrg#include "Xfixes.h" 324456fccdSmrg#include <X11/extensions/xfixesproto.h> 334456fccdSmrg 344456fccdSmrgtypedef struct _XFixesExtDisplayInfo { 354456fccdSmrg struct _XFixesExtDisplayInfo *next; /* keep a linked list */ 364456fccdSmrg Display *display; /* which display this is */ 374456fccdSmrg XExtCodes *codes; /* the extension protocol codes */ 384456fccdSmrg int major_version; /* -1 means we don't know */ 394456fccdSmrg int minor_version; /* -1 means we don't know */ 404456fccdSmrg} XFixesExtDisplayInfo; 414456fccdSmrg 424456fccdSmrg/* replaces XExtensionInfo */ 434456fccdSmrgtypedef struct _XFixesExtInfo { 444456fccdSmrg XFixesExtDisplayInfo *head; /* start of the list */ 454456fccdSmrg XFixesExtDisplayInfo *cur; /* most recently used */ 464456fccdSmrg int ndisplays; /* number of displays */ 474456fccdSmrg} XFixesExtInfo; 484456fccdSmrg 494456fccdSmrgextern XFixesExtInfo XFixesExtensionInfo; 504456fccdSmrgextern char XFixesExtensionName[]; 514456fccdSmrg 524456fccdSmrgXFixesExtDisplayInfo * 534456fccdSmrgXFixesFindDisplay (Display *dpy); 544456fccdSmrg 554456fccdSmrg#define XFixesHasExtension(i) ((i) && ((i)->codes)) 564456fccdSmrg 574456fccdSmrg#define XFixesCheckExtension(dpy,i,val) \ 58a7e741d5Smrg do { if (!XFixesHasExtension(i)) { return val; } } while(0) 594456fccdSmrg 604456fccdSmrg#define XFixesSimpleCheckExtension(dpy,i) \ 61a7e741d5Smrg do { if (!XFixesHasExtension(i)) { return; } } while(0) 624456fccdSmrg 634456fccdSmrg#endif /* _XFIXESINT_H_ */ 64