visibility support sandbox/denis13/visibility
authorDenis Khalikov <d.khalikov@partner.samsung.com>
Mon, 28 Nov 2016 08:53:44 +0000 (11:53 +0300)
committerDenis Khalikov <d.khalikov@partner.samsung.com>
Mon, 28 Nov 2016 08:53:44 +0000 (11:53 +0300)
packaging/libmm-transcode.spec
transcode/include/mm_transcode.h

index 9c446fd972aae84029116af3df51ce1525f0c341..c3b2119d95d3882b916fc233e4e1e9b50a8c3cbf 100644 (file)
@@ -43,7 +43,7 @@ cp %{SOURCE1001} .
 %build
 ./autogen.sh
 
-CFLAGS="$CFLAGS -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" -D_MM_PROJECT_FLOATER -Werror" \
+CFLAGS="$CFLAGS  -fvisibility=hidden -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\" -D_MM_PROJECT_FLOATER -Werror" \
 LDFLAGS+="-Wl,--rpath=%{_libdir} -Wl,--hash-style=both -Wl,--as-needed" \
 %configure
 
index b710b2e6b3cbd603a0952c28f59be38ef84f3ef1..6c0f1bacbc930ca6fa21a87d663f477a06dc90e8 100644 (file)
@@ -88,7 +88,7 @@ typedef enum
  *             if the result is 0, then handle creation succeed
  *             else if the result is -1, then handle creation failed
  */
-int
+__attribute__ ((visibility("default"))) int
 mm_transcode_create(MMHandleType* MMHandle);
 
 
@@ -108,7 +108,7 @@ mm_transcode_create(MMHandleType* MMHandle);
  *             if the result is 0, then you can use output_Filename pointer(char** value)
  *             else if the result is -1, then do not execute when the colopsapce converter is not supported
  */
-int
+__attribute__ ((visibility("default"))) int
 mm_transcode_prepare(MMHandleType MMHandle, const char *in_Filename, mm_containerformat_e containerformat,
        mm_videoencoder_e videoencoder, mm_audioencoder_e audioencoder);
 
@@ -136,7 +136,7 @@ mm_transcode_prepare(MMHandleType MMHandle, const char *in_Filename, mm_containe
  *             if the result is 0, then you can use output_Filename pointer(char** value)
  *             else if the result is -1, then do not execute when the colopsapce converter is not supported
  */
-int
+__attribute__ ((visibility("default"))) int
 mm_transcode(MMHandleType MMHandle, unsigned int resolution_width, unsigned int resolution_height, unsigned int fps_value, unsigned long start_position, unsigned long duration,
        mm_seek_mode_e seek_mode, const char *out_Filename, mm_transcode_progress_callback progress_callback, mm_transcode_completed_callback completed_callback, void *user_param);
 
@@ -154,7 +154,7 @@ mm_transcode(MMHandleType MMHandle, unsigned int resolution_width, unsigned int
  *             if the result is 0, then it means that trascode is executing now
  *             else if the result is -1, then you can call mm_transcode_prepare for new input file
  */
-int
+__attribute__ ((visibility("default"))) int
 mm_transcode_is_busy(MMHandleType MMHandle, bool *is_busy);
 
 
@@ -170,7 +170,7 @@ mm_transcode_is_busy(MMHandleType MMHandle, bool *is_busy);
  *             if the result is 0, then handle destory succeed
  *             else if the result is -1, then handle destory failed
  */
-int
+__attribute__ ((visibility("default"))) int
 mm_transcode_cancel(MMHandleType MMHandle);
 
 
@@ -186,7 +186,7 @@ mm_transcode_cancel(MMHandleType MMHandle);
  *             if the result is 0, then handle destory succeed
  *             else if the result is -1, then handle destory failed
  */
-int
+__attribute__ ((visibility("default"))) int
 mm_transcode_destroy(MMHandleType MMHandle);
 
 
@@ -209,17 +209,17 @@ mm_transcode_destroy(MMHandleType MMHandle);
  *              if the result is 0, then transcode get attribute succeed
  *              else if the result is -1, then transcode get attribute failed
  */
-int
+__attribute__ ((visibility("default"))) int
 mm_transcode_get_attrs(MMHandleType MMHandle, mm_containerformat_e *containerformat, mm_videoencoder_e *videoencoder,
        mm_audioencoder_e *audioencoder, unsigned long *current_pos, unsigned long *duration, unsigned int *resolution_width, unsigned int *resolution_height);
 
-int
+__attribute__ ((visibility("default"))) int
 mm_transcode_get_supported_container_format(mm_transcode_support_type_callback type_callback, void *user_param);
 
-int
+__attribute__ ((visibility("default"))) int
 mm_transcode_get_supported_video_encoder(mm_transcode_support_type_callback type_callback, void *user_param);
 
-int
+__attribute__ ((visibility("default"))) int
 mm_transcode_get_supported_audio_encoder(mm_transcode_support_type_callback type_callback, void *user_param);