console.c File Reference

#include <config.h>
#include <stdio.h>
#include <stdarg.h>
#include "console.h"

Include dependency graph for console.c:

Go to the source code of this file.

Defines

#define strchr   index
#define strrchr   rindex
#define memcpy(d, s, n)   bcopy ((s), (d), (n))
#define memmove(d, s, n)   bcopy ((s), (d), (n))
#define CLASS_ID   0x434F4E53
#define REPORT_BUFF_SIZE   1024

Functions

char * strchr ()
char ** strrchr ()
static int my_console_printing (FILE *fp, const char *format, va_list ap)
static int my_error_printing (FILE *fp, const char *format, va_list ap)
static int my_report_printing (FILE *fp, const char *format, va_list ap)
static int init_console (Console_IO_t *const mfp)
static void deinit_console (Console_IO_t *const mfp)
int frontend_open_console (void)
void frontend_close_console (void)
void frontend_debugf (const char *format, va_list ap)
void frontend_msgf (const char *format, va_list ap)
void frontend_errorf (const char *format, va_list ap)
int console_printf (const char *format,...)
int error_printf (const char *format,...)
int report_printf (const char *format,...)
void console_flush ()
void error_flush ()
void report_flush ()
void console_up (int n_lines)
void set_debug_file (const char *fn)

Variables

Console_IO_t Console_IO


Define Documentation

#define CLASS_ID   0x434F4E53

Definition at line 39 of file console.c.

Referenced by init_console().

#define memcpy ( d,
s,
 )     bcopy ((s), (d), (n))

Definition at line 15 of file console.c.

#define memmove ( d,
s,
 )     bcopy ((s), (d), (n))

Definition at line 16 of file console.c.

#define REPORT_BUFF_SIZE   1024

Definition at line 40 of file console.c.

Referenced by deinit_console().

#define strchr   index

Definition at line 10 of file console.c.

#define strrchr   rindex

Definition at line 11 of file console.c.


Function Documentation

void console_flush ( void   ) 

Definition at line 269 of file console.c.

References Console_IO_t::Console_fp, and Console_IO.

Referenced by console_up(), encoder_progress(), lame_decoder(), and levelmessage().

int console_printf ( const char *  format,
  ... 
)

Definition at line 230 of file console.c.

References Console_IO_t::Console_fp, Console_IO, and my_console_printing().

Referenced by decoder_progress(), decoder_progress_finish(), encoder_progress_begin(), genre_list_handler(), lame_decoder(), levelmessage(), main(), OpenSndFile(), parse_args(), print_lame_tag_leading_info(), print_trailing_info(), timestatus(), timestatus_finish(), and ts_time_decompose().

Here is the call graph for this function:

void console_up ( int  n_lines  ) 

Definition at line 287 of file console.c.

References Console_IO_t::Console_file_type, console_flush(), Console_IO_t::Console_fp, Console_IO, and Console_IO_t::str_up.

Here is the call graph for this function:

static void deinit_console ( Console_IO_t *const   mfp  )  [static]

Definition at line 182 of file console.c.

References Console_IO_t::Console_buff, Console_IO_t::Console_fp, REPORT_BUFF_SIZE, and Console_IO_t::Report_fp.

Referenced by frontend_close_console().

void error_flush ( void   ) 

Definition at line 275 of file console.c.

References Console_IO, and Console_IO_t::Error_fp.

Referenced by gtkmakeframe().

int error_printf ( const char *  format,
  ... 
)

Definition at line 243 of file console.c.

References Console_IO, Console_IO_t::Error_fp, and my_console_printing().

Referenced by aiff_check2(), CloseSndFile(), fskip(), gtkmakeframe(), init_files(), lame_decoder(), lame_encoder(), main(), makesocket(), OpenSndFile(), parse_aiff_header(), parse_args(), parse_file_header(), parse_wave_header(), presets_set(), print_trailing_info(), read_samples_mp3(), read_samples_pcm(), resample_rate(), and set_debug_file().

Here is the call graph for this function:

void frontend_close_console ( void   ) 

Definition at line 206 of file console.c.

References Console_IO, and deinit_console().

Referenced by main().

Here is the call graph for this function:

void frontend_debugf ( const char *  format,
va_list  ap 
)

Definition at line 212 of file console.c.

References Console_IO, my_report_printing(), and Console_IO_t::Report_fp.

Referenced by main().

Here is the call graph for this function:

void frontend_errorf ( const char *  format,
va_list  ap 
)

Definition at line 224 of file console.c.

References Console_IO, Console_IO_t::Error_fp, and my_error_printing().

Referenced by main().

Here is the call graph for this function:

void frontend_msgf ( const char *  format,
va_list  ap 
)

Definition at line 218 of file console.c.

References Console_IO_t::Console_fp, Console_IO, and my_console_printing().

Referenced by main().

Here is the call graph for this function:

int frontend_open_console ( void   ) 

Definition at line 200 of file console.c.

References Console_IO, and init_console().

Referenced by main().

Here is the call graph for this function:

static int init_console ( Console_IO_t *const   mfp  )  [static]

Definition at line 148 of file console.c.

References CLASS_ID, Console_IO_t::ClassID, Console_IO_t::Console_buff, Console_IO_t::Console_file_type, Console_IO_t::Console_fp, Console_IO, Console_IO_t::disp_height, Console_IO_t::disp_width, Console_IO_t::Error_fp, Console_IO_t::Report_fp, and Console_IO_t::str_up.

Referenced by frontend_open_console().

static int my_console_printing ( FILE *  fp,
const char *  format,
va_list  ap 
) [static]

Definition at line 49 of file console.c.

Referenced by console_printf(), error_printf(), frontend_msgf(), and report_printf().

static int my_error_printing ( FILE *  fp,
const char *  format,
va_list  ap 
) [static]

Definition at line 57 of file console.c.

Referenced by frontend_errorf().

static int my_report_printing ( FILE *  fp,
const char *  format,
va_list  ap 
) [static]

Definition at line 65 of file console.c.

Referenced by frontend_debugf().

void report_flush ( void   ) 

Definition at line 281 of file console.c.

References Console_IO, and Console_IO_t::Report_fp.

int report_printf ( const char *  format,
  ... 
)

Definition at line 256 of file console.c.

References Console_IO, my_console_printing(), and Console_IO_t::Report_fp.

Here is the call graph for this function:

void set_debug_file ( const char *  fn  ) 

Definition at line 309 of file console.c.

References Console_IO, error_printf(), and Console_IO_t::Report_fp.

Referenced by parse_args().

Here is the call graph for this function:

char* strchr (  ) 

char* * strrchr (  ) 


Variable Documentation

Console_IO_t Console_IO

Definition at line 197 of file console.c.

Referenced by console_flush(), console_printf(), console_up(), error_flush(), error_printf(), frontend_close_console(), frontend_debugf(), frontend_errorf(), frontend_msgf(), frontend_open_console(), init_console(), parse_args(), presets_set(), report_flush(), report_printf(), and set_debug_file().


Generated on Sun Dec 2 11:34:25 2007 for LAME by  doxygen 1.5.2