2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 using System.Runtime.InteropServices;
20 using Tizen.Content.MediaContent;
22 internal partial class Interop
24 internal static partial class MediaBookmark
26 [DllImport(Libraries.MediaContent, EntryPoint = "media_bookmark_insert_to_db")]
27 internal static extern MediaContentError InsertToDb(string media_id, uint time, string thumbnail_path);
29 [DllImport(Libraries.MediaContent, EntryPoint = "media_bookmark_delete_from_db")]
30 internal static extern MediaContentError DeleteFromDb(int bookmark_id);
32 [DllImport(Libraries.MediaContent, EntryPoint = "media_bookmark_get_bookmark_count_from_db")]
33 internal static extern MediaContentError GetBookmarkCountFromDb(IntPtr filter, out int bookmark_count);
35 [DllImport(Libraries.MediaContent, EntryPoint = "media_bookmark_clone")]
36 internal static extern MediaContentError Clone(out IntPtr dst, IntPtr src);
38 [DllImport(Libraries.MediaContent, EntryPoint = "media_bookmark_destroy")]
39 internal static extern MediaContentError Destroy(IntPtr bookmark);
41 [DllImport(Libraries.MediaContent, EntryPoint = "media_bookmark_get_bookmark_id")]
42 internal static extern MediaContentError GetBookmarkId(IntPtr bookmark, out int bookmark_id);
44 [DllImport(Libraries.MediaContent, EntryPoint = "media_bookmark_get_marked_time")]
45 internal static extern MediaContentError GetMarkedTime(IntPtr bookmark, out uint marked_time);
47 [DllImport(Libraries.MediaContent, EntryPoint = "media_bookmark_get_thumbnail_path")]
48 internal static extern MediaContentError GetThumbnailPath(IntPtr bookmark, out IntPtr filePath);