VLC  4.0.0-dev
Data Structures | Functions
meta.c File Reference
Include dependency graph for meta.c:

Data Structures

struct  vlc_meta_t


const char * vlc_meta_TypeToLocalizedString (vlc_meta_type_t meta_type)
 Returns a localizes string describing the meta. More...
vlc_meta_tvlc_meta_New (void)
 vlc_meta contructor. More...
static void vlc_meta_FreeExtraKey (void *p_data, void *p_obj)
void vlc_meta_Delete (vlc_meta_t *m)
void vlc_meta_Set (vlc_meta_t *p_meta, vlc_meta_type_t meta_type, const char *psz_val)
 vlc_meta has two kinds of meta, the one in a table, and the one in a dictionary. More...
const char * vlc_meta_Get (const vlc_meta_t *p_meta, vlc_meta_type_t meta_type)
void vlc_meta_AddExtra (vlc_meta_t *m, const char *psz_name, const char *psz_value)
const char * vlc_meta_GetExtra (const vlc_meta_t *m, const char *psz_name)
unsigned vlc_meta_GetExtraCount (const vlc_meta_t *m)
char ** vlc_meta_CopyExtraNames (const vlc_meta_t *m)
 Allocate a copy of all extra meta names and a table with it. More...
int vlc_meta_GetStatus (vlc_meta_t *m)
 vlc_meta status (see vlc_meta_status_e) More...
void vlc_meta_SetStatus (vlc_meta_t *m, int status)
void vlc_meta_Merge (vlc_meta_t *dst, const vlc_meta_t *src)
 Merging meta. More...
void input_ExtractAttachmentAndCacheArt (input_thread_t *p_input, const char *name)
int input_item_WriteMeta (vlc_object_t *obj, input_item_t *p_item)
void vlc_audio_replay_gain_MergeFromMeta (audio_replay_gain_t *p_dst, const vlc_meta_t *p_meta)

Function Documentation

◆ input_ExtractAttachmentAndCacheArt()

void input_ExtractAttachmentAndCacheArt ( input_thread_t p_input,
const char *  name 

◆ input_item_WriteMeta()

int input_item_WriteMeta ( vlc_object_t obj,
input_item_t p_item 

◆ vlc_audio_replay_gain_MergeFromMeta()

void vlc_audio_replay_gain_MergeFromMeta ( audio_replay_gain_t p_dst,
const vlc_meta_t p_meta 

◆ vlc_meta_AddExtra()

void vlc_meta_AddExtra ( vlc_meta_t m,
const char *  psz_name,
const char *  psz_value 

◆ vlc_meta_CopyExtraNames()

char** vlc_meta_CopyExtraNames ( const vlc_meta_t m)

Allocate a copy of all extra meta names and a table with it.

Be sure to free both the returned pointers and its name.

References vlc_meta_t::extra_tags, and vlc_dictionary_all_keys().

Referenced by EsOutProgramMeta(), and EsOutUpdateInfo().

◆ vlc_meta_Delete()

void vlc_meta_Delete ( vlc_meta_t m)

◆ vlc_meta_FreeExtraKey()

static void vlc_meta_FreeExtraKey ( void *  p_data,
void *  p_obj 

◆ vlc_meta_Get()

const char* vlc_meta_Get ( const vlc_meta_t p_meta,
vlc_meta_type_t  meta_type 

◆ vlc_meta_GetExtra()

const char* vlc_meta_GetExtra ( const vlc_meta_t m,
const char *  psz_name 

◆ vlc_meta_GetExtraCount()

unsigned vlc_meta_GetExtraCount ( const vlc_meta_t m)

◆ vlc_meta_GetStatus()

int vlc_meta_GetStatus ( vlc_meta_t m)

◆ vlc_meta_Merge()

void vlc_meta_Merge ( vlc_meta_t dst,
const vlc_meta_t src 

◆ vlc_meta_New()

vlc_meta_t* vlc_meta_New ( void  )

◆ vlc_meta_Set()

void vlc_meta_Set ( vlc_meta_t p_meta,
vlc_meta_type_t  meta_type,
const char *  psz_val 

vlc_meta has two kinds of meta, the one in a table, and the one in a dictionary.

FIXME - Why don't we merge those two?

References IsUTF8(), vlc_meta_t::ppsz_meta, and strdup().

Referenced by EsOutProgramEpg(), input_item_SetMeta(), and InputMetaUser().

◆ vlc_meta_SetStatus()

void vlc_meta_SetStatus ( vlc_meta_t m,
int  status 

◆ vlc_meta_TypeToLocalizedString()

const char* vlc_meta_TypeToLocalizedString ( vlc_meta_type_t  meta_type)