revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-hosted / hidd / x11 / x11_xshm.h
blob4d882eb09b7b4322a8423dafeb073d4ddc394614
1 /*
2 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #ifndef X11HIDD_XSHM_H
7 #define X11HIDD_XSHM_H
9 #include <aros/config.h>
11 #if USE_XSHM
13 #define XSHM_MEMSIZE 5000000 /* We allocate 5M for dumping images to X */
15 void *init_shared_mem(Display *display);
17 void cleanup_shared_mem(Display *display, void *meminfo);
19 XImage *create_xshm_ximage(Display *display, Visual *visual, int depth,
20 int format, int width, int height, void *xshminfo);
22 void put_xshm_ximage(Display *display, Drawable d, GC gc, XImage *ximage,
23 int xsrc, int ysrc, int xdest, int ydest,
24 int width, int height, Bool send_event);
26 int get_xshm_ximage(Display *display, Drawable d, XImage *image, int x, int y);
28 void destroy_xshm_ximage(XImage *image);
30 #endif /* USE_XSHM */
32 #endif /* X11HIDD_XSHM_H */