Remove a dependency to capi-base-utils-i18n 39/69039/1
authorKyuho Jo <kyuho.jo@samsung.com>
Wed, 11 May 2016 07:53:06 +0000 (16:53 +0900)
committerKyuho Jo <kyuho.jo@samsung.com>
Wed, 11 May 2016 08:00:02 +0000 (17:00 +0900)
Because capi-base-utils-i18n is not exist on some TV devices,
dependency to capi-base-utils-i18n is removed.

Change-Id: Id9079c9ad6be85cf68627af751972f16dfaaf544
Signed-off-by: Kyuho Jo <kyuho.jo@samsung.com>
CMakeLists.txt
include/util/fs-util.h
packaging/org.tizen.myfiles.spec
src/util/file-attr.c

index 545661c..d8aa664 100755 (executable)
@@ -29,7 +29,6 @@ pkg_check_modules(PKGS REQUIRED
                capi-appfw-package-manager
                storage
                capi-content-media-content
-               capi-base-utils-i18n
                capi-media-metadata-extractor
                capi-content-mime-type
                libtzplatform-config
index b36628f..b2f1ed7 100755 (executable)
@@ -28,7 +28,6 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <linux/fs.h>
-#include <utils_i18n.h>
 #include <Eina.h>
 #include <Elementary.h>
 #include <storage.h>
@@ -299,7 +298,7 @@ typedef struct _FS_NODE_INFO fsNodeInfo;
 struct _FS_NODE_INFO {
        char *path;
        char *name;
-       i18n_udate date;
+       double date;
        fsFileType type;
        int storage_type;
        int list_type;
@@ -371,7 +370,7 @@ int mf_file_attr_get_logical_path_by_full(const char *full_path, char **path);
 int mf_file_attr_get_path_level(const char *fullpath, int *level);
 int mf_file_attr_is_system_dir(char *fullpath, bool *result);
 int mf_file_attr_is_disk_link(const char *fullpath, bool *result);
-int mf_file_attr_get_file_mdate(const char *filename, i18n_udate *date);
+int mf_file_attr_get_file_mdate(const char *filename, double *date);
 int mf_file_attr_media_has_video(const char *filename);
 int mf_file_attr_get_file_size(const char *filename, off_t *size);
 int mf_file_attr_get_file_icon(const char *file_path, int *error_code, int view_type, char **thumbnail, media_info_h *media_info);
index 32e9003..65fe8c9 100755 (executable)
@@ -18,7 +18,6 @@ BuildRequires: pkgconfig(capi-appfw-package-manager)
 BuildRequires: pkgconfig(storage)
 BuildRequires: pkgconfig(capi-appfw-package-manager)
 BuildRequires: pkgconfig(capi-content-media-content)
-BuildRequires:  pkgconfig(capi-base-utils-i18n)
 BuildRequires:  pkgconfig(capi-content-mime-type)
 BuildRequires:  pkgconfig(capi-media-metadata-extractor)
 BuildRequires:  pkgconfig(libtzplatform-config)
index 39971c2..8070eb3 100755 (executable)
@@ -605,14 +605,14 @@ int mf_file_attr_get_file_category(const char *filepath, fsFileType * category)
 **     Get file size and last modified date by file path
 **
 *********************/
-int mf_file_attr_get_file_mdate(const char *filename, i18n_udate *date)
+int mf_file_attr_get_file_mdate(const char *filename, double *date)
 {
        struct stat statbuf;
        if (stat(filename, &statbuf) == -1)
                return MYFILE_ERR_GET_STAT_FAIL;
 
        time_t tempdate = statbuf.st_mtime;
-       *date = (i18n_udate) tempdate * MF_UDATE_NUM;
+       *date = (double) tempdate * MF_UDATE_NUM;
        return MYFILE_ERR_NONE;
 
 }
@@ -637,7 +637,7 @@ int mf_file_attr_get_file_stat(const char *filename, fsNodeInfo **node)
 
        time_t tempdate = statbuf.st_mtime;
        (*node)->size = statbuf.st_size;
-       (*node)->date = (i18n_udate) tempdate * MF_UDATE_NUM;
+       (*node)->date = (double) tempdate * MF_UDATE_NUM;
 
        return MYFILE_ERR_NONE;
 }