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 80fa49b7ab553348cdf3407e58754a572ef9b5c5..92c529911c10e7a9ff917f369bb4b7b8e063e532 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 af028eaf22ffc77c2361cb2d25709e22171b307c..1eae6f8034ceb5b16c8f458677c32ec151a23e61 100644 (file)
@@ -45,6 +45,9 @@ struct _egl_driver
 extern _EGLDriver *_eglMain(_EGLDisplay *dpy, const char *args);
 
 
+extern const char *
+_eglChooseDRMDriver(int card);
+
 extern const char *
 _eglChooseDriver(_EGLDisplay *dpy);