vlc_input_item.h File Reference

This file defines functions, structures and enums for input items in vlc. More...

Include dependency graph for vlc_input_item.h:

Go to the source code of this file.

Data Structures

struct  info_t
struct  info_category_t
struct  input_item_t
struct  input_stats_t

Defines

#define VLC__INPUT_ITEM_H   1
#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_item_NewExt(a, b, c, d, e, f, g)   __input_item_NewExt( VLC_OBJECT(a),b,c,d,e,f,g)
 This function creates a new input_item_t with the provided informations.
#define input_item_New(a, b, c)   input_item_NewExt( a, b, c, 0, NULL, 0, -1 )
 This function creates a new input_item_t with the provided informations.

Enumerations

enum  input_item_type_e {
  ITEM_TYPE_UNKNOWN, ITEM_TYPE_FILE, ITEM_TYPE_DIRECTORY, ITEM_TYPE_DISC,
  ITEM_TYPE_CDDA, ITEM_TYPE_CARD, ITEM_TYPE_NET, ITEM_TYPE_PLAYLIST,
  ITEM_TYPE_NODE, ITEM_TYPE_NUMBER
}
enum  input_item_option_e { VLC_INPUT_OPTION_TRUSTED = 0x2, VLC_INPUT_OPTION_UNIQUE = 0x100 }
 Option flags. More...

Functions

void input_item_CopyOptions (input_item_t *p_parent, input_item_t *p_child)
void input_item_SetName (input_item_t *p_item, const char *psz_name)
void input_item_AddSubItem (input_item_t *p_parent, input_item_t *p_child)
int input_item_AddOption (input_item_t *, const char *, unsigned i_flags)
 This function allows to add an option to an existing input_item_t.
bool input_item_HasErrorWhenReading (input_item_t *)
void input_item_SetMeta (input_item_t *, vlc_meta_type_t meta_type, const char *psz_val)
bool input_item_MetaMatch (input_item_t *p_i, vlc_meta_type_t meta_type, const char *psz)
char * input_item_GetMeta (input_item_t *p_i, vlc_meta_type_t meta_type)
char * input_item_GetName (input_item_t *p_i)
char * input_item_GetTitleFbName (input_item_t *p_i)
char * input_item_GetURI (input_item_t *p_i)
void input_item_SetURI (input_item_t *p_i, const char *psz_uri)
mtime_t input_item_GetDuration (input_item_t *p_i)
void input_item_SetDuration (input_item_t *p_i, mtime_t i_duration)
bool input_item_IsPreparsed (input_item_t *p_i)
bool input_item_IsArtFetched (input_item_t *p_i)
char * input_item_GetInfo (input_item_t *p_i, const char *psz_cat, const char *psz_name)
 Get a info item from a given category in a given input item.
int input_item_AddInfo (input_item_t *p_i, const char *psz_cat, const char *psz_name, const char *psz_format,...)
int input_item_DelInfo (input_item_t *p_i, const char *psz_cat, const char *psz_name)
input_item_tinput_item_NewWithType (vlc_object_t *, const char *psz_uri, const char *psz_name, int i_options, const char *const *ppsz_options, unsigned i_option_flags, mtime_t i_duration, int i_type)
 This function creates a new input_item_t with the provided informations.
input_item_t__input_item_NewExt (vlc_object_t *, const char *psz_uri, const char *psz_name, int i_options, const char *const *ppsz_options, unsigned i_option_flags, mtime_t i_duration)


Detailed Description

This file defines functions, structures and enums for input items in vlc.


Define Documentation

#define input_item_GetAlbum ( item   )     input_item_GetMeta( item, vlc_meta_Album )

#define input_item_GetArtist ( item   )     input_item_GetMeta( item, vlc_meta_Artist )

#define input_item_GetArtURL ( item   )     input_item_GetMeta( item, vlc_meta_ArtworkURL )

#define input_item_GetCopyright ( item   )     input_item_GetMeta( item, vlc_meta_Copyright )

#define input_item_GetDate ( item   )     input_item_GetMeta( item, vlc_meta_Date )

#define input_item_GetDescription ( item   )     input_item_GetMeta( item, vlc_meta_Description )

#define input_item_GetEncodedBy ( item   )     input_item_GetMeta( item, vlc_meta_EncodedBy )

#define input_item_GetGenre ( item   )     input_item_GetMeta( item, vlc_meta_Genre )

#define input_item_GetGetting ( item   )     input_item_GetMeta( item, vlc_meta_Getting )

#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_GetRating ( item   )     input_item_GetMeta( item, vlc_meta_Rating )

#define input_item_GetSetting ( item   )     input_item_GetMeta( item, vlc_meta_Setting )

#define input_item_GetTitle ( item   )     input_item_GetMeta( item, vlc_meta_Title )

#define input_item_GetTrackID ( item   )     input_item_GetMeta( item, vlc_meta_TrackID )

Referenced by EvaluateRPN(), and PlaylistListNode().

#define input_item_GetTrackNum ( item   )     input_item_GetMeta( item, vlc_meta_TrackNumber )

#define input_item_GetURL ( item   )     input_item_GetMeta( item, vlc_meta_URL )

#define input_item_New ( a,
b,
 )     input_item_NewExt( a, b, c, 0, NULL, 0, -1 )

#define input_item_NewExt ( a,
b,
c,
d,
e,
f,
 )     __input_item_NewExt( VLC_OBJECT(a),b,c,d,e,f,g)

This function creates a new input_item_t with the provided informations.

Provided for convenience.

Referenced by __vlclua_playlist_add_internal(), Demux(), libvlc_media_list_add_file_content(), playlist_AddExt(), playlist_Import(), and playlist_MLLoad().

#define input_item_SetAlbum ( item,
 )     input_item_SetMeta( item, vlc_meta_Album, b )

#define input_item_SetArtist ( item,
 )     input_item_SetMeta( item, vlc_meta_Artist, b )

#define input_item_SetArtURL ( item,
 )     input_item_SetMeta( item, vlc_meta_ArtworkURL, b )

#define input_item_SetCopyright ( item,
 )     input_item_SetMeta( item, vlc_meta_Copyright, b )

#define input_item_SetDate ( item,
 )     input_item_SetMeta( item, vlc_meta_Date, b )

#define input_item_SetDescription ( item,
 )     input_item_SetMeta( item, vlc_meta_Description, b )

#define input_item_SetEncodedBy ( item,
 )     input_item_SetMeta( item, vlc_meta_EncodedBy, b )

#define input_item_SetGenre ( item,
 )     input_item_SetMeta( item, vlc_meta_Genre, b )

#define input_item_SetLanguage ( item,
 )     input_item_SetMeta( item, vlc_meta_Language, b )

Referenced by VLCInfo::saveMetaData:.

#define input_item_SetNowPlaying ( item,
 )     input_item_SetMeta( item, vlc_meta_NowPlaying, b )

#define input_item_SetPublisher ( item,
 )     input_item_SetMeta( item, vlc_meta_Publisher, b )

#define input_item_SetRating ( item,
 )     input_item_SetMeta( item, vlc_meta_Rating, b )

Referenced by AddTrack(), and DemuxStation().

#define input_item_SetSetting ( item,
 )     input_item_SetMeta( item, vlc_meta_Setting, b )

#define input_item_SetTitle ( item,
 )     input_item_SetMeta( item, vlc_meta_Title, b )

#define input_item_SetTrackID ( item,
 )     input_item_SetMeta( item, vlc_meta_TrackID, b )

#define input_item_SetTrackNum ( item,
 )     input_item_SetMeta( item, vlc_meta_TrackNumber, b )

#define input_item_SetURL ( item,
 )     input_item_SetMeta( item, vlc_meta_URL, b )

Referenced by Demux().

#define VLC__INPUT_ITEM_H   1


Enumeration Type Documentation

Option flags.

Enumerator:
VLC_INPUT_OPTION_TRUSTED 
VLC_INPUT_OPTION_UNIQUE 

Enumerator:
ITEM_TYPE_UNKNOWN 
ITEM_TYPE_FILE 
ITEM_TYPE_DIRECTORY 
ITEM_TYPE_DISC 
ITEM_TYPE_CDDA 
ITEM_TYPE_CARD 
ITEM_TYPE_NET 
ITEM_TYPE_PLAYLIST 
ITEM_TYPE_NODE 
ITEM_TYPE_NUMBER 


Function Documentation

input_item_t* __input_item_NewExt ( vlc_object_t ,
const char *  psz_uri,
const char *  psz_name,
int  i_options,
const char *const *  ppsz_options,
unsigned  i_option_flags,
mtime_t  i_duration 
)

int input_item_AddInfo ( input_item_t p_i,
const char *  psz_cat,
const char *  psz_name,
const char *  psz_format,
  ... 
)

int input_item_AddOption ( input_item_t ,
const char *  ,
unsigned  i_flags 
)

void input_item_AddSubItem ( input_item_t p_parent,
input_item_t p_child 
)

void input_item_CopyOptions ( input_item_t p_parent,
input_item_t p_child 
)

int input_item_DelInfo ( input_item_t p_i,
const char *  psz_cat,
const char *  psz_name 
)

mtime_t input_item_GetDuration ( input_item_t p_i  ) 

char* input_item_GetInfo ( input_item_t p_i,
const char *  psz_cat,
const char *  psz_name 
)

Get a info item from a given category in a given input item.

Parameters:
p_i The input item to get info from
psz_cat String representing the category for the info
psz_name String representing the name of the desired info
Returns:
A pointer to the string with the given info if found, or an empty string otherwise. The caller should free the returned pointer.

References i, input_item_t::i_categories, info_category_t::i_infos, input_item_t::lock, input_item_t::pp_categories, info_category_t::pp_infos, info_t::psz_name, info_category_t::psz_name, info_t::psz_value, strdup(), vlc_mutex_lock(), and vlc_mutex_unlock().

Referenced by input_vaControl(), and Playlist::UpdateItem().

char* input_item_GetMeta ( input_item_t p_i,
vlc_meta_type_t  meta_type 
)

char* input_item_GetName ( input_item_t p_i  ) 

char* input_item_GetTitleFbName ( input_item_t p_i  ) 

char* input_item_GetURI ( input_item_t p_i  ) 

bool input_item_HasErrorWhenReading ( input_item_t  ) 

bool input_item_IsArtFetched ( input_item_t p_i  ) 

bool input_item_IsPreparsed ( input_item_t p_i  ) 

bool input_item_MetaMatch ( input_item_t p_i,
vlc_meta_type_t  meta_type,
const char *  psz 
)

input_item_t* input_item_NewWithType ( vlc_object_t ,
const char *  psz_uri,
const char *  psz_name,
int  i_options,
const char *const *  ppsz_options,
unsigned  i_option_flags,
mtime_t  i_duration,
int  i_type 
)

void input_item_SetDuration ( input_item_t p_i,
mtime_t  i_duration 
)

void input_item_SetMeta ( input_item_t ,
vlc_meta_type_t  meta_type,
const char *  psz_val 
)

void input_item_SetName ( input_item_t p_item,
const char *  psz_name 
)

void input_item_SetURI ( input_item_t p_i,
const char *  psz_uri 
)


Generated on Sat Nov 21 08:05:26 2009 for VLC by  doxygen 1.5.6