X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=utils%2Fxshm.h;fp=utils%2Fxshm.h;h=54e492e28e4cdd8e973ec9b9f0d8dedf208fd4c5;hb=ce3185de9d9705e259f2b60dd4b5509007fa17d4;hp=0000000000000000000000000000000000000000;hpb=481b95e2617b69e6fd4444432747d7e1e0c3dc85;p=xscreensaver diff --git a/utils/xshm.h b/utils/xshm.h new file mode 100644 index 00000000..54e492e2 --- /dev/null +++ b/utils/xshm.h @@ -0,0 +1,35 @@ +/* xscreensaver, Copyright (c) 1993, 1994, 1995, 1996, 1997, 1998 + * by Jamie Zawinski + * + * Permission to use, copy, modify, distribute, and sell this software and its + * documentation for any purpose is hereby granted without fee, provided that + * the above copyright notice appear in all copies and that both that + * copyright notice and this permission notice appear in supporting + * documentation. No representations are made about the suitability of this + * software for any purpose. It is provided "as is" without express or + * implied warranty. + */ + +/* The MIT-SHM (Shared Memory) extension is pretty tricky to use. + This file contains the common boiler-plate for creating a shared + XImage structure, and for making sure that the shared memory segments + get allocated and shut down cleanly. + */ + +#ifndef __XSCREENSAVER_XSHM_H__ + +#ifdef HAVE_XSHM_EXTENSION + +# include +# include +# include + +extern XImage *create_xshm_image (Display *dpy, Visual *visual, + unsigned int depth, + int format, char *data, + XShmSegmentInfo *shm_info, + unsigned int width, unsigned int height); + +#endif /* HAVE_XSHM_EXTENSION */ + +#endif /* __XSCREENSAVER_XSHM_H__ */