Release 4.0.0-preview1-00314
[platform/core/csapi/tizenfx.git] / src / Tizen.Content.MediaContent / Interop / Interop.Album.cs
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 using System;
18 using System.Runtime.InteropServices;
19 using Tizen.Content.MediaContent;
20
21 internal static partial class Interop
22 {
23     internal static partial class Album
24     {
25         [DllImport(Libraries.MediaContent, EntryPoint = "media_album_get_album_count_from_db")]
26         internal static extern MediaContentError GetAlbumCountFromDb(FilterHandle filter, out int count);
27
28         [DllImport(Libraries.MediaContent, EntryPoint = "media_album_get_media_count_from_db")]
29         internal static extern MediaContentError GetMediaCountFromDb(int albumId, FilterHandle filter, out int count);
30
31         [DllImport(Libraries.MediaContent, EntryPoint = "media_album_destroy")]
32         internal static extern MediaContentError Destroy(IntPtr album);
33
34         [DllImport(Libraries.MediaContent, EntryPoint = "media_album_get_album_id")]
35         internal static extern MediaContentError GetId(IntPtr album, out int albumId);
36
37         [DllImport(Libraries.MediaContent, EntryPoint = "media_album_get_name")]
38         internal static extern MediaContentError GetName(IntPtr album, out IntPtr value);
39
40         [DllImport(Libraries.MediaContent, EntryPoint = "media_album_get_artist")]
41         internal static extern MediaContentError GetArtist(IntPtr album, out IntPtr value);
42
43         [DllImport(Libraries.MediaContent, EntryPoint = "media_album_get_album_art")]
44         internal static extern MediaContentError GetAlbumArt(IntPtr album, out IntPtr value);
45
46         [DllImport(Libraries.MediaContent, EntryPoint = "media_album_get_album_from_db")]
47         internal static extern MediaContentError GetAlbumFromDb(int albumId, out IntPtr album);
48
49         [DllImport(Libraries.MediaContent, EntryPoint = "media_album_foreach_album_from_db")]
50         internal static extern MediaContentError ForeachAlbumFromDb(FilterHandle filter,
51             Common.ItemCallback cb, IntPtr userData = default(IntPtr));
52
53         [DllImport(Libraries.MediaContent, EntryPoint = "media_album_foreach_media_from_db")]
54         internal static extern MediaContentError ForeachMediaFromDb(int albumId, FilterHandle filter,
55             Common.ItemCallback callback, IntPtr userData = default(IntPtr));
56     }
57 }