From 871670e5ce581fb058e0f4773a261ae8841822e7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= <hugo@beauzee.fr>
Date: Fri, 8 Jun 2018 11:16:34 +0200
Subject: [PATCH] core: Expose input_CreatePreparser

---
 include/vlc_input.h         | 16 ++++++++++++++++
 src/input/input_interface.h | 15 ---------------
 src/libvlccore.sym          |  1 +
 3 files changed, 17 insertions(+), 15 deletions(-)

diff --git a/include/vlc_input.h b/include/vlc_input.h
index 623fad3aae7e..73bdc41fd970 100644
--- a/include/vlc_input.h
+++ b/include/vlc_input.h
@@ -556,6 +556,22 @@ VLC_API input_thread_t * input_Create( vlc_object_t *p_parent,
                                        vlc_renderer_item_t* p_renderer ) VLC_USED;
 #define input_Create(a,b,c,d,e,f,g) input_Create(VLC_OBJECT(a),b,c,d,e,f,g)
 
+
+/**
+ * Creates an item preparser.
+ *
+ * Creates an input thread to preparse an item. The input needs to be started
+ * with input_Start() afterwards.
+ *
+ * @param obj parent object
+ * @param item input item to preparse
+ * @return an input thread or NULL on error
+ */
+VLC_API input_thread_t *input_CreatePreparser(vlc_object_t *obj,
+                                              input_thread_events_cb events_cb,
+                                              void *events_data, input_item_t *item)
+VLC_USED;
+
 VLC_API int input_Start( input_thread_t * );
 
 VLC_API void input_Stop( input_thread_t * );
diff --git a/src/input/input_interface.h b/src/input/input_interface.h
index a2635c429a6a..779798d7f958 100644
--- a/src/input/input_interface.h
+++ b/src/input/input_interface.h
@@ -40,21 +40,6 @@ void input_item_SetEpgEvent( input_item_t *p_item, const vlc_epg_event_t *p_epg_
 void input_item_SetEpgTime( input_item_t *, int64_t );
 void input_item_SetEpgOffline( input_item_t * );
 
-/**
- * Creates an item preparser.
- *
- * Creates an input thread to preparse an item. The input needs to be started
- * with input_Start() afterwards.
- *
- * @param obj parent object
- * @param item input item to preparse
- * @return an input thread or NULL on error
- */
-input_thread_t *input_CreatePreparser(vlc_object_t *obj,
-                                      input_thread_events_cb events_cb,
-                                      void *events_data, input_item_t *item)
-VLC_USED;
-
 /**
  * This function deletes the current sout in the resources.
  */
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index aa60639a82fd..dab796777aa1 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -153,6 +153,7 @@ InitMD5
 input_Control
 input_Create
 input_CreateFilename
+input_CreatePreparser
 input_DecoderCreate
 input_DecoderDelete
 input_DecoderDecode
-- 
GitLab