]> git.sesse.net Git - vlc/blob - include/vlc_meta_engine.h
Start of meta engine stuff. src/input/input.c needs to be fixed a bit. I'll finish...
[vlc] / include / vlc_meta_engine.h
1 /*****************************************************************************
2  * vlc_meta_engine.h: meta engine module.
3  *****************************************************************************
4  * Copyright (C) 2006 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Antoine Cellerier <dionoea A videolan D org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 #ifndef _VLC_META_ENGINE_H
25 #define _VLC_META_ENGINE_H
26
27 #include "vlc_meta.h"
28
29 #define VLC_META_ENGINE_TITLE           0x00000001
30 #define VLC_META_ENGINE_AUTHOR          0x00000002
31 #define VLC_META_ENGINE_ARTIST          0x00000004
32 #define VLC_META_ENGINE_GENRE           0x00000008
33 #define VLC_META_ENGINE_COPYRIGHT       0x00000010
34 #define VLC_META_ENGINE_COLLECTION      0x00000020
35 #define VLC_META_ENGINE_SEQ_NUM         0x00000040
36 #define VLC_META_ENGINE_DESCRIPTION     0x00000080
37 #define VLC_META_ENGINE_RATING          0x00000100
38 #define VLC_META_ENGINE_DATE            0x00000200
39 #define VLC_META_ENGINE_URL             0x00000400
40 #define VLC_META_ENGINE_LANGUAGE        0x00000800
41
42 #define VLC_META_ENGINE_ART_URL         0x00001000
43
44 #define VLC_META_ENGINE_MB_ARTIST_ID    0x00002000
45 #define VLC_META_ENGINE_MB_RELEASE_ID   0x00004000
46 #define VLC_META_ENGINE_MB_TRACK_ID     0x00008000
47 #define VLC_META_ENGINE_MB_TRM_ID       0x00010000
48
49 typedef struct meta_engine_sys_t meta_engine_sys_t;
50
51 struct meta_engine_t
52 {
53     VLC_COMMON_MEMBERS
54
55     module_t *p_module;
56
57     uint32_t i_mandatory; /**< Stuff which we really need to get */
58     uint32_t i_optional; /**< Stuff which we'd like to have */
59
60     input_item_t *p_item;
61 };
62
63 #endif