File src/cmd_tag.c

Shows the ID3/Vorbis tag for a given filename


Included Files


Global Variable PROCNAME

char PROCNAME[128]
Included from include/ubs.h

Global Variable CUR_TIME

struct tm* CUR_TIME
Included from include/ubs.h

Global Variable GLOBAL

ubs_table GLOBAL
Included from include/ubs.h

Global Variable LOGLEVEL

int LOGLEVEL
Included from include/ubs.h

Global Function cmd_tag()

Shows the ID3/Vorbis tag for a given filename

int cmd_tag ( int cmdc, char** cmdv )

int cmd_tag
Returns OK on success, or whatever sub_print_tag() returns.
int cmdc
Number of arguments
char** cmdv
Argument vector
Prototyped in: include/ubs-main.h
Calls: sub_help_cmd()src/cmd_help.c
  sub_print_tag()src/cmd_tag.c
  getopt()

Global Function sub_print_tag()

Opens up the music file and finds the tag, printing it out to the screen. This is done via the get_media_tag() function.

int sub_print_tag ( char* sname, int format )

int sub_print_tag
Returns OK on success, NO_FILE if the get_media_tag() call fails.
char* sname
The filename to query
int format
Output format to use.
Prototyped in: include/ubs-main.h
Calls: get_media_tag()lib/music_info.c
  printf()
Called by: cmd_search()src/cmd_search.c
  cmd_tag()src/cmd_tag.c
  sub_now_playing()src/cmd_shows.c