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: 70fefe33df
  virgl: expose function to set output callback

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Gert Wollny 6 years ago committed by Dave Airlie
parent ec56cc4a5d
commit 70ae2c3894
  1. 4
      src/virglrenderer.h

@ -27,8 +27,6 @@
#ifndef VIRGLRENDERER_H
#define VIRGLRENDERER_H
#include "vrend_debug.h"
#include <stdint.h>
#include <stdbool.h>
#include <stdarg.h>
@ -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);

Loading…
Cancel
Save