Printing messages.
More...
#include "private.h"
#include <stdarg.h>
◆ message()
◆ message_bug()
void message_bug |
( |
void | | ) |
|
|
extern |
Print an error message that an internal error occurred and exit with EXIT_ERROR.
◆ message_error()
void message_error |
( |
const char * | fmt, |
|
|
| ... ) |
|
extern |
◆ message_fatal()
void message_fatal |
( |
const char * | fmt, |
|
|
| ... ) |
|
extern |
◆ message_filename()
void message_filename |
( |
const char * | src_name | ) |
|
|
extern |
Set the name of the current file and possibly print it too.
The name is printed immediately if –list was used or if –verbose was used and stderr is a terminal. Even when the filename isn't printed, it is stored so that it can be printed later if needed for progress messages.
◆ message_filters_help()
void message_filters_help |
( |
void | | ) |
|
|
extern |
Prints a help message specifically for using the –filters and –filtersX command line options.
◆ message_filters_show()
◆ message_help()
void message_help |
( |
bool | long_help | ) |
|
|
extern |
◆ message_init()
void message_init |
( |
void | | ) |
|
|
extern |
Initializes the message functions.
Initializes the progress message functions.
If an error occurs, this function doesn't return.
◆ message_mem_needed()
Display how much memory was needed and how much the limit was.
◆ message_progress_end()
void message_progress_end |
( |
bool | finished | ) |
|
|
extern |
Finishes the progress message if we were in verbose mode.
- Parameters
-
finished | True if the whole stream was successfully coded and output written to the output stream. |
◆ message_progress_start()
void message_progress_start |
( |
lzma_stream * | strm, |
|
|
bool | is_passthru, |
|
|
uint64_t | in_size ) |
|
extern |
Start progress info handling.
message_filename() must be called before this function to set the filename.
This must be paired with a call to message_progress_end() before the given *strm becomes invalid.
- Parameters
-
strm | Pointer to lzma_stream used for the coding. |
in_size | Size of the input file, or zero if unknown. |
◆ message_progress_update()
void message_progress_update |
( |
void | | ) |
|
|
extern |
Update the progress info if in verbose mode and enough time has passed since the previous update. This can be called only when message_progress_start() has already been used.
◆ message_set_files()
void message_set_files |
( |
unsigned int | files | ) |
|
|
extern |
Set the total number of files to be processed.
Standard input is counted as a file here. This is used when printing the filename via message_filename().
◆ message_signal_handler()
void message_signal_handler |
( |
void | | ) |
|
|
extern |
Print a message that establishing signal handlers failed, and exit with exit status ERROR.
◆ message_strm()
Convert lzma_ret to a string.
◆ message_try_help()
void message_try_help |
( |
void | | ) |
|
|
extern |
Print a message that user should try –help.
◆ message_verbosity_decrease()
void message_verbosity_decrease |
( |
void | | ) |
|
|
extern |
Decrease verbosity level by one step unless it was at minimum.
◆ message_verbosity_get()
Get the current verbosity level.
◆ message_verbosity_increase()
void message_verbosity_increase |
( |
void | | ) |
|
|
extern |
Increase verbosity level by one step unless it was at maximum.
◆ message_version()
void message_version |
( |
void | | ) |
|
|
extern |
Prints the version number to stdout and exits with exit status SUCCESS.
◆ message_warning()
void message_warning |
( |
const char * | fmt, |
|
|
| ... ) |
|
extern |