1#ifndef XLIB_SW_WINSYS_H
2#define XLIB_SW_WINSYS_H
3
4#include "state_tracker/sw_winsys.h"
5#include <X11/Xlib.h>
6
7
8struct pipe_screen;
9struct pipe_resource;
10
11/* This is what the xlib software winsys expects to find in the
12 * "private" field of flush_frontbuffers().
13 *
14 * Xlib-based state trackers somehow need to know this.
15 */
16struct xlib_drawable {
17   Visual *visual;
18   int depth;
19   Drawable drawable;
20};
21
22
23/* This is the public interface to the ws/xlib module.  Why isn't it
24 * being defined in that directory?
25 */
26struct sw_winsys *xlib_create_sw_winsys( Display *display );
27
28
29#endif
30