]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/core/show-status.h
Merge pull request #1989 from keszybz/filetriggers-v2
[thirdparty/systemd.git] / src / core / show-status.h
CommitLineData
15bd9a28
LP
1/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
2
3#pragma once
4
5/***
6 This file is part of systemd.
7
8 Copyright 2014 Lennart Poettering
9
10 systemd is free software; you can redistribute it and/or modify it
11 under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
13 (at your option) any later version.
14
15 systemd is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
19
20 You should have received a copy of the GNU Lesser General Public License
21 along with systemd; If not, see <http://www.gnu.org/licenses/>.
22***/
23
b8faf2ec
LP
24#include <stdbool.h>
25
26#include "macro.h"
27
15bd9a28
LP
28/* Manager status */
29
30typedef enum ShowStatus {
31 _SHOW_STATUS_UNSET = -2,
32 SHOW_STATUS_AUTO = -1,
33 SHOW_STATUS_NO = 0,
34 SHOW_STATUS_YES = 1,
35 SHOW_STATUS_TEMPORARY = 2,
36} ShowStatus;
37
38int parse_show_status(const char *v, ShowStatus *ret);
b8faf2ec
LP
39
40int status_vprintf(const char *status, bool ellipse, bool ephemeral, const char *format, va_list ap) _printf_(4,0);
41int status_printf(const char *status, bool ellipse, bool ephemeral, const char *format, ...) _printf_(4,5);