Remove TIZEN_FEATURE_COMPATIBILITY
[platform/core/api/media-content.git] / include / media_info_private.h
old mode 100755 (executable)
new mode 100644 (file)
index 07b5a6f..eedab3c
@@ -50,7 +50,7 @@ extern "C" {
 * @brief This file contains the media info API and related structure and enumeration. \n
 *        Description of the audio, video,image content involves: album, artist, album_artist, genre and description tags. \n
 *        Parameters of the recording are also supported, as: format, bitrate, duration, size etc. \n
-*        Defenitions of media DB fields and tables, operations with media data relating to DB and handling with media filter attributes.
+*        Definitions of media DB fields and tables, operations with media data relating to DB and handling with media filter attributes.
 */
 
 
@@ -246,6 +246,14 @@ typedef struct {
 
 typedef struct {
        char *media_id;
+       char *author;
+       char *publisher;
+       char *date;
+       char *subject;
+} book_meta_s;
+
+typedef struct {
+       char *media_id;
        char *file_path;
        char *display_name;
        media_content_type_e media_type;
@@ -271,6 +279,7 @@ typedef struct {
        image_meta_s *image_meta;
        video_meta_s *video_meta;
        audio_meta_s *audio_meta;
+       book_meta_s *book_meta;
 } media_info_s;
 
 typedef struct {
@@ -414,9 +423,9 @@ typedef struct _media_content_cb_data {
 #define SELECT_MEDIA_COUNT_FROM_GROUP_BY_STORAGE_ID                    "SELECT COUNT(*) FROM ("SELECT_MEDIA_FROM_GROUP_BY_STORAGE_ID   /*to apply limit condition. */
 #define SELECT_MEDIA_COUNT_FROM_GROUP_NULL             "SELECT COUNT(*) FROM ("SELECT_MEDIA_FROM_GROUP_NULL    /* to apply limit condition. */
 #define SELECT_MEDIA_COUNT_FROM_GROUP_NULL_BY_STORAGE_ID       "SELECT COUNT(*) FROM ("SELECT_MEDIA_FROM_GROUP_NULL_BY_STORAGE_ID      /* to apply limit condition. */
-#define SELECT_MEDIA_COUNT_FROM_FOLDER                 "SELECT COUNT(*) FROM "DB_TABLE_MEDIA" WHERE validity IN (1, 2) AND folder_id='%q'"
+#define SELECT_MEDIA_COUNT_FROM_FOLDER                 "SELECT COUNT(*) FROM "DB_TABLE_MEDIA" WHERE validity IN (1, 2) AND folder_id='%s'"
 #define SELECT_MEDIA_COUNT_FROM_FOLDER_BY_STORAGE_ID           SELECT_MEDIA_COUNT_FROM_FOLDER" AND storage_uuid='%s' "
-#define SELECT_MEDIA_COUNT_FROM_STORAGE                        "SELECT COUNT(*) FROM "DB_TABLE_MEDIA" WHERE validity IN (1, 2) AND storage_uuid='%q'"
+#define SELECT_MEDIA_COUNT_FROM_STORAGE                        "SELECT COUNT(*) FROM "DB_TABLE_MEDIA" WHERE validity IN (1, 2) AND storage_uuid='%s'"
 #define SELECT_MEDIA_COUNT_FROM_TAG                            "SELECT COUNT(*) FROM "DB_VIEW_TAG" WHERE (tag_id=%d AND tag_media_count>0) "
 #define SELECT_MEDIA_COUNT_FROM_PLAYLIST                       "SELECT COUNT(*) FROM "DB_VIEW_PLAYLIST" WHERE (playlist_id=%d and playlist_media_count>0) "
 
@@ -568,7 +577,7 @@ int _media_filter_build_option(filter_h filter, char **result);
 
 #define content_retip_if_fail(expr) do { \
                        if (!(expr)) { \
-                               LOGE(FONT_COLOR_RED"[%ld] Invalid [%s]"FONT_COLOR_RESET, media_content_gettid(), #expr);        \
+                               LOGE(FONT_COLOR_RED"[%ld] Invalid [%s]"FONT_COLOR_RESET, media_content_gettid(), #expr); \
                                return MEDIA_CONTENT_ERROR_INVALID_PARAMETER; \
                        } \
                } while (0)