1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
// SPDX-License-Identifier: 0BSD
///////////////////////////////////////////////////////////////////////////////
//
/// \file message.h
/// \brief Printing messages to stderr
//
// Author: Lasse Collin
//
///////////////////////////////////////////////////////////////////////////////
/// Verbosity levels
;
/// \brief Signals used for progress message handling
extern const int message_progress_sigs;
/// \brief Initializes the progress message functions
///
/// message_fatal() and such can be called even before message_init()
/// has been called.
///
/// If an error occurs, this function doesn't return.
///
extern void ;
/// Increase verbosity level by one step unless it was at maximum.
extern void ;
/// Decrease verbosity level by one step unless it was at minimum.
extern void ;
/// Get the current verbosity level.
extern enum message_verbosity ;
/// \brief Print a message if verbosity level is at least "verbosity"
///
/// This doesn't touch the exit status.
extern void ;
/// \brief Prints a warning and possibly sets exit status
///
/// The message is printed only if verbosity level is at least V_WARNING.
/// The exit status is set to WARNING unless it was already at ERROR.
extern void ;
/// \brief Prints an error message and sets exit status
///
/// The message is printed only if verbosity level is at least V_ERROR.
/// The exit status is set to ERROR.
extern void ;
/// \brief Prints an error message and exits with EXIT_ERROR
///
/// The message is printed only if verbosity level is at least V_ERROR.
tuklib_attr_noreturn
extern void ;
/// Print an error message that an internal error occurred and exit with
/// EXIT_ERROR.
tuklib_attr_noreturn
extern void ;
/// Print a message that establishing signal handlers failed, and exit with
/// exit status ERROR.
tuklib_attr_noreturn
extern void ;
/// Convert lzma_ret to a string.
extern const char *;
/// Display how much memory was needed and how much the limit was.
extern void ;
/// Print the filter chain.
extern void ;
/// Print a message that user should try --help.
extern void ;
/// Prints the version number to stdout and exits with exit status SUCCESS.
tuklib_attr_noreturn
extern void ;
/// Print the help message.
tuklib_attr_noreturn
extern void ;
/// Prints a help message specifically for using the --filters and
/// --filtersX command line options.
tuklib_attr_noreturn
extern void ;
/// \brief 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().
extern void ;
/// \brief 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.
extern void ;
/// \brief 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.
///
/// \param strm Pointer to lzma_stream used for the coding.
/// \param in_size Size of the input file, or zero if unknown.
///
extern void ;
/// 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.
extern void ;
/// \brief Finishes the progress message if we were in verbose mode
///
/// \param finished True if the whole stream was successfully coded
/// and output written to the output stream.
///
extern void ;