summaryrefslogtreecommitdiff
path: root/shmstr.h
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:48:43 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-14 16:48:43 +0000
commit343e78e15048e6a25791449bfc7566c07ccddf28 (patch)
tree320aaabfd01f23459cceab375ab853f0b6a7467a /shmstr.h
parent9a41c9c6452753ac1911a585e59982e8e5186c6b (diff)
XFree86 4.3.0.1
Diffstat (limited to 'shmstr.h')
-rw-r--r--shmstr.h35
1 files changed, 33 insertions, 2 deletions
diff --git a/shmstr.h b/shmstr.h
index 4300435..a445413 100644
--- a/shmstr.h
+++ b/shmstr.h
@@ -1,3 +1,4 @@
+/* $XFree86: xc/include/extensions/shmstr.h,v 3.3 2001/12/14 19:53:29 dawes Exp $ */
/************************************************************
Copyright 1989, 1998 The Open Group
@@ -45,9 +46,39 @@ in this Software without prior written authorization from The Open Group.
#define SHM_MINOR_VERSION 1
#ifdef _XSHM_SERVER_
+#if NeedFunctionPrototypes
+#define XSHM_PUT_IMAGE_ARGS \
+ DrawablePtr /* dst */, \
+ GCPtr /* pGC */, \
+ int /* depth */, \
+ unsigned int /* format */, \
+ int /* w */, \
+ int /* h */, \
+ int /* sx */, \
+ int /* sy */, \
+ int /* sw */, \
+ int /* sh */, \
+ int /* dx */, \
+ int /* dy */, \
+ char * /* data */
+#else
+#define XSHM_PUT_IMAGE_ARGS /* nothing */
+#endif
+
+#if NeedFunctionPrototypes
+#define XSHM_CREATE_PIXMAP_ARGS \
+ ScreenPtr /* pScreen */, \
+ int /* width */, \
+ int /* height */, \
+ int /* depth */, \
+ char * /* addr */
+#else
+#define XSHM_CREATE_PIXMAP_ARGS /* nothing */
+#endif
+
typedef struct _ShmFuncs {
- PixmapPtr (* CreatePixmap)();
- void (* PutImage)();
+ PixmapPtr (* CreatePixmap)(XSHM_CREATE_PIXMAP_ARGS);
+ void (* PutImage)(XSHM_PUT_IMAGE_ARGS);
} ShmFuncs, *ShmFuncsPtr;
#endif