From: Denis Khalikov Date: Mon, 28 Nov 2016 08:53:44 +0000 (+0300) Subject: visibility support X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Fsandbox%2Fdenis13%2Fvisibility;p=platform%2Fcore%2Fmultimedia%2Flibmm-transcode.git visibility support --- diff --git a/packaging/libmm-transcode.spec b/packaging/libmm-transcode.spec index 9c446fd..c3b2119 100644 --- a/packaging/libmm-transcode.spec +++ b/packaging/libmm-transcode.spec @@ -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 diff --git a/transcode/include/mm_transcode.h b/transcode/include/mm_transcode.h index b710b2e..6c0f1ba 100644 --- a/transcode/include/mm_transcode.h +++ b/transcode/include/mm_transcode.h @@ -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);