Browse Source

libvlc: don't make VLC error reporting public anymore

There's no reason for an app to mix its error messages with ours.

Applications that may have used this will fail to link so will quickly notice
the change.
pull/134/head
Steve Lhomme 4 years ago
committed by Rémi Denis-Courmont
parent
commit
4c73518d6e
  1. 11
      include/vlc/libvlc.h
  2. 6
      lib/error.c
  3. 2
      lib/libvlc.sym

11
include/vlc/libvlc.h

@ -98,15 +98,6 @@ LIBVLC_API const char *libvlc_errmsg (void);
*/
LIBVLC_API void libvlc_clearerr (void);
/**
* Sets the LibVLC error status and message for the current thread.
* Any previous error is overridden.
* \param fmt the format string
* \param ap the arguments
* \return a nul terminated string in any case
*/
LIBVLC_API const char *libvlc_vprinterr (const char *fmt, va_list ap);
/**
* Sets the LibVLC error status and message for the current thread.
* Any previous error is overridden.
@ -114,7 +105,7 @@ LIBVLC_API const char *libvlc_vprinterr (const char *fmt, va_list ap);
* \param ... the arguments for the format string
* \return a nul terminated string in any case
*/
LIBVLC_API const char *libvlc_printerr (const char *fmt, ...);
const char *libvlc_printerr (const char *fmt, ...);
/**@} */

6
lib/error.c

@ -97,9 +97,11 @@ void libvlc_clearerr (void)
/**
* Sets the LibVLC error status and message for the current thread.
* Any previous error is overridden.
* @return a nul terminated string (always)
* \param fmt the format string
* \param ap the arguments
* \return a nul terminated string in any case
*/
const char *libvlc_vprinterr (const char *fmt, va_list ap)
static const char *libvlc_vprinterr (const char *fmt, va_list ap)
{
char *msg;

2
lib/libvlc.sym

@ -1,7 +1,5 @@
libvlc_errmsg
libvlc_clearerr
libvlc_printerr
libvlc_vprinterr
libvlc_add_intf
libvlc_audio_equalizer_get_amp_at_index
libvlc_audio_equalizer_get_band_count

Loading…
Cancel
Save