#ifndef __TIZEN_MEDIA_CONTENT_INTERNAL_H__
#define __TIZEN_MEDIA_CONTENT_INTERNAL_H__
-//#include <media_content_type.h>
+#include <media_content_type.h>
#ifdef __cplusplus
extern "C" {
* Operations include: inserting a new storage in media to the media database, removing storage from database, \n
*/
+/*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(const char *name, media_playlist_h *playlist);
+int media_playlist_insert_to_db_v2(media_playlist_h playlist);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */
/**
* @brief You can use above define to set the condition of playlist filter and order keyword.
+ * @since_tizen 4.0
+ */
+#define PLAYLIST_ID "PLAYLIST_ID" /**< Playlist id */
+
+/**
+ * @brief You can use above define to set the condition of playlist filter and order keyword.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
#define PLAYLIST_MEMBER_ORDER "PLAYLIST_MEMBER_ORDER" /**< Playlist name */
/**
* @brief You can use above define to set the condition of tag filter and order keyword.
+ * @since_tizen 4.0
+ */
+#define TAG_ID "TAG_ID" /**< Tag id */
+
+
+/**
+ * @brief You can use above define to set the condition of tag filter and order keyword.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
#define TAG_MEDIA_COUNT "TAG_MEDIA_COUNT" /**< Media count in tag view */
* @brief You can use above define to set the condition of bookmark filter and order keyword.
* @since_tizen 4.0
*/
+#define BOOKMARK_ID "BOOKMARK_ID" /**< Bookmark id */
+
+/**
+ * @brief You can use above define to set the condition of bookmark filter and order keyword.
+ * @since_tizen 4.0
+ */
#define BOOKMARK_NAME "BOOKMARK_NAME" /**< Bookmark name */
/**
* @brief You can use above define to set the condition of face filter and order keyword.
* @since_tizen 3.0
*/
-#define MEDIA_FACE_TAG "MEDIA_FACE_TAG" /**< face tag */
+#define MEDIA_FACE_TAG "MEDIA_FACE_TAG" /**< Face tag */
+
+/**
+ * @brief You can use above define to set the condition of face filter and order keyword.
+ * @since_tizen 4.0
+ */
+#define MEDIA_FACE_ID "MEDIA_FACE_ID" /**< Face id */
/**
* @}
#define INSERT_BOOKMARK_TO_BOOKMARK "INSERT INTO "DB_TABLE_BOOKMARK" (media_uuid, marked_time, thumbnail_path, name) VALUES ('%q', '%d', %Q, %Q)"
#define SELECT_BOOKMARK_COUNT_BY_MEDIA_ID "SELECT COUNT(*) FROM "BOOKMARK_MEDIA_JOIN" AND b.media_uuid='%s'"
#define SELECT_BOOKMARK_LIST_BY_MEDIA_ID "SELECT b.bookmark_id, b.media_uuid, b.marked_time, b.thumbnail_path, b.name FROM "BOOKMARK_MEDIA_JOIN" AND b.media_uuid='%s'"
+#define SELECT_BOOKMARK_ID_FROM_BOOKMARK "SELECT bookmark_id FROM "DB_TABLE_BOOKMARK" WHERE media_uuid='%s' AND marked_time=%d"
+
#define UPDATE_BOOKMARK_FROM_BOOKMARK "UPDATE "DB_TABLE_BOOKMARK" SET name=%Q WHERE bookmark_id=%d;"
/* Update Meta*/
*
* @post media_tag_update_to_db()
*/
-int media_tag_set_name(media_tag_h tag, char *tag_name);
+int media_tag_set_name(media_tag_h tag, const char *tag_name);
/**
* @brief Updates the media tag to the media database.