33 typedef enum vlc_meta_type_t
55 #define VLC_META_TYPE_COUNT 18
57 #define ITEM_PREPARSED 1
58 #define ITEM_ARTURL_FETCHED 2
59 #define ITEM_ART_FETCHED 4
60 #define ITEM_ART_NOTFOUND 8
67 VLC_API vlc_meta_t * vlc_meta_New(
void ) VLC_USED;
68 VLC_API
void vlc_meta_Delete( vlc_meta_t *m );
69 VLC_API
void vlc_meta_Set( vlc_meta_t *p_meta, vlc_meta_type_t meta_type, const
char *psz_val );
70 VLC_API const
char * vlc_meta_Get( const vlc_meta_t *p_meta, vlc_meta_type_t meta_type );
72 VLC_API
void vlc_meta_AddExtra( vlc_meta_t *m, const
char *psz_name, const
char *psz_value );
73 VLC_API const
char * vlc_meta_GetExtra( const vlc_meta_t *m, const
char *psz_name );
74 VLC_API
unsigned vlc_meta_GetExtraCount( const vlc_meta_t *m );
82 VLC_API
void vlc_meta_Merge( vlc_meta_t *dst, const vlc_meta_t *src );
84 VLC_API
int vlc_meta_GetStatus( vlc_meta_t *m );
85 VLC_API
void vlc_meta_SetStatus( vlc_meta_t *m,
int status );
94 ALBUM_ART_WHEN_PLAYED,
103 const char *psz_file;
111 #define vlc_meta_SetTitle( meta, b ) vlc_meta_Set( meta, vlc_meta_Title, b )
112 #define vlc_meta_SetArtist( meta, b ) vlc_meta_Set( meta, vlc_meta_Artist, b )
113 #define vlc_meta_SetGenre( meta, b ) vlc_meta_Set( meta, vlc_meta_Genre, b )
114 #define vlc_meta_SetCopyright( meta, b ) vlc_meta_Set( meta, vlc_meta_Copyright, b )
115 #define vlc_meta_SetAlbum( meta, b ) vlc_meta_Set( meta, vlc_meta_Album, b )
116 #define vlc_meta_SetTrackNum( meta, b ) vlc_meta_Set( meta, vlc_meta_TrackNumber, b )
117 #define vlc_meta_SetDescription( meta, b ) vlc_meta_Set( meta, vlc_meta_Description, b )
118 #define vlc_meta_SetRating( meta, b ) vlc_meta_Set( meta, vlc_meta_Rating, b )
119 #define vlc_meta_SetDate( meta, b ) vlc_meta_Set( meta, vlc_meta_Date, b )
120 #define vlc_meta_SetSetting( meta, b ) vlc_meta_Set( meta, vlc_meta_Setting, b )
121 #define vlc_meta_SetURL( meta, b ) vlc_meta_Set( meta, vlc_meta_URL, b )
122 #define vlc_meta_SetLanguage( meta, b ) vlc_meta_Set( meta, vlc_meta_Language, b )
123 #define vlc_meta_SetNowPlaying( meta, b ) vlc_meta_Set( meta, vlc_meta_NowPlaying, b )
124 #define vlc_meta_SetPublisher( meta, b ) vlc_meta_Set( meta, vlc_meta_Publisher, b )
125 #define vlc_meta_SetEncodedBy( meta, b ) vlc_meta_Set( meta, vlc_meta_EncodedBy, b )
126 #define vlc_meta_SetArtURL( meta, b ) vlc_meta_Set( meta, vlc_meta_ArtworkURL, b )
127 #define vlc_meta_SetTrackID( meta, b ) vlc_meta_Set( meta, vlc_meta_TrackID, b )
129 #define VLC_META_TITLE vlc_meta_TypeToLocalizedString( vlc_meta_Title )
130 #define VLC_META_ARTIST vlc_meta_TypeToLocalizedString( vlc_meta_Artist )
131 #define VLC_META_GENRE vlc_meta_TypeToLocalizedString( vlc_meta_Genre )
132 #define VLC_META_COPYRIGHT vlc_meta_TypeToLocalizedString( vlc_meta_Copyright )
133 #define VLC_META_ALBUM vlc_meta_TypeToLocalizedString( vlc_meta_Album )
134 #define VLC_META_TRACK_NUMBER vlc_meta_TypeToLocalizedString( vlc_meta_TrackNumber )
135 #define VLC_META_DESCRIPTION vlc_meta_TypeToLocalizedString( vlc_meta_Description )
136 #define VLC_META_RATING vlc_meta_TypeToLocalizedString( vlc_meta_Rating )
137 #define VLC_META_DATE vlc_meta_TypeToLocalizedString( vlc_meta_Date )
138 #define VLC_META_SETTING vlc_meta_TypeToLocalizedString( vlc_meta_Setting )
139 #define VLC_META_URL vlc_meta_TypeToLocalizedString( vlc_meta_URL )
140 #define VLC_META_LANGUAGE vlc_meta_TypeToLocalizedString( vlc_meta_Language )
141 #define VLC_META_NOW_PLAYING vlc_meta_TypeToLocalizedString( vlc_meta_NowPlaying )
142 #define VLC_META_PUBLISHER vlc_meta_TypeToLocalizedString( vlc_meta_Publisher )
143 #define VLC_META_ENCODED_BY vlc_meta_TypeToLocalizedString( vlc_meta_EncodedBy )
144 #define VLC_META_ART_URL vlc_meta_TypeToLocalizedString( vlc_meta_ArtworkURL )
145 #define VLC_META_TRACKID vlc_meta_TypeToLocalizedString( vlc_meta_TrackID )
Definition: vlc_objects.h:42