[vlc-commits] messages: export log header functions
Rémi Denis-Courmont
git at videolan.org
Wed Feb 20 20:08:58 CET 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Feb 20 20:51:14 2019 +0200| [4778eccd5e121ae4ae41823c191883e59b79a625] | committer: Rémi Denis-Courmont
messages: export log header functions
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4778eccd5e121ae4ae41823c191883e59b79a625
---
include/vlc_messages.h | 29 +++++++++++++++++++++++++++++
src/libvlc.h | 16 ----------------
src/libvlccore.sym | 2 ++
3 files changed, 31 insertions(+), 16 deletions(-)
diff --git a/include/vlc_messages.h b/include/vlc_messages.h
index b04295afac..2cf1b7d2a1 100644
--- a/include/vlc_messages.h
+++ b/include/vlc_messages.h
@@ -92,6 +92,15 @@ VLC_API const char *vlc_strerror(int);
VLC_API const char *vlc_strerror_c(int);
/**
+ * \defgroup logger Logger
+ * \brief Message log back-end.
+ *
+ * @{
+ */
+
+struct vlc_logger;
+
+/**
* Message logging callback signature.
* \param data data pointer as provided to vlc_msg_SetCallback().
* \param type message type (VLC_MSG_* values from enum vlc_log_type)
@@ -109,6 +118,26 @@ struct vlc_logger_operations
};
/**
+ * Creates a prefixed message log.
+ *
+ * This creates a message log that prefixes all its messages and forwards them
+ * in another log.
+ * \param parent message log to inject into
+ * \param str nul-terminated prefix (a.k.a. "header")
+ * \return a new message log on success or @c NULL on error
+ */
+VLC_API struct vlc_logger *vlc_LogHeaderCreate(struct vlc_logger *parent,
+ const char *str) VLC_USED;
+
+/**
+ * Destroys a message log.
+ */
+VLC_API void vlc_LogDestroy(struct vlc_logger *);
+
+/**
+ * @}
+ */
+/**
* @}
*/
#endif
diff --git a/src/libvlc.h b/src/libvlc.h
index 173f3f71a2..00d53efb70 100644
--- a/src/libvlc.h
+++ b/src/libvlc.h
@@ -80,22 +80,6 @@ typedef struct vlc_logger vlc_logger_t;
int vlc_LogPreinit(libvlc_int_t *) VLC_USED;
void vlc_LogInit(libvlc_int_t *);
-/**
- * Creates a prefixed message log.
- *
- * This creates a message log that prefixes all its messages and forwards them
- * in another log.
- * \param parent message log to inject into
- * \param str nul-terminated prefix (a.k.a. "header")
- * \return a new message log on success or @c NULL on error
- */
-vlc_logger_t *vlc_LogHeaderCreate(vlc_logger_t *parent, const char *str);
-
-/**
- * Destroys a message log.
- */
-void vlc_LogDestroy(vlc_logger_t *);
-
/*
* LibVLC exit event handling
*/
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 38df09ee69..a9d468265b 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -281,6 +281,8 @@ vlc_memstream_printf
vlc_Log
vlc_LogSet
vlc_vaLog
+vlc_LogHeaderCreate
+vlc_LogDestroy
vlc_strerror
vlc_strerror_c
vlc_obj_malloc
More information about the vlc-commits
mailing list