X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=client%2Fsal_service_storage_internal.h;h=8f7df0a27343bd82514889988f82da5fc1432097;hb=db4a5672819b978ab72f4b33d0f3d2742999e5fa;hp=4e2a024c2bee9f816b8836a338e58f9d8d994d2f;hpb=17dda4b59508505280da722605be87e1752a48d3;p=platform%2Fcore%2Fconvergence%2Fservice-adaptor.git diff --git a/client/sal_service_storage_internal.h b/client/sal_service_storage_internal.h index 4e2a024..8f7df0a 100644 --- a/client/sal_service_storage_internal.h +++ b/client/sal_service_storage_internal.h @@ -57,6 +57,95 @@ typedef struct _service_storage_cloud_file_s int service_storage_cloud_start(service_storage_cloud_file_h file); int service_storage_cloud_stop(service_storage_cloud_file_h file); +/*================================================================================================== + 2.4 FUNCTION PROTOTYPES +==================================================================================================*/ + +/** + * Storage adaptor content type + */ +typedef enum _service_storage_file_content_type_e +{ + SERVICE_ADAPTOR_STORAGE_CONTENT_TYPE_DEFAULT = -1, // initalize value + + SERVICE_ADAPTOR_STORAGE_CONTENT_TYPE_IMGAE = 160, + SERVICE_ADAPTOR_STORAGE_CONTENT_TYPE_VIDEO = 161, + SERVICE_ADAPTOR_STORAGE_CONTENT_TYPE_SOUND = 162, + SERVICE_ADAPTOR_STORAGE_CONTENT_TYPE_MUSIC = 163, + SERVICE_ADAPTOR_STORAGE_CONTENT_TYPE_OTHER = 164, + SERVICE_ADAPTOR_STORAGE_CONTENT_TYPE_DOCUMENT = 165, + SERVICE_ADAPTOR_STORAGE_CONTENT_TYPE_THUMBNAIL = 166, + + SERVICE_ADAPTOR_STORAGE_CONTENT_TYPE_CHUNK_MASK = 320, + SERVICE_ADAPTOR_STORAGE_CONTENT_TYPE_IMGAE_CHUNK = 480, + SERVICE_ADAPTOR_STORAGE_CONTENT_TYPE_VIDEO_CHUNK = 481, + SERVICE_ADAPTOR_STORAGE_CONTENT_TYPE_SOUND_CHUNK = 482, + SERVICE_ADAPTOR_STORAGE_CONTENT_TYPE_MUSIC_CHUNK = 483, + SERVICE_ADAPTOR_STORAGE_CONTENT_TYPE_OTHER_CHUNK = 484, + SERVICE_ADAPTOR_STORAGE_CONTENT_TYPE_DOCUMENT_CHUNK = 485, + SERVICE_ADAPTOR_STORAGE_CONTENT_TYPE_THUMBNAIL_CHUNK = 486, + + SERVICE_ADAPTOR_STORAGE_CONTENT_TYPE_FOLDER = 1024, + SERVICE_ADAPTOR_STORAGE_CONTENT_TYPE_METADATA = 2048, +} service_storage_content_type_e; + +typedef struct _service_storage_media_meta_s +{ + char *mime_type; + char *title; + char *album; + char *artist; + char *genere; + char *recorded_date; + int width; + int height; + int duration; + char *copyright; + char *track_num; + char *description; + char *composer; + char *year; + int bitrate; + int samplerate; + int channel; + char *extra_media_meta; +} service_storage_media_meta_s; + +typedef struct _service_storage_cloud_meta_s +{ + char *service_name; + unsigned long long usage_byte; + unsigned long long quota_byte; + char *extra_cloud_meta; +} service_storage_cloud_meta_s; + +/** +* @brief Describes file information description +*/ +struct _service_storage_file_s +{ + char *plugin_name; /**< specifies plugin name generated file_info */ + char *object_id; /**< specifies file object id be used in storage */ + char *storage_path; /**< specifies file path in storage */ + unsigned long long file_size; /**< specifies file size (recomend byte)*/ + unsigned long long created_time; /**< specifies timestamp */ + unsigned long long modified_time; /**< specifies timestamp */ + int file_info_index; /**< specifies file info index (wide use; e.g : chunk upload, multi download)*/ + service_storage_content_type_e content_type; /**< specifies file content type (reference service_adaptor_file_content_type_e) */ + + service_storage_media_meta_s *media_meta; + service_storage_cloud_meta_s *cloud_meta; + char *extra_file_info; /**< specifies content name in metadata */ +}; + + +typedef struct _service_storage_file_s service_storage_file_s; + +/** +* @brief The handle for File Description +*/ +typedef struct _service_storage_file_s *service_storage_file_h; + #ifdef __cplusplus } #endif