File src/cmd_shows.c

Displays information about known shows from ubs.conf.


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 Variable WEEK

An array that holds all of the half-hour slots for an entire week, which is the period of time that the ubs runs off of. This array contains integers which correspond to show ID's

int WEEK[7][48]
Included from include/ubs-sched.h


Global Variable ALLSHOWS

All the known shows

struct show* ALLSHOWS
Included from include/ubs-sched.h


Global Variable SCHED

ubs_table SCHED
Included from include/ubs-sched.h

Global Function cmd_shows()

Displays information about known shows.

int cmd_shows ( int cmdc, char** cmdv )

int cmd_shows
Returns OK on success
int cmdc
Number of arguments
char** cmdv
Argument vector
Prototyped in: include/ubs-main.h
Calls: gettime()lib/logging.c
  sub_dump_show()src/cmd_shows.c
  sub_help_cmd()src/cmd_help.c
  sub_now_playing()src/cmd_shows.c
  ubs_table_data()lib/table.c
  atoi(), find_show(), getopt(), printf()

Global Function sub_dump_show()

sub_dump_show Returns OK for success

int sub_dump_show ( int show_num, int format )

int show_num
The show index
int format
The output mode
Prototyped in: include/ubs-main.h
Calls: printf()
Called by: cmd_shows()src/cmd_shows.c

Global Function sub_now_playing()

int sub_now_playing ( int format )
Prototyped in: include/ubs-main.h
Calls: fgets(), fopen(), perror(), sub_print_tag()
Called by: cmd_shows()src/cmd_shows.c