Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
ba1d8716
Commit
ba1d8716
authored
Feb 02, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use inlines rather than macros to access input item meta data
I want to use function pointers in a later commit...
parent
540aae33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
37 deletions
+34
-37
include/vlc_input_item.h
include/vlc_input_item.h
+34
-37
No files found.
include/vlc_input_item.h
View file @
ba1d8716
...
...
@@ -163,43 +163,40 @@ VLC_EXPORT( void, input_item_SetDuration, ( input_item_t * p_i, mtime_t i_dura
VLC_EXPORT
(
bool
,
input_item_IsPreparsed
,
(
input_item_t
*
p_i
));
VLC_EXPORT
(
bool
,
input_item_IsArtFetched
,
(
input_item_t
*
p_i
));
#define input_item_SetTitle( item, b ) input_item_SetMeta( item, vlc_meta_Title, b )
#define input_item_SetArtist( item, b ) input_item_SetMeta( item, vlc_meta_Artist, b )
#define input_item_SetGenre( item, b ) input_item_SetMeta( item, vlc_meta_Genre, b )
#define input_item_SetCopyright( item, b ) input_item_SetMeta( item, vlc_meta_Copyright, b )
#define input_item_SetAlbum( item, b ) input_item_SetMeta( item, vlc_meta_Album, b )
#define input_item_SetTrackNum( item, b ) input_item_SetMeta( item, vlc_meta_TrackNumber, b )
#define input_item_SetDescription( item, b ) input_item_SetMeta( item, vlc_meta_Description, b )
#define input_item_SetRating( item, b ) input_item_SetMeta( item, vlc_meta_Rating, b )
#define input_item_SetDate( item, b ) input_item_SetMeta( item, vlc_meta_Date, b )
#define input_item_SetSetting( item, b ) input_item_SetMeta( item, vlc_meta_Setting, b )
#define input_item_SetURL( item, b ) input_item_SetMeta( item, vlc_meta_URL, b )
#define input_item_SetLanguage( item, b ) input_item_SetMeta( item, vlc_meta_Language, b )
#define input_item_SetNowPlaying( item, b ) input_item_SetMeta( item, vlc_meta_NowPlaying, b )
#define input_item_SetPublisher( item, b ) input_item_SetMeta( item, vlc_meta_Publisher, b )
#define input_item_SetEncodedBy( item, b ) input_item_SetMeta( item, vlc_meta_EncodedBy, b )
#define input_item_SetArtURL( item, b ) input_item_SetMeta( item, vlc_meta_ArtworkURL, b )
#define input_item_SetTrackID( item, b ) input_item_SetMeta( item, vlc_meta_TrackID, b )
#define input_item_GetTitle( item ) input_item_GetMeta( item, vlc_meta_Title )
#define input_item_GetArtist( item ) input_item_GetMeta( item, vlc_meta_Artist )
#define input_item_GetGenre( item ) input_item_GetMeta( item, vlc_meta_Genre )
#define input_item_GetCopyright( item ) input_item_GetMeta( item, vlc_meta_Copyright )
#define input_item_GetAlbum( item ) input_item_GetMeta( item, vlc_meta_Album )
#define input_item_GetTrackNum( item ) input_item_GetMeta( item, vlc_meta_TrackNumber )
#define input_item_GetDescription( item ) input_item_GetMeta( item, vlc_meta_Description )
#define input_item_GetRating( item ) input_item_GetMeta( item, vlc_meta_Rating )
#define input_item_GetDate( item ) input_item_GetMeta( item, vlc_meta_Date )
#define input_item_GetGetting( item ) input_item_GetMeta( item, vlc_meta_Getting )
#define input_item_GetURL( item ) input_item_GetMeta( item, vlc_meta_URL )
#define input_item_GetLanguage( item ) input_item_GetMeta( item, vlc_meta_Language )
#define input_item_GetNowPlaying( item ) input_item_GetMeta( item, vlc_meta_NowPlaying )
#define input_item_GetPublisher( item ) input_item_GetMeta( item, vlc_meta_Publisher )
#define input_item_GetEncodedBy( item ) input_item_GetMeta( item, vlc_meta_EncodedBy )
#define input_item_GetArtURL( item ) input_item_GetMeta( item, vlc_meta_ArtworkURL )
#define input_item_GetTrackID( item ) input_item_GetMeta( item, vlc_meta_TrackID )
#define input_item_GetSetting( item ) input_item_GetMeta( item, vlc_meta_Setting )
#define INPUT_META( name ) \
static inline \
void input_item_Set ## name (input_item_t *p_input, const char *val) \
{ \
input_item_SetMeta (p_input, vlc_meta_ ## name, val); \
} \
static inline \
char *input_item_Get ## name (input_item_t *p_input) \
{ \
return input_item_GetMeta (p_input, vlc_meta_ ## name); \
}
INPUT_META
(
Title
)
INPUT_META
(
Artist
)
INPUT_META
(
Genre
)
INPUT_META
(
Copyright
)
INPUT_META
(
Album
)
INPUT_META
(
TrackNumber
)
INPUT_META
(
Description
)
INPUT_META
(
Rating
)
INPUT_META
(
Date
)
INPUT_META
(
Setting
)
INPUT_META
(
URL
)
INPUT_META
(
Language
)
INPUT_META
(
NowPlaying
)
INPUT_META
(
Publisher
)
INPUT_META
(
EncodedBy
)
INPUT_META
(
ArtworkURL
)
INPUT_META
(
TrackID
)
#define input_item_SetTrackNum input_item_SetTrackNumber
#define input_item_GetTrackNum input_item_GetTrackNumber
#define input_item_SetArtURL input_item_SetArtworkURL
#define input_item_GetArtURL input_item_GetArtworkURL
VLC_EXPORT
(
char
*
,
input_item_GetInfo
,
(
input_item_t
*
p_i
,
const
char
*
psz_cat
,
const
char
*
psz_name
)
);
VLC_EXPORT
(
int
,
input_item_AddInfo
,
(
input_item_t
*
p_i
,
const
char
*
psz_cat
,
const
char
*
psz_name
,
const
char
*
psz_format
,
...
)
LIBVLC_FORMAT
(
4
,
5
)
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment