1/***********************************************************
2Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
3and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
4
5                        All Rights Reserved
6
7Permission to use, copy, modify, and distribute this software and its
8documentation for any purpose and without fee is hereby granted,
9provided that the above copyright notice appear in all copies and that
10both that copyright notice and this permission notice appear in
11supporting documentation, and that the names of Digital or MIT not be
12used in advertising or publicity pertaining to distribution of the
13software without specific, written prior permission.
14
15DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
16ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
17DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
18ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
19WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
20ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
21SOFTWARE.
22
23******************************************************************/
24
25#ifndef XVLIBINT_H
26#define XVLIBINT_H
27/*
28** File:
29**
30**   Xvlibint.h --- Xv library internal header file
31**
32** Author:
33**
34**   David Carver (Digital Workstation Engineering/Project Athena)
35**
36** Revisions:
37**
38**   01.24.91 Carver
39**     - version 1.4 upgrade
40**
41*/
42
43#include <X11/Xlibint.h>
44#include <X11/extensions/Xvproto.h>
45#include <X11/extensions/Xvlib.h>
46
47/* names in Xvproto.h don't match the expectation of Xlib's GetReq* macros,
48   so we have to provide our own implementation */
49
50#define XvGetReq(name, req) \
51    req = (xv##name##Req *) _XGetRequest(                               \
52        dpy, (CARD8) info->codes->major_opcode, SIZEOF(xv##name##Req)); \
53    req->xvReqType = xv_##name
54
55#endif /* XVLIBINT_H */
56