From 7710f2b927ec8e3c631f72d66d494b523377b48e Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Fri, 18 Jan 2013 21:43:40 -0800 Subject: Xext: Move MIT-SHM 'ShmDesc' to shmint.h This data structure is required to use shared memory objects in any extension. That includes the Xv extension, which (before this patch) duplicated the definition of this structure in its own code. Signed-off-by: Keith Packard Reviewed-by: Adam Jackson --- Xext/shmint.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Xext/shmint.h') diff --git a/Xext/shmint.h b/Xext/shmint.h index fa6941c90..9002ce501 100644 --- a/Xext/shmint.h +++ b/Xext/shmint.h @@ -56,6 +56,15 @@ typedef struct _ShmFuncs { void (*PutImage) (XSHM_PUT_IMAGE_ARGS); } ShmFuncs, *ShmFuncsPtr; +typedef struct _ShmDesc { + struct _ShmDesc *next; + int shmid; + int refcnt; + char *addr; + Bool writable; + unsigned long size; +} ShmDescRec, *ShmDescPtr; + extern _X_EXPORT void ShmRegisterFuncs(ScreenPtr pScreen, ShmFuncsPtr funcs); -- cgit v1.2.3