]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/core/show-status.h
tree-wide: drop 'This file is part of systemd' blurb
[thirdparty/systemd.git] / src / core / show-status.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
15bd9a28
LP
2#pragma once
3
4/***
15bd9a28 5 Copyright 2014 Lennart Poettering
15bd9a28
LP
6***/
7
b8faf2ec
LP
8#include <stdbool.h>
9
10#include "macro.h"
11
15bd9a28
LP
12/* Manager status */
13
14typedef enum ShowStatus {
15 _SHOW_STATUS_UNSET = -2,
16 SHOW_STATUS_AUTO = -1,
17 SHOW_STATUS_NO = 0,
18 SHOW_STATUS_YES = 1,
19 SHOW_STATUS_TEMPORARY = 2,
20} ShowStatus;
21
22int parse_show_status(const char *v, ShowStatus *ret);
b8faf2ec
LP
23
24int status_vprintf(const char *status, bool ellipse, bool ephemeral, const char *format, va_list ap) _printf_(4,0);
25int status_printf(const char *status, bool ellipse, bool ephemeral, const char *format, ...) _printf_(4,5);