Clean up included header files 00/126700/1 submit/tizen/20170425.011620
authorHaejeong Kim <backto.kim@samsung.com>
Tue, 25 Apr 2017 00:59:14 +0000 (09:59 +0900)
committerHaejeong Kim <backto.kim@samsung.com>
Tue, 25 Apr 2017 00:59:14 +0000 (09:59 +0900)
Change-Id: I2460ff4187f6c1b92ea0ace656765e2c61f61cc6

include/media_content_internal.h
include_product/media_content_internal.h
packaging/capi-content-media-content.spec
src/media_bookmark.c
src/media_content.c
src/media_face.c
src/media_group.c
src/media_playlist.c
src/media_util_private.c

index dec3508..5e2e527 100755 (executable)
@@ -19,7 +19,7 @@
 #ifndef __TIZEN_MEDIA_CONTENT_INTERNAL_H__
 #define __TIZEN_MEDIA_CONTENT_INTERNAL_H__
 
-#include <media_content_type.h>
+//#include <media_content_type.h>
 
 #ifdef __cplusplus
 extern "C" {
index dec3508..5e2e527 100755 (executable)
@@ -19,7 +19,7 @@
 #ifndef __TIZEN_MEDIA_CONTENT_INTERNAL_H__
 #define __TIZEN_MEDIA_CONTENT_INTERNAL_H__
 
-#include <media_content_type.h>
+//#include <media_content_type.h>
 
 #ifdef __cplusplus
 extern "C" {
index 4080e52..a34968a 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-content-media-content
 Summary:    A Media content library in Tizen Native API
-Version:    0.3.8
+Version:    0.3.9
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index fb20da7..958283a 100755 (executable)
@@ -16,7 +16,6 @@
 
 
 #include <media_info_private.h>
-#include <media_util_private.h>
 
 
 int media_bookmark_insert_to_db(const char *media_id, time_t time, const char *thumbnail_path)
index df4a26f..395415a 100755 (executable)
 #include <media_info_private.h>
 #include <media_util_private.h>
 
-#include <unicode/uscript.h>
-#include <unicode/uloc.h>
-#include <unicode/ucol.h>
-#include <sys/types.h>
-#include <dirent.h>
-#include <fcntl.h>
-#ifdef _USE_TV_PROFILE
-#include <vconf.h>
-#endif
 
 static attribute_h g_attr_handle = NULL;
 static attribute_h g_alias_attr_handle = NULL;
index c19b8c3..d9ac937 100755 (executable)
@@ -14,7 +14,7 @@
 * limitations under the License.
 */
 
-#include <media_face.h>
+
 #include <media_info_private.h>
 
 static int __media_face_check_media_id(const char *media_id)
@@ -41,6 +41,20 @@ static int __media_face_check_media_id(const char *media_id)
        return MEDIA_CONTENT_ERROR_NONE;
 }
 
+int media_face_destroy(media_face_h face)
+{
+       media_face_s *_face = (media_face_s*)face;
+
+       media_content_retvm_if(face == NULL, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Invalid handle");
+
+       SAFE_FREE(_face->face_id);
+       SAFE_FREE(_face->media_id);
+       SAFE_FREE(_face->face_tag);
+       SAFE_FREE(_face);
+
+       return MEDIA_CONTENT_ERROR_NONE;
+}
+
 int media_face_clone(media_face_h *dst, media_face_h src)
 {
        media_face_s *_src = (media_face_s*)src;
@@ -88,20 +102,6 @@ int media_face_clone(media_face_h *dst, media_face_h src)
        return MEDIA_CONTENT_ERROR_NONE;
 }
 
-int media_face_destroy(media_face_h face)
-{
-       media_face_s *_face = (media_face_s*)face;
-
-       media_content_retvm_if(face == NULL, MEDIA_CONTENT_ERROR_INVALID_PARAMETER, "Invalid handle");
-
-       SAFE_FREE(_face->face_id);
-       SAFE_FREE(_face->media_id);
-       SAFE_FREE(_face->face_tag);
-       SAFE_FREE(_face);
-
-       return MEDIA_CONTENT_ERROR_NONE;
-}
-
 int media_face_get_face_id(media_face_h face, char **face_id)
 {
        media_face_s* _face = (media_face_s*)face;
index e35e495..eea6b58 100755 (executable)
 * limitations under the License.
 */
 
-#include <media_filter.h>
-#include <media_info.h>
+
 #include <media_info_private.h>
-#include <media_group.h>
 
 
 int media_album_get_album_count_from_db(filter_h filter, int *album_count)
index 28b9e87..c2f2c84 100755 (executable)
@@ -18,7 +18,6 @@
 #include <media_filter.h>
 #include <media_info.h>
 #include <media_info_private.h>
-#include <media_playlist.h>
 #include <media_util_private.h>
 
 
index 955dc95..ac36b35 100755 (executable)
 * limitations under the License.
 */
 
+
 #include <dirent.h>
-#include <string.h>
-#include <sys/stat.h>
-#include <sys/types.h>
 #include <fcntl.h>
-#include <media_util_private.h>
 #include <media_info_private.h>
-#include <media_content_type.h>
 #include <storage.h>
-#ifdef _USE_TV_PROFILE
+#ifdef _USE_SENIOR_MODE
 #include <system_info.h>
+#include <media_util_private.h>
 #endif
 
 static char *g_old_path = NULL;