Remove unused headers and stop marking driDriverAPI as PUBLIC.
#include "pipe/p_context.h"
#include "state_tracker/st_context.h"
#include "state_tracker/st_public.h"
+#include "state_tracker/dri1_api.h"
#include "dri_screen.h"
#include "dri_context.h"
#ifndef DRI1_H
#define DRI1_H
-#include "state_tracker/dri1_api.h"
+#include "dri_context.h"
+#include "dri_drawable.h"
#include "dri_util.h"
extern struct dri1_api *__dri1_api_hooks;
*/
#include "dri_screen.h"
-
#include "dri_drawable.h"
-#include "state_tracker/drm_api.h"
-#include "state_tracker/dri1_api.h"
-#include "state_tracker/st_public.h"
-#include "pipe/p_context.h"
-
#include "dri_context.h"
#include "dri1.h"
+#include "state_tracker/st_public.h"
+#include "pipe/p_context.h"
#include "util/u_memory.h"
GLboolean
#include "dri_drawable.h"
#include "dri1.h"
-#include "pipe/p_context.h"
-#include "pipe/p_screen.h"
#include "main/mtypes.h"
#include "main/renderbuffer.h"
-#include "state_tracker/drm_api.h"
-#include "state_tracker/dri1_api.h"
#include "state_tracker/st_context.h"
#include "state_tracker/st_public.h"
#include "state_tracker/st_cb_fbo.h"
+#include "state_tracker/drm_api.h"
+#include "pipe/p_screen.h"
#include "util/u_format.h"
#include "util/u_memory.h"
-#include "util/u_rect.h"
#include "util/u_inlines.h"
static struct pipe_surface *
#include "pipe/p_screen.h"
#include "pipe/p_format.h"
#include "state_tracker/drm_api.h"
-#include "state_tracker/dri1_api.h"
#include "util/u_debug.h"
sPriv->private = NULL;
}
-PUBLIC const struct __DriverAPIRec driDriverAPI = {
+const struct __DriverAPIRec driDriverAPI = {
.DestroyScreen = dri_destroy_screen,
.CreateContext = dri_create_context,
.DestroyContext = dri_destroy_context,