1
/***********************************************************
2
Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
3
and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
7
Permission to use, copy, modify, and distribute this software and its
8
documentation for any purpose and without fee is hereby granted,
9
provided that the above copyright notice appear in all copies and that
10
both that copyright notice and this permission notice appear in
11
supporting documentation, and that the names of Digital or MIT not be
12
used in advertising or publicity pertaining to distribution of the
13
software without specific, written prior permission.
15
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
16
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
17
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
18
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
19
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
20
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
23
******************************************************************/
24
/* $XFree86: xc/lib/Xv/Xvlibint.h,v 1.6 2002/10/16 00:37:33 dawes Exp $ */
31
** Xvlibint.h --- Xv library internal header file
35
** David Carver (Digital Workstation Engineering/Project Athena)
40
** - version 1.4 upgrade
46
#include <X11/Xlibint.h>
47
#include <X11/extensions/Xvproto.h>
48
#include <X11/extensions/Xvlib.h>
51
#define XvGetReq(name, req) \
53
if ((dpy->bufptr + SIZEOF(xv##name##Req)) > dpy->bufmax)\
55
req = (xv##name##Req *)(dpy->last_req = dpy->bufptr);\
56
req->reqType = info->codes->major_opcode;\
57
req->xvReqType = xv_##name; \
58
req->length = (SIZEOF(xv##name##Req))>>2;\
59
dpy->bufptr += SIZEOF(xv##name##Req);\
62
#else /* non-ANSI C uses empty comment instead of "##" for token concatenation */
63
#define XvGetReq(name, req) \
65
if ((dpy->bufptr + SIZEOF(xv/**/name/**/Req)) > dpy->bufmax)\
67
req = (xv/**/name/**/Req *)(dpy->last_req = dpy->bufptr);\
68
req->reqType = info->codes->major_opcode;\
69
req->xvReqType = xv_/**/name;\
70
req->length = (SIZEOF(xv/**/name/**/Req))>>2;\
71
dpy->bufptr += SIZEOF(xv/**/name/**/Req);\
76
#endif /* XVLIBINT_H */