]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/core/show-status.h
pkgconfig: define variables relative to ${prefix}/${rootprefix}/${sysconfdir}
[thirdparty/systemd.git] / src / core / show-status.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include <stdbool.h>
5
6 #include "macro.h"
7
8 /* Manager status */
9
10 typedef enum ShowStatus {
11 SHOW_STATUS_NO,
12 SHOW_STATUS_AUTO,
13 SHOW_STATUS_TEMPORARY,
14 SHOW_STATUS_YES,
15 _SHOW_STATUS_MAX,
16 _SHOW_STATUS_INVALID = -1,
17 } ShowStatus;
18
19 ShowStatus show_status_from_string(const char *v) _const_;
20 const char* show_status_to_string(ShowStatus s) _pure_;
21 int parse_show_status(const char *v, ShowStatus *ret);
22
23 int status_vprintf(const char *status, bool ellipse, bool ephemeral, const char *format, va_list ap) _printf_(4,0);
24 int status_printf(const char *status, bool ellipse, bool ephemeral, const char *format, ...) _printf_(4,5);