From 70ae2c3894cff1954d98f6c384170483d23aeb2d Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Wed, 6 Feb 2019 14:37:49 +0100 Subject: [PATCH] vrenderer: avoid haing to include vrend_debug.h in virglerenderer.h vrend_debug.h is not installed but we need the typedef for the debug callback. Fixes: 70fefe33df3cd39239f16cd626094c391c9a82b4 virgl: expose function to set output callback Signed-off-by: Gert Wollny Signed-off-by: Dave Airlie --- src/virglrenderer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/virglrenderer.h b/src/virglrenderer.h index ffe59db..4293941 100644 --- a/src/virglrenderer.h +++ b/src/virglrenderer.h @@ -27,8 +27,6 @@ #ifndef VIRGLRENDERER_H #define VIRGLRENDERER_H -#include "vrend_debug.h" - #include #include #include @@ -113,6 +111,8 @@ struct virgl_renderer_resource_create_args { }; /* new API */ +/* This typedef must be kept in sync with vrend_debug.h */ +typedef void (*virgl_debug_callback_type)(const char *fmt, va_list ap); VIRGL_EXPORT int virgl_renderer_resource_create(struct virgl_renderer_resource_create_args *args, struct iovec *iov, uint32_t num_iovs); VIRGL_EXPORT int virgl_renderer_resource_import_eglimage(struct virgl_renderer_resource_create_args *args, void *image);