info.c File Reference

Include dependency graph for info.c:


Defines

#define addstr(title, str)   MetaInfoAddStr( p_access, psz_cat, title, str );
#define addnum(title, num)   MetaInfoAddNum( p_access, psz_cat, title, num );
#define addhex(title, hex)   MetaInfoAddHex( p_access, psz_cat, title, hex );
#define TITLE_MAX   30
#define add_format_str_info(val)
#define add_format_num_info(val, fmt)
#define TEMP_STR_SIZE   256
#define TEMP_STR_LEN   (TEMP_STR_SIZE-1)

Functions

static void MetaInfoAddStr (access_t *p_access, char *psz_cat, char *title, const char *psz)
static void MetaInfoAddNum (access_t *p_access, char *psz_cat, char *title, int num)
static void MetaInfoAddHex (access_t *p_access, char *psz_cat, char *title, int hex)
void VCDMetaInfo (access_t *p_access, char *psz_mrl)
char * VCDFormatStr (const access_t *p_access, vcdplayer_t *p_vcdplayer, const char format_str[], const char *mrl, const vcdinfo_itemid_t *itemid)
void VCDUpdateTitle (access_t *p_access)

Define Documentation

#define add_format_num_info ( val,
fmt   ) 

Value:

{                                   \
    char num_str[10];                           \
    unsigned int len;                           \
    sprintf(num_str, fmt, val);                                \
    len = strlen(num_str);                       \
    if( len != 0 )                                             \
    {                                           \
      strncat(tp, num_str, TEMP_STR_LEN-(tp-temp_str));        \
      tp += len;                           \
    }                                   \
    saw_control_prefix = false;                                \
  }

#define add_format_str_info ( val   ) 

Value:

{                                   \
    const char *str = strdup(val);                   \
    unsigned int len;                           \
    if (val != NULL) {                           \
      len=strlen(str);                           \
      if (len != 0) {                           \
        strncat(tp, str, TEMP_STR_LEN-(tp-temp_str));           \
        tp += len;                           \
      }                                                        \
      saw_control_prefix = false;                   \
    }                                   \
  }

#define addhex ( title,
hex   )     MetaInfoAddHex( p_access, psz_cat, title, hex );

#define addnum ( title,
num   )     MetaInfoAddNum( p_access, psz_cat, title, num );

#define addstr ( title,
str   )     MetaInfoAddStr( p_access, psz_cat, title, str );

#define TEMP_STR_LEN   (TEMP_STR_SIZE-1)

#define TEMP_STR_SIZE   256

#define TITLE_MAX   30


Function Documentation

static void MetaInfoAddHex ( access_t p_access,
char *  psz_cat,
char *  title,
int  hex 
) [inline, static]

static void MetaInfoAddNum ( access_t p_access,
char *  psz_cat,
char *  title,
int  num 
) [inline, static]

static void MetaInfoAddStr ( access_t p_access,
char *  psz_cat,
char *  title,
const char *  psz 
) [inline, static]

char* VCDFormatStr ( const access_t p_access,
vcdplayer_t p_vcdplayer,
const char  format_str[],
const char *  mrl,
const vcdinfo_itemid_t *  itemid 
)

Take a format string and expand escape sequences, that is sequences that begin with %, with information from the current VCD. The expanded string is returned. Here is a list of escape sequences:

A : The album information C : The VCD volume count - the number of CD's in the collection. c : The VCD volume num - the number of the CD in the collection. F : The VCD Format, e.g. VCD 1.0, VCD 1.1, VCD 2.0, or SVCD I : The current entry/segment/playback type, e.g. ENTRY, TRACK, SEGMENT... L : The playlist ID prefixed with " LID" if it exists M : MRL N : The current number of the I - a decimal number P : The publisher ID p : The preparer ID S : If we are in a segment (menu), the kind of segment T : The track number V : The volume set ID v : The volume ID A number between 1 and the volume count. %% : a %

void VCDMetaInfo ( access_t p_access,
char *  psz_mrl 
)

void VCDUpdateTitle ( access_t p_access  ) 


Generated on Wed Aug 13 08:02:50 2008 for VLC by  doxygen 1.5.1