]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/core/show-status.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
10 typedef enum ShowStatus
{
13 SHOW_STATUS_TEMPORARY
,
16 _SHOW_STATUS_INVALID
= -1,
19 typedef enum ShowStatusFlags
{
20 SHOW_STATUS_ELLIPSIZE
= 1 << 0,
21 SHOW_STATUS_EPHEMERAL
= 1 << 1,
24 ShowStatus
show_status_from_string(const char *v
) _const_
;
25 const char* show_status_to_string(ShowStatus s
) _pure_
;
26 int parse_show_status(const char *v
, ShowStatus
*ret
);
28 int status_vprintf(const char *status
, ShowStatusFlags flags
, const char *format
, va_list ap
) _printf_(3,0);
29 int status_printf(const char *status
, ShowStatusFlags flags
, const char *format
, ...) _printf_(3,4);