X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include_product%2Fmedia_content_type.h;h=4d41d1e55c3ff03d242d83c743e9debe467a1cd5;hb=245f2e3358896647c0a02c86c5917f9b50058f8a;hp=8b1ad0466dd85cf43177861cd834afee794ca3d1;hpb=05e80c08c239aebb3032abc9b015c6337dd5d55f;p=platform%2Fcore%2Fapi%2Fmedia-content.git diff --git a/include_product/media_content_type.h b/include_product/media_content_type.h index 8b1ad04..4d41d1e 100755 --- a/include_product/media_content_type.h +++ b/include_product/media_content_type.h @@ -232,6 +232,20 @@ typedef enum { MEDIA_GROUP_MAX, } media_group_e; +typedef struct { + char *storage_id; + char *storage_path; + int storage_type; +} media_storage_s; + +/** + * @ingroup CAPI_CONTENT_MEDIA_STORAGE_MODULE + * @deprecated Deprecated since 5.0. + * @brief The structure type for the Media storage handle. + * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif + */ +typedef void *media_storage_h; + /** * @ingroup CAPI_CONTENT_MEDIA_INFO_MODULE * @brief The structure type for the Media info handle. @@ -618,6 +632,27 @@ typedef bool (*media_album_cb)(media_album_h album, void *user_data); typedef bool (*media_group_cb)(const char *group_name, void *user_data); /** + * @ingroup CAPI_CONTENT_MEDIA_STORAGE_MODULE + * @brief Called for every storage in the obtained list of storages. + * @details Iterates over a media storage list. + * + * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif + * + * @remarks You should not destroy @a storage returned by this function. \n + * The callback is called in the main loop. + * + * @param[in] storage The handle of the media storage + * @param[in] user_data The user data passed from the foreach function + * + * @return @c true to continue with the next iteration of the loop, + * otherwise @c false to break out of the loop + * + * @pre media_storage_foreach_storage_from_db() will invoke this function. + * @see media_storage_foreach_storage_from_db() + */ +typedef bool (*media_storage_cb)(media_storage_h storage, void *user_data); + +/** * @ingroup CAPI_CONTENT_MEDIA_FACE_MODULE * @brief Called for every face in the obtained list of face. * @details Iterates over a media face list.