virgl: expose function to set output callback

Since this adds a new function to the library interface this also needs
a bump in the library version number.

Closes: #80

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: David Riley <davidriley@chromium.org>
Reviewed-by: Zach Reizner <zachr@chromium.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Gert Wollny 6 years ago committed by Dave Airlie
parent 32c733fa47
commit 70fefe33df
  1. 2
      src/Makefile.am
  2. 5
      src/virglrenderer.c
  3. 5
      src/virglrenderer.h

@ -51,7 +51,7 @@ endif
lib_LTLIBRARIES = libvirglrenderer.la
noinst_LTLIBRARIES = libvrend.la
GM_LDFLAGS = -Wl,-Bsymbolic -version-number 0:2 -no-undefined
GM_LDFLAGS = -Wl,-Bsymbolic -version-number 0:3 -no-undefined
libvirglrenderer_la_SOURCES = virglrenderer.c
libvirglrenderer_ladir = $(libdir)

@ -391,3 +391,8 @@ int virgl_renderer_get_poll_fd(void)
{
return vrend_renderer_get_poll_fd();
}
virgl_debug_callback_type virgl_set_debug_callback(virgl_debug_callback_type cb)
{
return vrend_set_debug_callback(cb);
}

@ -27,8 +27,11 @@
#ifndef VIRGLRENDERER_H
#define VIRGLRENDERER_H
#include "vrend_debug.h"
#include <stdint.h>
#include <stdbool.h>
#include <stdarg.h>
struct virgl_box;
struct iovec;
@ -159,6 +162,8 @@ VIRGL_EXPORT void virgl_renderer_force_ctx_0(void);
VIRGL_EXPORT void virgl_renderer_ctx_attach_resource(int ctx_id, int res_handle);
VIRGL_EXPORT void virgl_renderer_ctx_detach_resource(int ctx_id, int res_handle);
VIRGL_EXPORT virgl_debug_callback_type virgl_set_debug_callback(virgl_debug_callback_type cb);
/* return information about a resource */
struct virgl_renderer_resource_info {

Loading…
Cancel
Save