paraslash Paraslash Audio Streaming
About   News   Download   Documentation   Development

Macros | Enumerations | Functions | Variables
upgrade_db.c File Reference

Macros

#define CMD_PTR   (lls_cmd(0, upgrade_db_suite))
 
#define OPT_RESULT(_name, _lpr)    (lls_opt_result(LSG_UPGRADE_DB_PARA_UPGRADE_DB_OPT_ ## _name, lpr))
 
#define OPT_GIVEN(_name, _lpr)   (lls_opt_given(OPT_RESULT(_name, _lpr)))
 
#define OPT_UINT32_VAL(_name, _lpr)   (lls_uint32_val(0, OPT_RESULT(_name, _lpr)))
 
#define OPT_STRING_VAL(_name, _lpr)   (lls_string_val(0, OPT_RESULT(_name, _lpr)))
 
#define AFSI_SIZE   32
 

Enumerations

enum  audio_file_table_columns {
  AFTCOL_HASH, AFTCOL_PATH, AFTCOL_AFSI, AFTCOL_AFHI,
  AFTCOL_CHUNKS, NUM_AFT_COLUMNS, AFTCOL_HASH, AFTCOL_PATH,
  AFTCOL_AFSI, AFTCOL_AFHI, AFTCOL_CHUNKS, NUM_AFT_COLUMNS
}
 

Functions

int main (int argc, char *argv[])
 

Variables

__printf_2_3 void(* para_log )(int, const char *,...) = stderr_log
 
 DEFINE_PARA_ERRLIST
 

Macro Definition Documentation

◆ CMD_PTR

#define CMD_PTR   (lls_cmd(0, upgrade_db_suite))

◆ OPT_RESULT

#define OPT_RESULT (   _name,
  _lpr 
)     (lls_opt_result(LSG_UPGRADE_DB_PARA_UPGRADE_DB_OPT_ ## _name, lpr))

◆ OPT_GIVEN

#define OPT_GIVEN (   _name,
  _lpr 
)    (lls_opt_given(OPT_RESULT(_name, _lpr)))

◆ OPT_UINT32_VAL

#define OPT_UINT32_VAL (   _name,
  _lpr 
)    (lls_uint32_val(0, OPT_RESULT(_name, _lpr)))

◆ OPT_STRING_VAL

#define OPT_STRING_VAL (   _name,
  _lpr 
)    (lls_string_val(0, OPT_RESULT(_name, _lpr)))

◆ AFSI_SIZE

#define AFSI_SIZE   32

Enumeration Type Documentation

◆ audio_file_table_columns

The columns of the audio file table (both old and new).

Enumerator
AFTCOL_HASH 

The hash on the content of the audio file.

AFTCOL_PATH 

The full path in the filesystem.

AFTCOL_AFSI 

The audio file selector info.

AFTCOL_AFHI 

The audio format handler info.

AFTCOL_CHUNKS 

The chunk table info and the chunk table of the audio file.

NUM_AFT_COLUMNS 

The number of columns of this table.

AFTCOL_HASH 

The hash on the content of the audio file.

AFTCOL_PATH 

The full path in the filesystem.

AFTCOL_AFSI 

The audio file selector info.

AFTCOL_AFHI 

The audio format handler info.

AFTCOL_CHUNKS 

The chunk table info and the chunk table of the audio file.

NUM_AFT_COLUMNS 

The number of columns of this table.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Variable Documentation

◆ para_log

__printf_2_3 void(* para_log) (int, const char *,...) = stderr_log

The log function of para_gui, always set to curses_log().

◆ DEFINE_PARA_ERRLIST

DEFINE_PARA_ERRLIST

Array of error strings.