INCLUDE(FindPkgConfig)
-pkg_check_modules(pkgs REQUIRED glib-2.0 dlog sqlite3 db-util libexif mm-fileinfo media-thumbnail libmedia-utils aul uuid vconf capi-media-image-util)
+pkg_check_modules(pkgs REQUIRED glib-2.0 dlog sqlite3 db-util libexif mm-fileinfo media-thumbnail libmedia-utils aul uuid vconf capi-media-image-util capi-system-info)
FOREACH(flag ${pkgs_CFLAGS})
SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
BuildRequires: pkgconfig(uuid)
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(capi-media-image-util)
+BuildRequires: pkgconfig(capi-system-info)
%description
This package is a library that provides the media information service for the multimedia applications.
#undef __USE_XOPEN
#endif
#include <string.h>
+#include <system_info.h>
#include <sys/vfs.h>
#include <glib/gstdio.h>
#include <sys/stat.h>
#define _ASF_FILE ".asf"
#define MEDIA_SVC_ARTWORK_SIZE 2000
+static int media_svc_pinyin_support = -1;
+
typedef struct {
char content_type[15];
int category_by_mime;
}
}
- /*check music file in soun files. */
+ /*check music file in sound files. */
if (*category & MEDIA_SVC_CATEGORY_SOUND) {
int prefix_len = strlen(content_category[0].content_type) + 1;
return title;
}
+bool __media_svc_check_support_pinyin()
+{
+ int ret = SYSTEM_INFO_ERROR_NONE;
+ bool is_supported = false;
+
+ if (media_svc_pinyin_support == -1) {
+ ret = system_info_get_platform_bool("http://tizen.org/feature/content.filter.pinyin", &is_supported);
+ if (ret != SYSTEM_INFO_ERROR_NONE) {
+ media_svc_debug("SYSTEM_INFO_ERROR: content.filter.pinyin [%d]", ret);
+ return false;
+ }
+
+ media_svc_pinyin_support = is_supported;
+ }
+
+ return media_svc_pinyin_support;
+}
int _media_svc_rename_file(const char *old_name, const char *new_name)
{
if ((old_name == NULL) || (new_name == NULL)) {
bool _media_svc_check_pinyin_support(void)
{
- /*Check CSC*/
- return TRUE;
+ /* Check CSC : TODO : need to check CSC */
+
+ /* Check content.filter.pinyin feature */
+ return __media_svc_check_support_pinyin();
}
int _media_svc_get_media_type(const char *path, int *mediatype)