auxiliary/vl/drm: hide internal functions
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 9 Nov 2015 11:24:35 +0000 (11:24 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 20 Nov 2015 10:58:45 +0000 (10:58 +0000)
As of last commit everyone is using the vl_screen dispatch, thus we can
hide this function from the headers and make it static.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/auxiliary/vl/vl_winsys.h
src/gallium/auxiliary/vl/vl_winsys_drm.c

index 5390f722d098221a2b658f9bb0fef9b8fd420eae..8be4692e3695205020b62c1fd053b6334dffaa8a 100644 (file)
@@ -86,7 +86,4 @@ vl_dri2_screen_create(Display *display, int screen);
 struct vl_screen *
 vl_drm_screen_create(int fd);
 
-void
-vl_drm_screen_destroy(struct vl_screen *vscreen);
-
 #endif
index b9efc9a901bf43cfac0c619d569e3779446ffb00..c96187bf1c5234f6e1f4a0dbcfa943ad7589a125 100644 (file)
 #include "util/u_memory.h"
 #include "vl/vl_winsys.h"
 
-struct vl_screen*
+static void
+vl_drm_screen_destroy(struct vl_screen *vscreen);
+
+struct vl_screen *
 vl_drm_screen_create(int fd)
 {
    struct vl_screen *vscreen;
@@ -72,7 +75,7 @@ error:
    return NULL;
 }
 
-void
+static void
 vl_drm_screen_destroy(struct vl_screen *vscreen)
 {
    assert(vscreen);