[vlc-commits] libvlc: simplify and clean up external logging API (fixes #8129)

Rémi Denis-Courmont git at videolan.org
Mon Mar 18 22:20:22 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Mar 18 23:07:53 2013 +0200| [ae3b867b5b7d7441554c0cd0463fc66bbca3f46b] | committer: Rémi Denis-Courmont

libvlc: simplify and clean up external logging API (fixes #8129)

 - Scope the callback to its instance.
 - Avoid leaking the layout of an internal data structure.
 - Future-proof passing of extra informations through an opaque pointer.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ae3b867b5b7d7441554c0cd0463fc66bbca3f46b
---

 include/vlc/libvlc.h            |   69 ++++++++++------------------
 include/vlc/libvlc_structures.h |    3 --
 lib/error.c                     |    6 ---
 lib/libvlc.sym                  |    5 ++-
 lib/libvlc_internal.h           |    5 +++
 lib/log.c                       |   94 ++++++++++++++-------------------------
 6 files changed, 64 insertions(+), 118 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=ae3b867b5b7d7441554c0cd0463fc66bbca3f46b


More information about the vlc-commits mailing list