4b33080f1a65ea79220bb888d5f94c1c3f90bd3b
[profile/ivi/mesa.git] / src / egl / main / eglx.c
1
2 /**
3  * X-specific EGL code.
4  *
5  * Any glue code needed to make EGL work with X is placed in this file.
6  */
7
8
9 #include <assert.h>
10 #include <stdio.h>
11 #include <X11/Xlib.h>
12 #include "eglx.h"
13
14
15
16 /**
17  * Given an X Display ptr (at dpy->Xdpy) try to determine the appropriate
18  * device driver.  Return its name.
19  */
20 const char *
21 _xeglChooseDriver(_EGLDisplay *dpy)
22 {
23 #ifdef _EGL_PLATFORM_X
24    _XPrivDisplay xdpy = (_XPrivDisplay) dpy->Xdpy;
25
26    assert(dpy);
27    assert(dpy->Xdpy);
28
29    printf("%s\n", xdpy->display_name);
30
31    return "foo"; /* XXX todo */
32 #else
33    return NULL;
34 #endif
35 }
36
37