File include/ubs.h

Functions, structures, and global variables common to pretty much every module in the UBS system.

Included in: include/ubs-event.h
  include/ubs-main.h
  include/ubs-play.h
  include/ubs-sched.h
  lib/common.c
  lib/exec_proc.c
  lib/logging.c
  lib/music_info.c
  lib/queue.c
  lib/read_config.c
  lib/table.c
  src/cmd_search.c
  src/cmd_shows.c
  src/cmd_start.c
  src/cmd_status.c
  src/ubs-sched.c


Included Files


Preprocessor definitions

Maximum abount of arguments the command line is willing to deal with

#define MAXARGS 32

#define SMALLBUF 32

#define STRBUF 128

#define BIGSTR 512

#define FILEBUF 1024

#define BIGBUF 4096

#define ENGLISH 0

#define CSV 1

#define HTML 2

#define SILENT 3

#define YES 1

#define NO 0

#define TRUE 1

#define FALSE 0

#define COLOR1 "#ffffff"

#define COLOR2 "#cccccc"

#define OK 0

#define FAIL -1

#define NO_FILE -2

#define NO_DIR -3

#define NO_FORK -4

#define NO_PERMS -5

#define NO_SIGNAL -6

#define NO_MEM -7

#define QUIT -8

#define LOG_EMERG 0

#define LOG_STATUS 1

#define LOG_ERROR 2

#define LOG_DEBUG 3

#define _UBS_DATA_STRUCTS

#define _UBS_GLOBAL_VARS


Type struct media_tag

struct media_tag
struct media_tag 
   { 
     char title[128]; 
     char artist[128]; 
     char album[128]; 
   } 

Type struct log_entry

struct log_entry
struct log_entry 
   { 
     char date[6]; 
     char time[6]; 
     char field1[4096]; 
     char field2[4096]; 
     char field3[4096]; 
   } 

Type struct conf_arg

struct conf_arg
struct conf_arg 
   { 
     char directive[128]; 
     char argument[128]; 
   } 

Type struct _keypair

struct _keypair
struct _keypair 
   { 
     char key[128]; 
     char value[512]; 
   } 

Typedef keypair

typedef struct _keypair keypair
See:

Type struct _ubs_table

struct _ubs_table
struct _ubs_table 
   { 
     int num_values; 
     keypair* values; 
   } 

Typedef ubs_table

typedef struct _ubs_table ubs_table
See:

Global Variable PROCNAME

char PROCNAME[128]

Global Variable CUR_TIME

struct tm* CUR_TIME

Global Variable GLOBAL

ubs_table GLOBAL

Global Variable LOGLEVEL

int LOGLEVEL