egl: make _eglChooseDRMDriver() non-static
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 6 Jun 2008 21:10:42 +0000 (15:10 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 6 Jun 2008 21:52:47 +0000 (15:52 -0600)
src/egl/main/egldriver.c
src/egl/main/egldriver.h

index 80fa49b..92c5299 100644 (file)
@@ -39,7 +39,7 @@ static const char *SysFS = "/sys/class";
 /**
  * Given a card number, use sysfs to determine the DRI driver name.
  */
-static const char *
+const char *
 _eglChooseDRMDriver(int card)
 {
 #if 0
@@ -214,7 +214,7 @@ _eglCloseDriver(_EGLDriver *drv, EGLDisplay dpy)
    void *handle = drv->LibHandle;
    EGLBoolean b;
 
-   _eglLog(_EGL_INFO, "Closing driver");
+   _eglLog(_EGL_DEBUG, "Closing %s", drv->Name);
 
    /*
     * XXX check for currently bound context/surfaces and delete them?
index af028ea..1eae6f8 100644 (file)
@@ -46,6 +46,9 @@ extern _EGLDriver *_eglMain(_EGLDisplay *dpy, const char *args);
 
 
 extern const char *
+_eglChooseDRMDriver(int card);
+
+extern const char *
 _eglChooseDriver(_EGLDisplay *dpy);