0016-build-rename-exported-symbols-by-module.patch 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. From f42bc1bf1e308a8085882133c928d071243a6887 Mon Sep 17 00:00:00 2001
  2. From: Thomas Guillem <thomas@gllm.fr>
  3. Date: Tue, 11 Apr 2017 15:15:26 +0200
  4. Subject: [PATCH 16/18] build: rename exported symbols by module
  5. This is quite ugly and temporary. Ideally we should rename symbols in binaries like the Android script do.
  6. ---
  7. modules/codec/ttml/ttml.c | 2 +-
  8. modules/codec/ttml/ttml.h | 4 ++--
  9. modules/demux/avformat/avformat.c | 4 ++--
  10. modules/demux/avformat/avformat.h | 8 ++++----
  11. modules/demux/avformat/demux.c | 12 ++++++------
  12. modules/demux/avformat/mux.c | 4 ++--
  13. modules/demux/ttml.c | 6 +++---
  14. modules/video_filter/deinterlace/deinterlace.c | 10 +++++-----
  15. modules/video_filter/deinterlace/deinterlace.h | 18 +++++++++---------
  16. 9 files changed, 34 insertions(+), 34 deletions(-)
  17. diff --git a/modules/codec/ttml/ttml.c b/modules/codec/ttml/ttml.c
  18. index 4727b28cbf..97631276e5 100644
  19. --- a/modules/codec/ttml/ttml.c
  20. +++ b/modules/codec/ttml/ttml.c
  21. @@ -54,7 +54,7 @@ vlc_module_begin ()
  22. set_capability( "demux", 2 )
  23. set_category( CAT_INPUT )
  24. set_subcategory( SUBCAT_INPUT_DEMUX )
  25. - set_callbacks( OpenDemux, CloseDemux )
  26. + set_callbacks( OpenDemux__ttml, CloseDemux__ttml )
  27. add_shortcut( "ttml", "subtitle" )
  28. vlc_module_end ()
  29. diff --git a/modules/codec/ttml/ttml.h b/modules/codec/ttml/ttml.h
  30. index 51f41126f9..5781a92a34 100644
  31. --- a/modules/codec/ttml/ttml.h
  32. +++ b/modules/codec/ttml/ttml.h
  33. @@ -18,8 +18,8 @@
  34. * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  35. *****************************************************************************/
  36. -int OpenDemux( vlc_object_t* p_this );
  37. -void CloseDemux( demux_t* p_demux );
  38. +int OpenDemux__ttml( vlc_object_t* p_this );
  39. +void CloseDemux__ttml( demux_t* p_demux );
  40. int OpenDecoder ( vlc_object_t * );
  41. void CloseDecoder ( vlc_object_t * );
  42. diff --git a/modules/demux/avformat/avformat.c b/modules/demux/avformat/avformat.c
  43. index 28c5a7df76..29cd5b144f 100644
  44. --- a/modules/demux/avformat/avformat.c
  45. +++ b/modules/demux/avformat/avformat.c
  46. @@ -41,7 +41,7 @@ vlc_module_begin ()
  47. set_description( N_("Avformat demuxer" ) )
  48. set_shortname( N_("Avformat") )
  49. set_capability( "demux", 2 )
  50. - set_callbacks( OpenDemux, CloseDemux )
  51. + set_callbacks( OpenDemux__avformat, CloseDemux__avformat )
  52. set_section( N_("Demuxer"), NULL )
  53. add_string( "avformat-format", NULL, FORMAT_TEXT, FORMAT_LONGTEXT, true )
  54. add_obsolete_string("ffmpeg-format") /* removed since 2.1.0 */
  55. @@ -57,7 +57,7 @@ vlc_module_begin ()
  56. add_string( "sout-avformat-mux", NULL, MUX_TEXT, MUX_LONGTEXT, true )
  57. add_obsolete_string("ffmpeg-mux") /* removed since 2.1.0 */
  58. add_string( "sout-avformat-options", NULL, AV_OPTIONS_TEXT, AV_OPTIONS_LONGTEXT, true )
  59. - set_callbacks( OpenMux, CloseMux )
  60. + set_callbacks( OpenMux__avformat, CloseMux__avformat )
  61. #endif
  62. #ifndef MERGE_FFMPEG
  63. vlc_module_end ()
  64. diff --git a/modules/demux/avformat/avformat.h b/modules/demux/avformat/avformat.h
  65. index 5105dd1efd..7c97fc842a 100644
  66. --- a/modules/demux/avformat/avformat.h
  67. +++ b/modules/demux/avformat/avformat.h
  68. @@ -25,12 +25,12 @@ void LibavcodecCallback( void *p_opaque, int i_level,
  69. const char *psz_format, va_list va );
  70. /* Demux module */
  71. -int OpenDemux ( vlc_object_t * );
  72. -void CloseDemux( vlc_object_t * );
  73. +int OpenDemux__avformat ( vlc_object_t * );
  74. +void CloseDemux__avformat( vlc_object_t * );
  75. /* Mux module */
  76. -int OpenMux ( vlc_object_t * );
  77. -void CloseMux( vlc_object_t * );
  78. +int OpenMux__avformat ( vlc_object_t * );
  79. +void CloseMux__avformat( vlc_object_t * );
  80. #define MUX_TEXT N_("Avformat mux")
  81. #define MUX_LONGTEXT N_("Force use of a specific avformat muxer.")
  82. diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
  83. index 0d299a93d8..fa14e532bb 100644
  84. --- a/modules/demux/avformat/demux.c
  85. +++ b/modules/demux/avformat/demux.c
  86. @@ -143,7 +143,7 @@ static void get_rotation(es_format_t *fmt, AVStream *s)
  87. }
  88. }
  89. -int OpenDemux( vlc_object_t *p_this )
  90. +int OpenDemux__avformat( vlc_object_t *p_this )
  91. {
  92. demux_t *p_demux = (demux_t*)p_this;
  93. demux_sys_t *p_sys;
  94. @@ -280,7 +280,7 @@ int OpenDemux( vlc_object_t *p_this )
  95. if( !p_io_buffer )
  96. {
  97. free( psz_url );
  98. - CloseDemux( p_this );
  99. + CloseDemux__avformat( p_this );
  100. return VLC_ENOMEM;
  101. }
  102. @@ -289,7 +289,7 @@ int OpenDemux( vlc_object_t *p_this )
  103. {
  104. av_free( p_io_buffer );
  105. free( psz_url );
  106. - CloseDemux( p_this );
  107. + CloseDemux__avformat( p_this );
  108. return VLC_ENOMEM;
  109. }
  110. @@ -299,7 +299,7 @@ int OpenDemux( vlc_object_t *p_this )
  111. {
  112. av_free( p_io_buffer );
  113. free( psz_url );
  114. - CloseDemux( p_this );
  115. + CloseDemux__avformat( p_this );
  116. return VLC_ENOMEM;
  117. }
  118. @@ -314,7 +314,7 @@ int OpenDemux( vlc_object_t *p_this )
  119. av_free( pb );
  120. p_sys->ic = NULL;
  121. free( psz_url );
  122. - CloseDemux( p_this );
  123. + CloseDemux__avformat( p_this );
  124. return VLC_EGENERIC;
  125. }
  126. free( psz_url );
  127. @@ -665,7 +665,7 @@ int OpenDemux( vlc_object_t *p_this )
  128. /*****************************************************************************
  129. * Close
  130. *****************************************************************************/
  131. -void CloseDemux( vlc_object_t *p_this )
  132. +void CloseDemux__avformat( vlc_object_t *p_this )
  133. {
  134. demux_t *p_demux = (demux_t*)p_this;
  135. demux_sys_t *p_sys = p_demux->p_sys;
  136. diff --git a/modules/demux/avformat/mux.c b/modules/demux/avformat/mux.c
  137. index f339af312c..52d0baf16a 100644
  138. --- a/modules/demux/avformat/mux.c
  139. +++ b/modules/demux/avformat/mux.c
  140. @@ -84,7 +84,7 @@ static int IOWriteTyped(void *opaque, uint8_t *buf, int buf_size,
  141. /*****************************************************************************
  142. * Open
  143. *****************************************************************************/
  144. -int OpenMux( vlc_object_t *p_this )
  145. +int OpenMux__avformat( vlc_object_t *p_this )
  146. {
  147. AVOutputFormat *file_oformat;
  148. sout_mux_t *p_mux = (sout_mux_t*)p_this;
  149. @@ -163,7 +163,7 @@ int OpenMux( vlc_object_t *p_this )
  150. /*****************************************************************************
  151. * Close
  152. *****************************************************************************/
  153. -void CloseMux( vlc_object_t *p_this )
  154. +void CloseMux__avformat( vlc_object_t *p_this )
  155. {
  156. sout_mux_t *p_mux = (sout_mux_t*)p_this;
  157. sout_mux_sys_t *p_sys = p_mux->p_sys;
  158. diff --git a/modules/demux/ttml.c b/modules/demux/ttml.c
  159. index 146d129ff8..fa480e4cf9 100644
  160. --- a/modules/demux/ttml.c
  161. +++ b/modules/demux/ttml.c
  162. @@ -391,7 +391,7 @@ static int Demux( demux_t* p_demux )
  163. return VLC_DEMUXER_SUCCESS;
  164. }
  165. -int OpenDemux( vlc_object_t* p_this )
  166. +int OpenDemux__ttml( vlc_object_t* p_this )
  167. {
  168. demux_t *p_demux = (demux_t*)p_this;
  169. demux_sys_t *p_sys;
  170. @@ -530,12 +530,12 @@ int OpenDemux( vlc_object_t* p_this )
  171. return VLC_SUCCESS;
  172. error:
  173. - CloseDemux( p_demux );
  174. + CloseDemux__ttml( p_demux );
  175. return VLC_EGENERIC;
  176. }
  177. -void CloseDemux( demux_t* p_demux )
  178. +void CloseDemux__ttml( demux_t* p_demux )
  179. {
  180. demux_sys_t* p_sys = p_demux->p_sys;
  181. diff --git a/modules/video_filter/deinterlace/deinterlace.c b/modules/video_filter/deinterlace/deinterlace.c
  182. index 1397aed9b8..31103f3631 100644
  183. --- a/modules/video_filter/deinterlace/deinterlace.c
  184. +++ b/modules/video_filter/deinterlace/deinterlace.c
  185. @@ -113,7 +113,7 @@ vlc_module_begin ()
  186. change_integer_list( phosphor_dimmer_list, phosphor_dimmer_list_text )
  187. change_safe ()
  188. add_shortcut( "deinterlace" )
  189. - set_callbacks( Open, Close )
  190. + set_callbacks( Open__deinterlace, Close )
  191. vlc_module_end ()
  192. /*****************************************************************************
  193. @@ -124,7 +124,7 @@ vlc_module_end ()
  194. * Available config options for the deinterlacer module.
  195. *
  196. * Note that also algorithm-specific options must be listed here,
  197. - * and reading logic for them implemented in Open().
  198. + * and reading logic for them implemented in Open__deinterlace().
  199. */
  200. static const char *const ppsz_filter_options[] = {
  201. "mode", "phosphor-chroma", "phosphor-dimmer",
  202. @@ -239,7 +239,7 @@ static void GetOutputFormat( filter_t *p_filter,
  203. * video filter functions
  204. *****************************************************************************/
  205. -/* This is the filter function. See Open(). */
  206. +/* This is the filter function. See Open__deinterlace(). */
  207. picture_t *Deinterlace( filter_t *p_filter, picture_t *p_pic )
  208. {
  209. return DoDeinterlacing( p_filter, &p_filter->p_sys->context, p_pic );
  210. @@ -273,10 +273,10 @@ int Mouse( filter_t *p_filter,
  211. /*****************************************************************************
  212. - * Open
  213. + * Open__deinterlace
  214. *****************************************************************************/
  215. -int Open( vlc_object_t *p_this )
  216. +int Open__deinterlace( vlc_object_t *p_this )
  217. {
  218. filter_t *p_filter = (filter_t*)p_this;
  219. filter_sys_t *p_sys;
  220. diff --git a/modules/video_filter/deinterlace/deinterlace.h b/modules/video_filter/deinterlace/deinterlace.h
  221. index ecc26e0d60..0c71cda6d2 100644
  222. --- a/modules/video_filter/deinterlace/deinterlace.h
  223. +++ b/modules/video_filter/deinterlace/deinterlace.h
  224. @@ -92,7 +92,7 @@ struct filter_sys_t
  225. /**
  226. * Top-level filtering method.
  227. *
  228. - * Open() sets this up as the processing method (pf_video_filter)
  229. + * Open__deinterlace() sets this up as the processing method (pf_video_filter)
  230. * in the filter structure.
  231. *
  232. * Note that there is no guarantee that the returned picture directly
  233. @@ -126,7 +126,7 @@ struct filter_sys_t
  234. * @param p_filter The filter instance.
  235. * @param p_pic The latest input picture.
  236. * @return Deinterlaced picture(s). Linked list of picture_t's or NULL.
  237. - * @see Open()
  238. + * @see Open__deinterlace()
  239. * @see filter_t
  240. * @see filter_sys_t
  241. */
  242. @@ -142,7 +142,7 @@ picture_t *Deinterlace( filter_t *p_filter, picture_t *p_pic );
  243. * wants to convert the output to a format different
  244. * from the input. See SetFilterMethod().
  245. *
  246. - * Open() is atomic: if an error occurs, the state of p_this
  247. + * Open__deinterlace() is atomic: if an error occurs, the state of p_this
  248. * is left as it was before the call to this function.
  249. *
  250. * @param p_this The filter instance as vlc_object_t.
  251. @@ -153,17 +153,17 @@ picture_t *Deinterlace( filter_t *p_filter, picture_t *p_pic );
  252. * @see IsChromaSupported()
  253. * @see SetFilterMethod()
  254. */
  255. -int Open( vlc_object_t *p_this );
  256. +int Open__deinterlace( vlc_object_t *p_this );
  257. /**
  258. * Resets the filter state, including resetting all algorithm-specific state
  259. * and discarding all histories, but does not stop the filter.
  260. *
  261. - * Open() sets this up as the flush method (pf_flush)
  262. + * Open__deinterlace() sets this up as the flush method (pf_flush)
  263. * in the filter structure.
  264. *
  265. * @param p_filter The filter instance.
  266. - * @see Open()
  267. + * @see Open__deinterlace()
  268. * @see filter_t
  269. * @see filter_sys_t
  270. * @see metadata_history_t
  271. @@ -175,7 +175,7 @@ void Flush( filter_t *p_filter );
  272. /**
  273. * Mouse callback for the deinterlace filter.
  274. *
  275. - * Open() sets this up as the mouse callback method (pf_video_mouse)
  276. + * Open__deinterlace() sets this up as the mouse callback method (pf_video_mouse)
  277. * in the filter structure.
  278. *
  279. * Currently, this handles the scaling of the y coordinate for algorithms
  280. @@ -187,7 +187,7 @@ void Flush( filter_t *p_filter );
  281. * @param[in] p_new Latest mouse position data.
  282. * @return VLC error code; currently always VLC_SUCCESS.
  283. * @retval VLC_SUCCESS All ok.
  284. - * @see Open()
  285. + * @see Open__deinterlace()
  286. * @see filter_t
  287. * @see vlc_mouse_t
  288. */
  289. @@ -238,7 +238,7 @@ void Close( vlc_object_t *p_this );
  290. * but the new value will only take effect upon the next call to Deinterlace()
  291. * (i.e. at the next incoming frame).
  292. *
  293. - * The first-ever frame that arrives to the filter after Open() is always
  294. + * The first-ever frame that arrives to the filter after Open__deinterlace() is always
  295. * handled as having i_frame_offset = 0. For the second and all subsequent
  296. * frames, each algorithm is responsible for setting the offset correctly.
  297. * (The default is 0, so if that is correct, there's no need to do anything.)
  298. --
  299. 2.13.2