Remove TIZEN_FEATURE_COMPATIBILITY
[platform/core/api/media-content.git] / include_product / media_content_internal.h
index 4f1a55f..011ae19 100755 (executable)
@@ -16,8 +16,8 @@
 
 
 
-#ifndef __TIZEN_MEDIA_CONTENT_INTERNAL_H__
-#define __TIZEN_MEDIA_CONTENT_INTERNAL_H__
+#ifndef __TIZEN_CONTENT_MEDIA_CONTENT_INTERNAL_H__
+#define __TIZEN_CONTENT_MEDIA_CONTENT_INTERNAL_H__
 
 #include <media_content_type.h>
 
@@ -32,104 +32,47 @@ extern "C" {
  *        Operations include: inserting a new storage in media to the media database, removing storage from database, \n
  */
 
-/**
- * @brief Gets the storage scan status of media storage.
- * @since_tizen @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif
- *
- * @param[in]  storage The media storage handle
- * @param[out] scan_status  The storage type of the media storage
- *
- * @return @c 0 on success,
- *         otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE              Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- */
-int media_storage_get_scan_status(const char *storage_uuid, media_storage_scan_status_e *scan_status);
-
-typedef enum {
-       MEDIA_CONTENT_SCAN_PARTIAL_COMPLETE             = 2,
-       MEDIA_CONTENT_SCAN_COMPLETE                     = 3,
-       MEDIA_CONTENT_EXTRACT_COMPLETE          = 4,
-} media_content_complete_phase_e;
-
-typedef void (*media_scan_completed_cb_v2)(media_content_error_e error, media_content_complete_phase_e complete_phase, void * user_data);
-
-typedef struct _media_content_scan_cb_data_v2 {
-       media_scan_completed_cb_v2 callback;
-       void *user_data;
-} media_content_scan_cb_data_v2;
-
-int media_content_scan_folder_v2(const char *path, bool is_recursive, media_scan_completed_cb_v2 callback, void *user_data);
-
-int media_info_get_media_info_by_path_from_db(const char* path, media_info_h* media);
-
-#ifdef _USE_SENIOR_MODE
-int media_info_insert_to_db_with_contact_data(const char *path, const char* contact, const char* app_data, media_info_h *info);
-int media_info_delete_contact_from_db(const char* contact, const char* storage_id);
-int media_info_delete_item(const char *media_id);
-int media_info_get_contact(media_info_h media, char **contact);
-int media_info_get_app_data(media_info_h media, char **app_data);
-int media_info_set_contact(media_info_h media, const char *contact);
-int media_info_set_app_data(media_info_h media, const char *app_data);
-#endif
-
-#define PVR_DURATION                           "PVR_DURATION"
-#define PVR_TIME_ZONE                          "PVR_TIME_ZONE"
-#define PVR_PTC                                                "PVR_PTC"
-#define PVR_MAJOR                                      "PVR_MAJOR"
-#define PVR_MINOR                                      "PVR_MINOR"
-#define PVR_CHANNEL_TYPE                       "PVR_CHANNEL_TYPE"
-#define PVR_CHANNEL_NAME                       "PVR_CHANNEL_NAME"
-#define PVR_CHANNEL_NUM                                "PVR_CHANNEL_NUM"
-#define PVR_PROGRAM_TITLE                      "PVR_PROGRAM_TITLE"
-#define PVR_PROGRAM_NUM                        "PVR_PROGRAM_NUM"
-#define PVR_PROGRAM_CRID                       "PVR_PROGRAM_CRID"
-#define PVR_GUIDANCE                           "PVR_GUIDANCE"
-#define PVR_SYNOPSIS                           "PVR_SYNOPSIS"
-#define PVR_GENRE                                      "PVR_GENRE"
-#define PVR_LANGUAGE                           "PVR_LANGUAGE"
-#define PVR_EMBARGO_TIME                       "PVR_EMBARGO_TIME"
-#define PVR_EXPIRY_TIME                                "PVR_EXPIRY_TIME"
-#define PVR_START_TIME                         "PVR_START_TIME"
-#define PVR_PROGRAM_START_TIME "PVR_PROGRAM_START_TIME"
-#define PVR_PROGRAM_END_TIME           "PVR_PROGRAM_END_TIME"
-#define PVR_PROGRAM_DATE                       "PVR_PROGRAM_DATE"
-#define PVR_PARENTAL_RATING            "PVR_PARENTAL_RATING"
-#define PVR_TIMER_RECORD                       "PVR_TIMER_RECORD"
-#define PVR_SERIES_RECORD                      "PVR_SERIES_RECORD"
-#define PVR_HD                                         "PVR_HD"
-#define PVR_SUBTITLE                           "PVR_SUBTITLE"
-#define PVR_TTX                                                "PVR_TTX"
-#define PVR_AD                                         "PVR_AD"
-#define PVR_HARDOF_HEARINGRADIO        "PVR_HARDOF_HEARINGRADIO"
-#define PVR_DATA_SERVICE                       "PVR_DATA_SERVICE"
-#define PVR_CONTENT_LOCK                       "PVR_CONTENT_LOCK"
-#define PVR_CONTENT_WATCH              "PVR_CONTENT_WATCH"
-#define PVR_CONTENT_HAS_AUDIO_ONLY     "PVR_CONTENT_HAS_AUDIO_ONLY"
-#define PVR_CONTENT_IS_LOCAL_RECORD    "PVR_CONTENT_IS_LOCAL_RECORD"
-#define PVR_CONTENT_RESOLUTION         "PVR_CONTENT_RESOLUTION"
-#define PVR_CONTENT_ASPECTRATIO                "PVR_CONTENT_ASPECTRATIO"
-#define PVR_MODIFIED_MONTH             "PVR_MODIFIED_MONTH"
-#define PVR_MODIFIED_DATE              "PVR_MODIFIED_DATE"
-#define PVR_SPORTS_TYPE                        "PVR_SPORTS_TYPE"
-#define PVR_GUIDANCE_LENGTH            "PVR_GUIDANCE_LENGTH"
-#define PVR_TVMODE                                     "PVR_TVMODE"
-#define PVR_PLAY_COUNT                         "PVR_PLAY_COUNT"
-#define PVR_PRIVATE_DATA                       "PVR_PRIVATE_DATA"
-#define UHD_CONTENT_TITLE              "UHD_CONTENT_TITLE"
-#define UHD_RELEASE_DATE               "UHD_RELEASE_DATE"
-#define UHD_SUB_TYPE                   "UHD_SUB_TYPE"
-#define UHD_FILE_NAME                  "UHD_FILE_NAME"
-#define UHD_FOLDER_ID                  "UHD_FOLDER_ID"
-#define UHD_PLAYED_COUNT               "UHD_PLAYED_COUNT"
-
-typedef void *media_pvr_h;
-typedef void *media_uhd_h;
-typedef bool (*media_pvr_cb)(media_pvr_h pvr, void *user_data);
-typedef bool (*media_uhd_cb)(media_uhd_h uhd, void *user_data);
+/*Bookmark for C#*/
+int media_bookmark_create(const char *media_id, time_t time, media_bookmark_h *bookmark);
+int media_bookmark_set_thumbnail_path(media_bookmark_h bookmark, const char *path);
+int media_bookmark_insert_to_db_v2(media_bookmark_h bookmark);
+
+/*Playlist for C#*/
+int media_playlist_create(media_playlist_h *playlist);
+int media_playlist_get_play_order_v2(int playlist_id, int playlist_member_id, int *play_order);
+int media_playlist_insert_to_db_v2(media_playlist_h playlist);
+int media_playlist_update_to_db_v2(int playlist_id, media_playlist_h playlist);
+
+/*Tag for C#*/
+int media_tag_create(media_tag_h *tag);
+int media_tag_insert_to_db_v2(media_tag_h tag);
+int media_tag_update_to_db_v2(int tag_id, media_tag_h tag);
+
+/*Filter for C#*/
+int media_filter_set_condition_v2(filter_h filter, const char *condition);
+int media_filter_get_condition_v2(filter_h filter, char **condition);
+int media_filter_set_order_v2(filter_h filter, const char *order);
+int media_filter_get_order_v2(filter_h filter, char **order);
+
+
+/* Only for system session process */
+int media_content_connect_with_uid(uid_t uid);
+
+/* For web API */
+
+int image_meta_set_orientation(image_meta_h image, media_content_orientation_e orientation) TIZEN_DEPRECATED_API;
+
+int image_meta_update_to_db(image_meta_h image) TIZEN_DEPRECATED_API;
+
+int media_info_set_description(media_info_h media, const char *description) TIZEN_DEPRECATED_API;
+
+int media_info_set_longitude(media_info_h media, double longitude) TIZEN_DEPRECATED_API;
+
+int media_info_set_latitude(media_info_h media, double latitude) TIZEN_DEPRECATED_API;
+
+int media_info_set_rating(media_info_h media, int rating) TIZEN_DEPRECATED_API;
 
 #ifdef __cplusplus
 }
 #endif /* __cplusplus */
-#endif /*__TIZEN_MEDIA_CONTENT_INTERNAL_H__*/
+#endif /*__TIZEN_CONTENT_MEDIA_CONTENT_INTERNAL_H__*/