Revert "Remove TIZEN_FEATURE_COMPATIBILITY code" 38/274038/1
authorMinje ahn <minje.ahn@samsung.com>
Wed, 20 Apr 2022 08:03:37 +0000 (08:03 +0000)
committerMinje ahn <minje.ahn@samsung.com>
Wed, 20 Apr 2022 08:03:37 +0000 (08:03 +0000)
This reverts commit 5af3ff15c835eddd5c7f9606a5045e737f2118d1.

Reason for revert: Using in webplugins

Change-Id: I24d856dedb522096254b8b29163816ff1e36adcd

CMakeLists.txt
packaging/capi-content-media-content.spec
src/media_audio.c
src/media_content.c
src/media_info.c

index 504ea53f196200e7c6906d64a7966d9882a76a5e..3e92751be2d1fd8942eea70b31df6cc655a7cd78 100644 (file)
@@ -33,6 +33,9 @@ ADD_DEFINITIONS("-DTIZEN_DEBUG")
 IF(TIZEN_PRODUCT_TV)
     ADD_DEFINITIONS("-D_USE_TVPD_MODE")
 ENDIF(TIZEN_PRODUCT_TV)
+IF(TIZEN_FEATURE_COMPATIBILITY)
+    ADD_DEFINITIONS("-DTIZEN_FEATURE_COMPATIBILITY")
+ENDIF(TIZEN_FEATURE_COMPATIBILITY)
 
 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=${LIB_INSTALL_DIR}")
 
@@ -78,10 +81,10 @@ IF(UNIX)
 
 ADD_CUSTOM_TARGET (distclean @echo cleaning for source distribution)
 ADD_CUSTOM_COMMAND(
-        DEPENDS clean
+        DEPENDS clean 
         COMMENT "distribution clean"
         COMMAND find
-        ARGS    .
+        ARGS    . 
         -not -name config.cmake -and \(
         -name tester.c -or
         -name Testing -or
@@ -104,3 +107,4 @@ ADD_CUSTOM_COMMAND(
 )
 
 ENDIF(UNIX)
+
index 346f41e03155a43d6b3e4426aba0626b828327bb..647ccd368d5ba1c7b28b8fa291325bca2fdf2130 100644 (file)
@@ -57,6 +57,7 @@ MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 %else
  -DTIZEN_PRODUCT_TV=NO \
 %endif
+ -DTIZEN_FEATURE_COMPATIBILITY=YES
 
 %__make %{?jobs:-j%jobs}
 
index c3bf6a1ce99b6e7d1f6f9bacd614528937443f3d..f887b1d2612e66150e9c57c95a1ddc86ce984fd2 100644 (file)
@@ -255,3 +255,40 @@ int audio_meta_get_duration(audio_meta_h audio, int *duration)
 
        return MEDIA_CONTENT_ERROR_NONE;
 }
+
+#ifdef TIZEN_FEATURE_COMPATIBILITY
+int audio_meta_get_played_time(audio_meta_h audio, time_t* played_time)
+{
+       content_warn("DEPRECATION WARNING: audio_meta_get_played_time() is removed from 5.5.");
+
+       return MEDIA_CONTENT_ERROR_NONE;
+}
+
+int audio_meta_get_played_count(audio_meta_h audio, int *played_count)
+{
+       content_warn("DEPRECATION WARNING: audio_meta_get_played_count() is removed from 5.5.");
+
+       return MEDIA_CONTENT_ERROR_NONE;
+}
+
+int audio_meta_set_played_count(audio_meta_h audio, int played_count)
+{
+       content_warn("DEPRECATION WARNING: audio_meta_set_played_count() is removed from 5.5.");
+
+       return MEDIA_CONTENT_ERROR_NONE;
+}
+
+int audio_meta_set_played_time(audio_meta_h audio, time_t played_time)
+{
+       content_warn("DEPRECATION WARNING: audio_meta_set_played_time() is removed from 5.5.");
+
+       return MEDIA_CONTENT_ERROR_NONE;
+}
+
+int audio_meta_update_to_db(audio_meta_h audio)
+{
+       content_warn("DEPRECATION WARNING: audio_meta_update_to_db() is removed from 5.5.");
+
+       return MEDIA_CONTENT_ERROR_NONE;
+}
+#endif
index ca0429fe4b38d2484b6c49f60ca140bc7f76e1c3..8d20d33fb03d3e30000ef5ce42fa1e91f9f3dfa3 100644 (file)
@@ -479,6 +479,15 @@ int media_content_add_db_updated_cb(media_content_db_update_cb callback, void *u
        return _content_error_capi(ret);
 }
 
+#ifdef TIZEN_FEATURE_COMPATIBILITY
+int media_content_set_db_updated_cb(media_content_db_update_cb callback, void *user_data)
+{
+       content_warn("DEPRECATION WARNING: media_content_set_db_updated_cb() is removed from 5.0.");
+
+       return MEDIA_CONTENT_ERROR_NONE;
+}
+#endif
+
 int media_content_remove_db_updated_cb(media_content_noti_h noti_handle)
 {
        int ret = MEDIA_CONTENT_ERROR_NONE;
index 69c80d6406bb6df739eb4046982d832edacacf91..4441e692c103eb74efb325d0bb7bb16d478a0ffd 100644 (file)
@@ -1664,3 +1664,40 @@ int media_info_set_rating(media_info_h media, int rating)
 
        return MEDIA_CONTENT_ERROR_NONE;
 }
+
+#ifdef TIZEN_FEATURE_COMPATIBILITY
+int media_info_set_added_time(media_info_h media, time_t added_time)
+{
+       content_warn("DEPRECATION WARNING: media_info_set_added_time() is removed from 5.5.");
+
+       return MEDIA_CONTENT_ERROR_NONE;
+}
+
+int media_info_delete_batch_from_db(filter_h filter)
+{
+       content_warn("DEPRECATION WARNING: media_info_delete_batch_from_db() is removed from 5.5.");
+
+       return MEDIA_CONTENT_ERROR_NONE;
+}
+
+int media_info_create(const char *path, media_info_h *media)
+{
+       content_warn("DEPRECATION WARNING: media_info_create() is removed from 5.5.");
+
+       return MEDIA_CONTENT_ERROR_NONE;
+}
+
+int media_info_refresh_metadata_to_db(const char *media_id)
+{
+       content_warn("DEPRECATION WARNING: media_info_refresh_metadata_to_db() is removed from 5.5.");
+
+       return MEDIA_CONTENT_ERROR_NONE;
+}
+
+int media_info_set_display_name(media_info_h media, const char *display_name)
+{
+       content_warn("DEPRECATION WARNING: media_info_set_display_name() is removed from 5.5.");
+
+       return MEDIA_CONTENT_ERROR_NONE;
+}
+#endif