OSDN Git Service

Make logging callbacks library-safe
authorMark Thompson <sw@jkqxz.net>
Mon, 19 Jun 2017 18:09:20 +0000 (19:09 +0100)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 27 Sep 2017 04:48:16 +0000 (12:48 +0800)
commitf1f1f5a562693dccdae43e50909ca75556308486
treee4eb1b6547f0ca38ae6c44f9264d05094f8417c9
parent1b04587eee33537fe862baf6fc6fc3937dccfdcc
Make logging callbacks library-safe

Move the logging callbacks into the display context, rather than
having them as global state.  Add user-context parameter as well so
that users can distinguish between callbacks in different instances.

The default behaviour does not change, and LIBVA_MESSAGING_LEVEL
continues to be respected in that case.

Since we're breaking API here, also rename vaMessageCallback to
VAMessageCallback to be consistent with all other types.

Signed-off-by: Mark Thompson <sw@jkqxz.net>
va/va.c
va/va.h
va/va_backend.h
va/va_fool.c
va/va_internal.h
va/va_trace.c