10 #define LAME_CONSOLE_H
12 #if defined(_WIN32) && !defined(__CYGWIN__)
16 #if defined(__cplusplus)
20 typedef struct console_io_struct {
21 unsigned long ClassID;
22 unsigned long ClassProt;
23 FILE *Console_fp; /* filepointer to stream reporting information */
24 FILE *Error_fp; /* filepointer to stream fatal error reporting information */
25 FILE *Report_fp; /* filepointer to stream reports (normally a text file or /dev/null) */
26 #if defined(_WIN32) && !defined(__CYGWIN__)
27 HANDLE Console_Handle;
37 extern Console_IO_t Console_IO;
38 extern int frontend_open_console(void);
39 extern void frontend_close_console(void);
41 extern void frontend_msgf(const char *format, va_list ap);
42 extern void frontend_debugf(const char *format, va_list ap);
43 extern void frontend_errorf(const char *format, va_list ap);
44 extern void frontend_print_null(const char *format, va_list ap);
46 int console_printf(const char *format, ...);
47 int error_printf(const char *format, ...);
48 int report_printf(const char *format, ...);
50 void console_flush(void);
51 void error_flush(void);
52 void report_flush(void);
54 void console_up(int n_lines);
56 void set_debug_file(const char *fn);
58 #if defined(__cplusplus)
62 #endif /* LAME_CONSOLE_H */
64 /* end of console.h */